:root {
  color-scheme: light;
  --cream: #f7eedc;
  --paper: #fffaf0;
  --green: #173e34;
  --deep: #103329;
  --red: #8e2739;
  --gold: #9d632c;
  --light-gold: #edd19a;
  --line: #ddcfb2;
  --muted: #605b4b;
  --heading: Georgia, 'Times New Roman', serif;
  --body: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 var(--body); background: var(--cream); color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #a1452e; outline-offset: 3px; }
.hero :focus-visible, .nav :focus-visible { outline-color: #ffe1a3; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.1; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; left: 12px; color: var(--green); background: var(--paper); padding: 10px; z-index: 2; }
.skip:focus { top: 12px; }

.nav { background: var(--deep); color: var(--paper); border-bottom: 1px solid #557462; }
.nav-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font: bold clamp(1.07rem, 2vw, 1.35rem) var(--heading); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { color: var(--light-gold); font: 1.65rem var(--heading); }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { padding-block: 7px; text-decoration: none; font-size: .91rem; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--light-gold); }

.hero { color: var(--paper); background: radial-gradient(ellipse at 76% 54%, #305748, transparent 55%), repeating-linear-gradient(125deg, #1b4236 0 1px, transparent 1px 6px), var(--green); border-bottom: 4px solid var(--gold); }
.hero-inner { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(26px, 4vw, 65px); padding-block: 65px 72px; }
h1 { font-size: clamp(3.1rem, 5.35vw, 5.05rem); font-weight: 500; letter-spacing: -.045em; max-width: 15ch; line-height: .99; }
.intro { max-width: 42ch; font-size: clamp(1rem, 2vw, 1.17rem); margin: 22px 0 27px; color: #f4ead6; }
.primary, .light { display: inline-flex; justify-content: center; align-items: center; gap: .7em; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font: 650 .9rem/1.45 var(--body); }
.primary { color: #fff9ed; background: var(--red); border-color: var(--red); }
.primary:hover { background: #732031; }
.hero .primary { background: var(--light-gold); border-color: var(--light-gold); color: var(--deep); }
.hero .primary:hover { background: #f9e2b1; }
.light { color: var(--green); background: var(--paper); border-color: var(--line); }
.light:hover { background: #efe1c6; }

.map { position: relative; aspect-ratio: 1.47; display: grid; place-items: center; isolation: isolate; color: var(--red); }
.map::before { content: ''; position: absolute; inset: 4% 2%; background: repeating-linear-gradient(90deg, transparent 0 31px, #aa764125 32px 33px), repeating-linear-gradient(0deg, transparent 0 31px, #aa764125 32px 33px), radial-gradient(ellipse, #f5dfab, #d7a962); border: 7px double #89551f; box-shadow: 0 13px 35px #081f17a1, inset 0 0 25px #98633460; transform: rotate(3deg); z-index: -1; }
.map-border { position: absolute; inset: 9% 8%; border: 1px solid #a96d3780; transform: rotate(3deg); }
.map-compass { position: absolute; left: 12%; top: 13%; width: 16%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #7c5425; border-radius: 50%; color: #744819; font-size: clamp(1.4rem, 3vw, 2.7rem); }
.map-trail { position: absolute; width: 53%; height: 43%; left: 19%; top: 36%; transform: rotate(-15deg); border: 2px dashed #8e2739a0; border-top-color: transparent; border-radius: 48% 45% 38% 48%; }
.map-stops { position: absolute; display: flex; gap: 19%; width: 63%; left: 19%; top: 62%; transform: rotate(-15deg); }
.map-stops span { background: var(--red); color: var(--paper); height: 23px; min-width: 23px; display: inline-grid; place-items: center; border: 2px solid #f1d9aa; border-radius: 50%; font-size: .68rem; }
.map-stops span:nth-child(2) { transform: translateY(8px); }
.map-stops span:nth-child(3) { transform: translateY(-11px); }
.map-tree { position: absolute; left: 39%; top: 20%; font: clamp(2.3rem, 5.3vw, 5rem) / 1 var(--heading); color: var(--green); }
.map-tree::before, .map-tree::after { content: '▲'; position: absolute; left: 50%; transform: translateX(-50%); font-size: .76em; color: #2b5040; }
.map-tree::before { top: -.19em; }
.map-tree::after { bottom: -.15em; font-size: 1.24em; color: #254a3b; z-index: -1; }
.map-stamp { position: absolute; right: 9%; top: 16%; width: 24%; aspect-ratio: .84; transform: rotate(10deg); background: #f8e5b9; border: 4px dotted var(--red); box-shadow: 2px 4px 8px #5e381c44; display: grid; place-items: center; text-align: center; font: bold clamp(.5rem, 1vw, .71rem)/1.22 var(--body); letter-spacing: .12em; }
.map-stamp b { display: block; color: var(--red); font: 2.4em/1 var(--heading); }
.map-label { position: absolute; bottom: 12%; right: 12%; font: italic clamp(.72rem, 1.6vw, 1.1rem) var(--heading); color: #663e1c; transform: rotate(3deg); }

.workbench { margin-top: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: clip; box-shadow: 0 15px 35px #4f361410; }
.workbench-bar { background: #ecdfc6; min-height: 66px; padding: 14px 25px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workbench-bar div { display: flex; align-items: center; gap: 10px; }
.workbench-bar h2 { font-size: 1.65rem; font-weight: 500; }
.workbench-bar > span { color: var(--muted); font-size: .82rem; text-align: right; }
.star { color: var(--red); font-size: 1.44rem; }
.workbench-grid { display: grid; grid-template-columns: 1.36fr 1fr; }
#generator, .preview { min-width: 0; padding: clamp(17px, 3vw, 31px); }
.preview { border-left: 1px solid var(--line); background: #f9f0df; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.preview-head h3 { font-size: 1.5rem; }
.preview-head span { color: var(--gold); }
.step + .step { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.step h3 { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; margin-bottom: 14px; }
.step h3 span { font: 650 .76rem var(--body); display: inline-grid; place-items: center; min-width: 23px; aspect-ratio: 1; border-radius: 50%; background: var(--green); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 15px; }
.chip { background: #f5ead4; color: var(--green); border: 1px solid #c5ab76; border-radius: 4px; padding: 7px 9px; min-height: 36px; font-weight: 650; font-size: .77rem; }
.chip:hover { background: #ebd8af; }
.spot-groups { display: grid; gap: 7px; }
details { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
summary { cursor: pointer; font-weight: 650; padding: 9px 12px; }
.spot-list { display: grid; grid-template-columns: 1fr 1fr; padding: 0 10px 8px; gap: 3px 6px; }
.spot { display: flex; align-items: center; gap: 5px; font-size: .83rem; min-height: 33px; cursor: pointer; padding-inline: 3px; }
.spot:has(input:checked) { background: #e7ecdd; border-radius: 4px; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--green); flex: 0 0 16px; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 44px; background: #fffdf7; border: 1px solid #b5a483; padding: 8px 10px; border-radius: 5px; }
input:disabled { opacity: .58; }
textarea { display: block; resize: vertical; }
label:not(.spot, .check) { font-weight: 650; font-size: .9rem; }
label > :is(input:not([type=checkbox]), select, textarea) { display: block; margin: 5px 0 13px; }
label small { font-weight: 450; }
.custom { margin: 14px 0; }
.custom div, .email-row { display: flex; align-items: stretch; gap: 6px; margin-top: 5px; }
.custom button, .email-row button { flex-shrink: 0; }
#stop-count { color: var(--muted); font: .8rem var(--body); margin-left: 5px; }
.help, [role=status] { color: var(--muted); font-size: .83rem; }
.help { margin: 7px 0; }
[role=status]:not(:empty) { margin-top: 8px; }
.chain { margin: 8px 0 0; padding-left: 25px; }
.chain li { padding: 4px 0 4px 3px; font-size: .9rem; border-bottom: 1px solid #e9dfca; overflow-wrap: anywhere; }
.chain-actions { display: flex; gap: 4px; float: right; margin-left: 4px; }
.chain li::after { content: ''; display: block; clear: both; }
.chain-actions button { min-height: 30px; min-width: 32px; padding: 1px 5px; }
.chain li > span { display: inline-block; padding-block: 4px; }
.stamp { display: grid; text-align: center; justify-items: center; gap: 9px; padding: 27px 16px; min-width: 0; overflow-wrap: anywhere; border: 7px solid transparent; background: linear-gradient(#fff8e8, #fff8e8) padding-box, repeating-linear-gradient(130deg, #a3434f 0 5px, #fff2d4 5px 10px) border-box; outline: 1px solid #ad7c44; outline-offset: -12px; }
.stamp.reveal { background: linear-gradient(#faedc5, #faedc5) padding-box, repeating-linear-gradient(130deg, #9e6129 0 5px, #fceac7 5px 10px) border-box; }
.stamp-label { color: var(--red); font-size: .68rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.stamp-icon { color: var(--gold); font-size: 1.65rem; line-height: 1; }
.stamp h4 { font-size: 1.55rem; }
.stamp p { font: clamp(1.04rem, 1.7vw, 1.22rem)/1.38 var(--heading); white-space: pre-wrap; }
.gift-reveal { color: var(--red); font: bold 1.22rem var(--heading); }
.card-row + .card-row { margin-top: 18px; }
.card-controls { display: flex; justify-content: flex-end; gap: 7px; margin-top: 7px; }
.card-controls .light { min-height: 40px; font-size: .8rem; }
.card-row textarea { margin-top: 7px; }
.exports { min-width: 0; padding: 10px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 7px 0 10px; border: 0; }
.exports[disabled] { display: none; }
.exports legend { font: bold 1.05rem var(--heading); }
.exports select { margin-bottom: 0 !important; }
.exports label { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 6px; font-size: .82rem; padding: 6px 0; }
.guide { max-width: 840px; margin-block: 64px; }
.guide h1, .guide h2, .extras h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); font-weight: 500; margin-bottom: 14px; max-width: none; }
.guide p { margin: 11px 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 28px; color: var(--red); font-weight: 650; }
.guide details { margin: 7px 0; }
.guide details p { margin: 0 12px 12px; }
.extras { margin-block: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.extras > div { background: #f0e3c9; border: 1px solid var(--line); padding: clamp(16px, 3vw, 27px); border-radius: 7px; }
.extras p { margin: 5px 0 13px; }
#reminder { margin-top: 15px; }
footer { background: var(--deep); color: var(--paper); }
footer .shell { display: flex; justify-content: space-between; padding-block: 20px; gap: 13px; align-items: center; }
dialog { color: var(--green); background: var(--paper); border: 1px solid var(--gold); border-radius: 8px; width: min(460px, calc(100% - 32px)); padding: 24px; }
dialog::backdrop { background: #0e2b22ad; }
dialog p { margin-block: 10px; }
@media(max-width: 820px) {
  .shell { width: calc(100% - 38px); }
  .workbench-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-block: 48px 54px; }
}
@media(max-width: 650px) {
  .nav-inner { flex-wrap: wrap; justify-content: flex-start; gap: 2px 13px; padding-block: 10px 7px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 33px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .intro { margin: 14px 0 19px; }
  .map { width: min(100%, 400px); justify-self: center; }
  .map-compass { font-size: 2rem; }
  .map-tree { font-size: 3.4rem; }
  .map-stamp { font-size: .65rem; }
  .workbench-grid, .extras { grid-template-columns: 1fr; }
  .workbench { margin-top: 25px; }
  .workbench-bar { padding: 12px 16px; min-height: 60px; }
  .workbench-bar h2 { font-size: 1.32rem; }
  .preview { border-left: 0; border-top: 1px solid var(--line); }
  .guide { margin-block: 40px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.price-options, .premium-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-options article, #family-children fieldset { border: 1px solid var(--line); border-radius: 7px; padding: clamp(14px, 3vw, 24px); background: var(--paper); min-width: 0; }
.price-options article { display: flex; flex-direction: column; align-items: flex-start; }
.price-options article:last-child { border: 2px solid var(--deep); }
.price-options button { margin-top: auto; }
.price-options .price { font-family: Georgia, serif; font-size: 2rem; margin: 0; }
#premium-tools > div, #family-children { margin-bottom: 18px; }
#family-form { margin-top: 32px; }
.legal article section { margin-block: 34px; }
.guide-table { overflow-x: auto; margin-block: 1rem; }
.guide-table table { border-collapse: collapse; width: 100%; min-width: 420px; }
.guide-table th, .guide-table td { padding: 9px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table th { background: #f0e3c9; }
#pricing-title { scroll-margin-top: 1rem; }
.extras { grid-template-columns: 1fr; }
@media (max-width: 650px) {
  .price-options, .premium-grid { grid-template-columns: 1fr; }
  .nav nav { column-gap: 12px; }
}
