/* Dahlia Manor — shared styles */

:root {
  color-scheme: light;
  --cream: #F6EFE3;
  --cream-2: #EFE5D3;
  --card: #FBF5EA;
  --ink: #2E3B2C;
  --ink-soft: #46533F;
  --ink-muted: #5E6B57;
  --ink-faint: #6A7461;
  --ink-ghost: #8A8F7E;
  --green: #2E4A32;
  --green-hover: #3D6142;
  --green-line: #8FA884;
  --leaf: #6E8B4E;
  --dahlia: #C2456B;
  --dahlia-deep: #A8345A;
  --dahlia-deeper: #7F2443;
  --dahlia-light: #E8A0B4;
  --dahlia-wash: #F8E3E3;
  --coral: #E8875A;
  --mauve: #B5577E;
  --gold: #F2C66D;
  --sand: #E9E1CF;
  --sand-2: #E6DCC8;
  --rule: #E2D7C2;
  --font-serif: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--dahlia-deep); text-decoration: none; }
a:hover { color: var(--dahlia-deeper); }

:focus-visible { outline: 2px solid var(--dahlia); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; }
p { margin: 0; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.2em;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* ---------- Nav ---------- */

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--dahlia); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--dahlia-deep); }
.nav-links a.quiet { color: var(--ink-muted); }

@media (max-width: 520px) {
  .nav { gap: 14px 20px; }
  .nav-links { gap: 16px; margin-left: 0; width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--green); color: var(--card); }
.btn-solid:hover { background: var(--green-hover); color: var(--card); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--sand); color: var(--green); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-on-dark { background: transparent; color: var(--card); border-color: var(--green-line); }
.btn-on-dark:hover { background: var(--green-hover); color: var(--card); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px clamp(24px, 5vw, 80px);
  align-items: center;
  padding: 48px 0 80px;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.display {
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display .accent { color: var(--dahlia); }

.lede {
  font-size: 19px;
  line-height: 30px;
  max-width: 46ch;
  color: var(--ink-soft);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* The hero illustration: a garden blob with the family in front of it */

.scene { position: relative; aspect-ratio: 1 / 0.92; width: 100%; }
.scene > * { position: absolute; }
.scene .blob {
  inset: 0 4%;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, #CFDDB4 0%, #A9BE8B 100%);
  overflow: hidden;
}
.scene .sun { position: absolute; top: 12%; right: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #7E9A5C; }
.scene .flower-1 { left: 0; top: 30%; width: 16%; aspect-ratio: 1; color: var(--coral); }
.scene .flower-2 { left: 9%; top: 18%; width: 11%; aspect-ratio: 1; color: var(--dahlia); }
.scene .flower-3 { right: 0; top: 36%; width: 15%; aspect-ratio: 1; color: var(--mauve); }
.scene .tony   { left: 22%; bottom: 0; width: 34%; height: 44%; z-index: 1; }
.scene .jackie { left: 41%; bottom: 0; width: 34%; height: 44%; z-index: 1; }
.scene .anya   { left: 3%;  bottom: 0; width: 30%; height: 36%; z-index: 2; }
.scene .levi   { right: 2%; bottom: 0; width: 31%; height: 38%; z-index: 2; }

/* ---------- Family ---------- */

.family { background: var(--cream-2); padding: 80px 0 88px; }
.family .kicker { margin-bottom: 12px; }

.title {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  max-width: 22ch;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(46, 59, 44, 0.08), 0 10px 30px -18px rgba(46, 59, 44, 0.35);
}
.card-art {
  height: 210px;
  border-radius: 0 0 50% 50% / 0 0 18% 18%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 16px;
}
.card-art svg { width: 170px; height: 194px; }
.card-art.levi   { background: #F2D58E; }
.card-art.anya   { background: #C9D6B0; }
.card-art.jackie { background: #EDB7A6; }
.card-art.tony   { background: #B9CBD0; }

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 26px; }
.card-body p { font-size: 16px; line-height: 25px; color: var(--ink-soft); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: auto; padding-top: 6px; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.card-foot .card-link, .card-foot .pill { margin-top: 0; padding-top: 0; }
.card-foot .pill { padding: 5px 12px; }
.pill {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--sand);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Maze ---------- */

.maze { background: var(--green); color: var(--card); padding: 80px 0 88px; }
.maze .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: start;
}
.maze-intro { display: flex; flex-direction: column; gap: 20px; max-width: 42ch; }
.maze-intro .kicker { color: var(--gold); }
.maze-intro h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.maze-intro p { font-size: 17px; line-height: 28px; color: #DCE3D2; }

.stats { display: flex; gap: 36px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.stat-n { font-family: var(--font-serif); font-size: 38px; line-height: 46px; }
.stat-l { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #BCC8B1; }

.maze-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 440px;
  box-shadow: 0 24px 50px -24px rgba(10, 20, 10, 0.6);
}
@media (max-width: 420px) { .maze-card { padding: 22px 18px; border-radius: 22px; } }

.progress { display: flex; gap: 5px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--sand-2); transition: background-color .2s ease; }
.progress .done { background: var(--dahlia); }
.progress .now { background: var(--dahlia-light); }

.panel { display: flex; flex-direction: column; gap: 18px; }
.panel[hidden] { display: none; }

.room-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
}
.room-meta .trail { color: var(--ink-ghost); }

.room { display: flex; flex-direction: column; gap: 8px; }
.room h3 { font-size: 32px; line-height: 38px; display: flex; align-items: center; gap: 12px; }
.room h3 .icon { width: 30px; height: 30px; color: var(--dahlia); }
.room p { font-size: 17px; line-height: 27px; color: var(--ink-soft); }

.flash {
  font-size: 15px;
  line-height: 23px;
  color: var(--dahlia-deep);
  background: var(--dahlia-wash);
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.flash .icon { margin-top: 3px; }
.flash[hidden] { display: none; }

.doors { display: flex; flex-direction: column; gap: 10px; }
.door {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #F3EBDC;
  border: 1.5px solid #DCCFB6;
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.door:hover:not(:disabled) { background: #EADFC9; border-color: var(--leaf); }
.door:disabled { opacity: 0.5; cursor: not-allowed; }
.door .icon { width: 22px; height: 22px; color: var(--leaf); }
.door-text { display: flex; flex-direction: column; gap: 2px; }
.door-label { font-weight: 600; font-size: 16px; }
.door-sub { font-size: 14px; color: var(--ink-faint); }

.bouquet { display: flex; gap: 6px; align-items: flex-end; }
.bouquet .mark-1 { width: 56px; height: 56px; color: var(--dahlia); }
.bouquet .mark-2 { width: 40px; height: 40px; color: var(--coral); }
.bouquet .mark-3 { width: 48px; height: 48px; color: var(--mauve); }
.won { gap: 16px; }
.won .kicker { font-size: 13px; letter-spacing: 0.06em; }
.won h3 { font-size: 32px; line-height: 38px; }
.won p { font-size: 17px; line-height: 27px; color: var(--ink-soft); }
.won p.strong { font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */

.footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.footer .mark { width: 18px; height: 18px; color: var(--dahlia); }
.footer span { display: inline-flex; align-items: center; gap: 8px; }
/* Homepage: the footer follows the dark maze band directly, so it needs its own breathing room and no rule. */
.footer.after-band { border-top: 0; padding-top: 32px; }

/* The family's way into app.dahliamanor.com: a quiet key, bottom right. */
.footer-key {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink-ghost);
  opacity: 0.55;
  transition: opacity .15s ease, color .15s ease;
}
.footer-key:hover, .footer-key:focus-visible { opacity: 1; color: var(--dahlia); }
.footer-key .icon { width: 16px; height: 16px; }

/* ---------- Person pages (levi., anya., jackie., tony.dahliamanor.com) ---------- */

.hero.guide { padding: 40px 0 72px; }
.hero.guide .display { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; }
.hero.guide .hero-copy { gap: 22px; }
.hero.single { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
.hero .pill { margin-top: 0; }
.hero.has-facts { padding-bottom: 36px; }

/* Show details on Levi's page: when, where, tickets */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  padding: 0 0 72px;
}
.fact {
  background: var(--card);
  border-radius: 22px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(46, 59, 44, 0.08), 0 10px 30px -18px rgba(46, 59, 44, 0.35);
}
.fact .kicker { font-size: 13px; letter-spacing: 0.06em; }
.fact h2 { font-size: 22px; line-height: 1.2; }
.fact p { font-size: 16px; line-height: 25px; color: var(--ink-soft); }
.fact a { font-weight: 600; white-space: nowrap; }

.scene.person { aspect-ratio: 1 / 0.9; max-width: 520px; }
.scene.person .blob { inset: 0 6%; }
.scene.person .ground { height: 20%; }
.scene.person .flower-1 { left: 0; top: 34%; width: 16%; }
.scene.person .flower-2 { right: 2%; left: auto; top: 22%; width: 13%; }
.scene.person .portrait { left: 15%; right: auto; bottom: 0; width: 70%; height: 82%; }

.scene.levi-scene .blob { background: linear-gradient(180deg, #F6DE9E 0%, #F2C66D 100%); }
.scene.levi-scene .ground { background: #C99A5B; }
.scene.levi-scene .flower-1 { color: var(--dahlia); }
.scene.levi-scene .flower-2 { color: var(--coral); }
.scene.levi-scene .horse { left: 7%; bottom: 8%; width: 82%; }

.scene.anya-scene .blob { background: linear-gradient(180deg, #DDE6CC 0%, #C9D6B0 100%); }
.scene.anya-scene .ground { background: #9DB283; }
.scene.anya-scene .flower-1 { color: var(--mauve); }
.scene.anya-scene .flower-2 { color: var(--dahlia); }

.scene.jackie-scene .blob { background: linear-gradient(180deg, #F5D4C7 0%, #EDB7A6 100%); }
.scene.jackie-scene .ground { background: #D39A86; }
.scene.jackie-scene .flower-1 { color: var(--dahlia); }
.scene.jackie-scene .flower-2 { color: var(--mauve); }

.scene.tony-scene .blob { background: linear-gradient(180deg, #D4E0E4 0%, #B9CBD0 100%); }
.scene.tony-scene .ground { background: #8FA7AF; }
.scene.tony-scene .flower-1 { color: var(--coral); }
.scene.tony-scene .flower-2 { color: var(--dahlia); }

.howto { background: var(--cream-2); padding: 72px 0 80px; }
.howto h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 32px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.step {
  background: var(--card);
  border-radius: 22px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
}
.step-n {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
}
.step-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step h3 { font-size: 24px; }
.step p { font-size: 17px; line-height: 27px; color: var(--ink-soft); }
.step p strong { color: var(--ink); }
.step.key { box-shadow: inset 0 0 0 2px var(--dahlia); }
.step.key .step-n { background: var(--dahlia); }
.step .btn { max-width: 100%; }
.step .btn .url { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
}

.name-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.name-box {
  border: 2px dashed var(--dahlia);
  border-radius: 14px;
  padding: 10px 18px;
  font-family: var(--font-serif);
  font-size: 26px;
  background: #FCEDEF;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
