:root {
  --ink: #533c27;
  --muted: #766b5e;
  --line: #ded4c4;
  --accent: #6e4824;
  --cream: #f7efe4;
  --white: #fffdf9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream) url("39595beec4e6d803.webp") center top;
  color: var(--ink);
  font:
    16px/1.55 Arial,
    sans-serif;
}
.demo {
  padding: 8px 16px;
  text-align: center;
  background: #e6dccd;
  font-size: 12px;
  letter-spacing: 0.04em;
}
header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 0 28px;
}
.logo {
  display: block;
  width: 390px;
  max-width: 90%;
  margin: 30px auto 22px;
}
nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
a {
  color: var(--accent);
}
nav a {
  text-decoration: none;
  font-size: 13px;
}
nav a[aria-current] {
  font-weight: bold;
  border-bottom: 1px solid currentColor;
}
.intro {
  text-align: center;
  max-width: 700px;
  margin: 54px auto 38px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #866f51;
  margin: 0 0 10px;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 12px 0 18px;
}
h2 {
  font-size: 30px;
  margin: 6px 0 12px;
}
h3 {
  font-size: 22px;
}
.intro > p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
}
.steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 4px;
  color: var(--muted);
  font-size: 14px;
}
.steps li[aria-current] {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.steps [aria-current] span {
  background: var(--accent);
  color: white;
}
.panel,
.recipient {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 5px 20px #533c2705;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px 13px;
  margin-top: 7px;
  border: 1px solid #cfc5b6;
  border-radius: 4px;
  background: white;
  color: #302b25;
  font:
    16px/1.4 Arial,
    sans-serif;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #967a50;
  outline-offset: 2px;
}
button {
  font:
    600 14px/1.4 Arial,
    sans-serif;
  cursor: pointer;
  border-radius: 4px;
  min-height: 46px;
  padding: 12px 19px;
}
.primary {
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.primary:hover {
  background: #50351c;
}
.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.secondary:hover {
  background: #f4eee5;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.actions.end {
  justify-content: flex-end;
}
.section-head,
.recipient-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.section-head {
  margin-bottom: 22px;
}
.pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 12px;
  background: #ffffff80;
}
.recipient {
  margin-bottom: 20px;
}
.recipient h3 {
  margin: 0;
}
.recipient-head .tools {
  display: flex;
  gap: 8px;
}
.tools button {
  padding: 8px 12px;
  font-size: 12px;
  min-height: 38px;
}
.product-select {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #f6f1e9;
  border-radius: 5px;
  margin: 24px 0;
}
.product-select img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
}
.product-select .grid {
  margin: 0;
  grid-template-columns: 1fr 95px;
  gap: 14px;
}
.line-price {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.add {
  width: 100%;
  border: 1px dashed #aa9372;
  background: #fff9;
  color: var(--accent);
  padding: 18px;
}
.bottom {
  text-align: right;
  padding: 14px 0;
}
.bottom p {
  font-weight: bold;
  font-size: 20px;
  margin: 10px 0 5px;
}
small {
  color: var(--muted);
  font-size: 12px;
}
.summary-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.summary-block h3 {
  margin-top: 0;
}
.summary-block p {
  margin: 5px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.summary-block .price {
  font-weight: 700;
}
.demo-note {
  background: #f2ecdf;
  border-left: 3px solid #aa9372;
  padding: 16px;
  font-size: 13px;
  margin-top: 25px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f1e9;
  padding: 20px;
  font: 13px/1.7 monospace;
  border: 1px solid var(--line);
}
.privacy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 22px auto 50px;
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
}
footer p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #967a50;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  header,
  main,
  footer {
    padding-inline: 18px;
  }
  .logo {
    margin: 18px auto;
    width: 300px;
  }
  nav {
    gap: 12px 18px;
  }
  nav a {
    font-size: 12px;
  }
  .intro {
    margin: 34px auto 22px;
  }
  .steps li {
    font-size: 11px;
    gap: 5px;
    align-items: flex-start;
  }
  .steps span {
    width: 20px;
    height: 20px;
  }
  .panel,
  .recipient {
    padding: 22px 17px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wide {
    grid-column: auto;
  }
  .recipient-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .product-select {
    grid-template-columns: 70px 1fr;
    padding: 12px;
    gap: 12px;
  }
  .product-select img {
    width: 70px;
    height: 100px;
  }
  .product-select .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section-head {
    gap: 8px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .actions button {
    flex: 1;
  }
  .bottom {
    text-align: left;
  }
  .pill {
    font-size: 11px;
    padding: 5px 8px;
  }
}

.personal {
  padding: 22px;
  background: #f8f3eb;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.personal h4 {
  font:
    400 23px Georgia,
    serif;
  margin: 0 0 8px;
}
.personal > label + label {
  margin-top: 18px;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.greeting {
  background: #f8f3eb;
  padding: 17px 20px;
  border-left: 3px solid #b7a17f;
  margin: 14px 0;
}
.greeting > span {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.greeting > p {
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}
.demo-result {
  margin-top: 25px;
  padding: 24px;
  background: #edf0e5;
  border: 1px solid #c9d1b6;
  border-radius: 6px;
}
.demo-result h3 {
  margin-top: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}

.extras {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}
.extras legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.extra-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px;
  margin-bottom: 8px;
  cursor: pointer;
}
.extra-option input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--accent);
}
.extra-option strong {
  margin-left: auto;
  white-space: nowrap;
}
.extra-option:has(input:checked) {
  border-color: var(--accent);
  background: #eee4d3;
}
