/* celebratemark.life — the trailhead kiosk
   Routed brown board, cream letters, pine green and blaze orange, notice paper for reading. */

:root {
  --board: #4a3a2a;
  --board-deep: #2f2218;
  --board-edge: #5e4a36;
  --board-grain: rgba(0, 0, 0, 0.09);
  --grain: url("grain.svg");
  --cream: #f4e9cf;
  --cream-dim: #d7c9a8;
  --paper: #f6f1e4;
  --paper-2: #ece4d1;
  --rule: #cdbf9f;
  --ink: #1f1a14;
  --ink-2: #4d4338;
  --pine: #2f5d3a;
  --pine-deep: #1e3f28;
  --pine-tint: #dfe8dc;
  --blaze: #c9782e;
  --blaze-deep: #a85f1e;
  --blaze-text: #8a4a12;
  --blaze-tint: #f7e3cc;
  --river: #6f95a8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgba(31, 26, 20, 0.16), 0 8px 20px -10px rgba(31, 26, 20, 0.4);
  --shadow-2: 0 2px 4px rgba(31, 26, 20, 0.2), 0 18px 40px -16px rgba(31, 26, 20, 0.5);
  --measure: 66ch;
  --radius: 10px;
  --font-display: "Rubik", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(1200px 400px at 50% -100px, #fffaf0 0%, transparent 70%);
}

/* Browser surfaces carry the world too */
::selection { background: var(--blaze-tint); color: var(--ink); }
.board ::selection, .site-header ::selection, .site-footer ::selection, .action-bar ::selection { background: var(--blaze); color: var(--board-deep); }
html { scrollbar-color: var(--board) var(--paper-2); }
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--board); border: 3px solid var(--paper-2); border-radius: 8px; }

:focus-visible {
  outline: 3px solid var(--blaze);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--paper);
  border-radius: 6px;
}
.board :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .action-bar :focus-visible {
  outline-color: var(--cream);
  box-shadow: 0 0 0 7px var(--board);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--blaze); color: var(--board-deep);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 700;
  z-index: 100; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); font-weight: 700; color: var(--pine-deep); }
h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--pine-deep); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
strong { font-weight: 700; }
small, .fine { font-size: 1rem; color: var(--ink-2); }
ul, ol { padding-left: 1.3rem; max-width: var(--measure); }
li { margin-bottom: 0.4rem; }
address { font-style: normal; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

/* ---------- Routed board ---------- */
.board {
  position: relative;
  color: var(--cream);
  background-color: var(--board);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%, rgba(0, 0, 0, 0.05) 70%, rgba(0, 0, 0, 0.12)),
    var(--grain);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: inset 0 0 0 3px var(--board-deep), inset 0 0 0 5px var(--board-edge), var(--shadow-2);
}
@media (min-width: 900px) { .board { padding: 3.25rem 3.5rem 2.75rem; } }
.board-title { font-size: 1.8rem; color: var(--cream); }
@media (min-width: 900px) { .board-title { font-size: 2.6rem; } }
.board-text { color: var(--cream); font-size: 1.2rem; margin-top: 0.75rem; }
.board-text + .board-text { margin-top: 0; }
.board::before {
  content: "";
  position: absolute; inset: 14px;
  border: 2px solid var(--cream);
  border-radius: 6px;
  opacity: 0.85;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 245, 220, 0.12);
}
.board a { color: var(--cream); }
.board a:hover { color: #fff; }
.board .plaque, .site-footer .plaque { color: var(--board-deep); }
.board .plaque--pine, .site-footer .plaque--pine { color: var(--cream); }
.board .plaque:hover { color: var(--board-deep); }
.routed {
  font-family: var(--font-display);
  color: var(--cream);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 245, 220, 0.18);
}

/* ---------- Plaque buttons ---------- */
.plaque {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.7rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  color: var(--board-deep); background: var(--cream);
  border: 0; border-radius: 9px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(74, 58, 42, 0.35), 0 3px 0 var(--board-deep), 0 8px 16px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.plaque svg { width: 1.35em; height: 1.35em; flex: none; }
.plaque:hover { background: #fff6dd; color: var(--board-deep); }
.plaque:active { transform: translateY(2px) scale(0.985); box-shadow: inset 0 0 0 2px rgba(74, 58, 42, 0.35), 0 1px 0 var(--board-deep), 0 4px 8px -6px rgba(0, 0, 0, 0.5); }
.plaque--blaze { background: var(--blaze); color: var(--board-deep); box-shadow: inset 0 0 0 2px rgba(47, 34, 24, 0.35), 0 3px 0 var(--board-deep), 0 8px 16px -8px rgba(0, 0, 0, 0.5); }
.plaque--blaze:hover { background: #d9873b; color: var(--board-deep); }
.plaque--pine { background: var(--pine); color: var(--cream); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25), 0 3px 0 var(--pine-deep), 0 8px 16px -8px rgba(0, 0, 0, 0.5); }
.plaque--pine:hover { background: #38704a; color: #fff; }
.plaque--wide { width: 100%; }
.plaque-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.25rem; }
.plaque-row .plaque { flex: 1 1 14rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--board);
  background-image: var(--grain);
  color: var(--cream);
  box-shadow: 0 2px 0 var(--board-deep), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none;
}
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
@media (max-width: 480px) { .wordmark { font-size: 1.15rem; gap: 0.45rem; } .wordmark svg { width: 1.7rem; height: 1.7rem; } .menu-toggle { padding: 0.4rem 0.7rem; } .site-header .wrap { min-height: 3.9rem; } }
.wordmark span { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.4rem 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--cream); background: rgba(0, 0, 0, 0.22);
  border: 2px solid var(--cream); border-radius: 8px; cursor: pointer;
}
.menu-toggle svg { width: 1.3rem; height: 1.3rem; }
.menu-toggle[aria-expanded="true"] .ico-menu { display: none; }
.menu-toggle[aria-expanded="false"] .ico-close { display: none; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0.25rem 0 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; max-width: none; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 0.85rem 1rem; min-height: 3rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--cream); text-decoration: none; border-radius: 8px;
  border-left: 0;
}
.site-nav a:hover { background: rgba(0, 0, 0, 0.25); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--board-deep); }
.site-header.open .site-nav { display: block; }
.site-header.open .site-nav ul { animation: menu-in 0.3s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: row; padding: 0; gap: 0.2rem; }
  .site-nav a { padding: 0.6rem 0.85rem; font-size: 1rem; }
}

/* ---------- Hero sign ---------- */
.hero { padding: 1.25rem 0 0; }
.hero h1 {
  font-size: clamp(1.15rem, 3.4vw, 1.55rem); font-weight: 600; letter-spacing: 0.01em;
  color: var(--cream); opacity: 0.95;
}
.hero .name { display: block; font-size: clamp(1.6rem, 5.2vw, 2.4rem); font-weight: 800; margin-top: 0.15rem; letter-spacing: -0.015em; }
.hero .date-block { margin: 1.4rem 0 1.1rem; }
.hero .day { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 5vw, 2.2rem); color: var(--cream); }
.hero .date { display: block; font-size: clamp(2.7rem, 10.5vw, 5.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 0.15rem 0 0.35rem; }
.hero .time { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 5vw, 2.2rem); }
.hero .place { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 0.8rem; align-items: start; margin-top: 1.1rem; padding-top: 1rem; border-top: 2px solid rgba(244, 233, 207, 0.35); max-width: 40rem; }
.hero .place svg { width: 2.2rem; height: 2.2rem; margin-top: 0.15rem; }
.hero .place-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 4.2vw, 1.7rem); line-height: 1.2; }
.hero .place-detail { font-size: 1.05rem; color: var(--cream); opacity: 0.92; margin-top: 0.25rem; }
.hero .plaque-row { margin-top: 1.3rem; }
.hero .plaque { font-size: 1.2rem; min-height: 3.6rem; }
.hero-board { display: grid; gap: 1.5rem; align-items: center; }
.hero-photo { margin: 0; width: 100%; max-width: 12rem; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; border: 3px solid var(--cream); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); position: relative; z-index: 1; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-details { position: relative; z-index: 1; min-width: 0; }
@media (min-width: 720px) { .hero-board { grid-template-columns: minmax(13rem, 19rem) 1fr; gap: 2.5rem; } .hero-photo { max-width: none; } }

/* Authored moment: the letters are routed in, one line after the next */
.cut { clip-path: inset(0 0 0 0); }
.js .cut { animation: route-in 0.9s var(--ease) both; }
.js .cut:nth-child(2), .js .date-block .cut:nth-child(2) { animation-delay: 0.12s; }
.js .date-block .cut:nth-child(1) { animation-delay: 0.18s; }
.js .date-block .cut:nth-child(2) { animation-delay: 0.30s; }
.js .date-block .cut:nth-child(3) { animation-delay: 0.42s; }
.js .place.cut { animation-delay: 0.55s; }
.js .hero .plaque-row.cut { animation-delay: 0.7s; }
@keyframes route-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0.6; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ---------- Ridge ---------- */
.hero { position: relative; z-index: 2; }
.ridge { position: relative; z-index: 1; margin-top: -3rem; line-height: 0; }
.ridge img { width: 100%; height: clamp(190px, 44vw, 420px); display: block; object-fit: cover; object-position: center bottom; }
.ridge .overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 900px) { .ridge { margin-top: -5.5rem; } }
.ridge .leaf { transform-box: fill-box; transform-origin: center; }
.js .ridge.live .leaf { animation: drift var(--dur, 14s) linear infinite; animation-delay: var(--delay, 0s); }
.js .ridge.live .mist { animation: mist 26s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate(var(--dx, 140px), 340px) rotate(var(--rot, 540deg)); opacity: 0; }
}
@keyframes mist { from { transform: translateX(-40px); opacity: 0.55; } to { transform: translateX(60px); opacity: 0.8; } }

/* ---------- Sections on notice paper ---------- */
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .section { padding-top: 4rem; padding-bottom: 4rem; } }
.section + .section { border-top: 2px solid var(--rule); }
.section-head { margin-bottom: 1.25rem; }
.section-head p { margin-top: 0.5rem; font-size: 1.1rem; color: var(--ink-2); }
.plank {
  display: inline-block; margin-bottom: 1rem;
  padding: 0.55rem 1.1rem 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 4vw, 1.8rem);
  color: var(--cream); background-color: var(--board); background-image: var(--grain);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--board-deep), inset 0 0 0 4px var(--board-edge);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.plank--pine { background-color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine-deep), inset 0 0 0 4px #38704a; }

/* Ruled rows: the day's facts */
.facts { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-top: 2px solid var(--board); }
.facts li {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem 1.5rem;
  padding: 0.95rem 0.25rem; margin: 0;
  border-bottom: 1px solid var(--rule);
}
.facts .k { font-family: var(--font-display); font-weight: 700; color: var(--pine-deep); font-size: 1.05rem; }
.facts .v { font-size: 1.1rem; }
.facts .v small { display: block; margin-top: 0.15rem; }
@media (min-width: 640px) { .facts li { grid-template-columns: 11rem 1fr; padding: 1.05rem 0.5rem; } }

/* Notice: a sheet pinned under the plexiglass */
.notice {
  background: #fffbf1; border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.25rem 1.35rem; max-width: 52rem;
}
.notice--blaze { background: var(--blaze-tint); border-color: #e2bf93; }
.notice--pine { background: var(--pine-tint); border-color: #b9cbb6; }
.notice h3, .notice .h3 { margin-bottom: 0.5rem; }
.notice p:last-child { margin-bottom: 0; }

/* Two-up summaries on the home page */
.summary { display: grid; gap: 1.25rem; }
.summary > div { max-width: 52rem; }
.summary .plaque { margin-top: 0.75rem; }
@media (min-width: 900px) { .summary { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Distance ribbon */
.distance { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 700; color: var(--blaze-text); font-size: 1rem; }
.distance svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Directions page ---------- */
.route-list { list-style: none; padding: 0; margin: 0; max-width: 52rem; counter-reset: step; }
.route-list li {
  position: relative; padding: 0.9rem 0 0.9rem 3.4rem; margin: 0;
  border-bottom: 1px solid var(--rule); font-size: 1.1rem;
}
.route-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.85rem;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--cream); background: var(--pine); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--pine-deep), 0 2px 0 var(--pine-deep);
}
.route-list li strong { color: var(--pine-deep); }
.lastmile { margin: 1.5rem 0; }
.lastmile svg { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: var(--shadow-1); background: #f2ecdc; }
.lastmile .path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .lastmile.in .path { animation: draw 2.4s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.coords { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.coords code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.1rem; background: var(--paper-2); padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid var(--rule); }
.copied { font-weight: 700; color: var(--pine-deep); }

/* ---------- Lodging ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1.5rem; }
.chip {
  min-height: 2.9rem; padding: 0.45rem 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--pine-deep); background: var(--pine-tint);
  border: 2px solid #b9cbb6; border-radius: 999px; cursor: pointer;
  transition: transform 0.14s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { background: #d1dfcd; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--pine); color: var(--cream); border-color: var(--pine-deep); }
.stay-group { margin: 1.75rem 0; }
.stay-group[hidden] { display: none; }
.stay-group .h3 { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.stay-group .h3 .distance { font-size: 1rem; }
.stay { list-style: none; margin: 0; padding: 0; max-width: 56rem; border-top: 2px solid var(--board); }
.stay li {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem 1.25rem; align-items: center;
  padding: 1rem 0.25rem; margin: 0; border-bottom: 1px solid var(--rule);
}
.stay .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.stay .name a { color: inherit; display: inline-flex; align-items: center; min-height: 2.6rem; }
.stay .town { color: var(--ink-2); }
.stay .addr { color: var(--ink-2); }
.stay .call { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stay .plaque { min-height: 2.9rem; font-size: 1rem; padding: 0.5rem 1rem; }
@media (min-width: 720px) {
  .stay li { grid-template-columns: 1fr auto; grid-template-areas: "name call" "town call" "addr call"; }
  .stay .name { grid-area: name; }
  .stay .town { grid-area: town; }
  .stay .addr { grid-area: addr; }
  .stay .call { grid-area: call; justify-self: end; }
}

/* ---------- Forms ---------- */
.form { max-width: 40rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pine-deep); margin-bottom: 0.5rem; padding: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.field .hint { display: block; color: var(--ink-2); font-size: 1rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: #fffdf7; border: 2px solid var(--board); border-radius: 8px;
  caret-color: var(--blaze);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blaze); outline: 3px solid var(--blaze); outline-offset: 2px; box-shadow: none; }
.field input::placeholder, .field textarea::placeholder { color: #7a6f60; }
.field.invalid input, .field.invalid textarea { border-color: var(--blaze-deep); background: #fff5ea; }
.field .error { display: none; color: var(--blaze-text); font-weight: 700; margin-top: 0.35rem; }
.field.invalid .error { display: block; }
.choices { display: grid; gap: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0.75rem; border: 2px solid var(--rule); border-radius: 8px; background: #fffdf7; cursor: pointer; font-size: 1.05rem; }
.choice input { width: 1.4rem; height: 1.4rem; margin: 0; accent-color: var(--pine); flex: none; }
.choice:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .plaque { margin-top: 0.5rem; }
.form-note { margin-top: 0.75rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 2px solid var(--board); padding-top: 0.25rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0.25rem; min-height: 3.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pine-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.6rem; height: 1.6rem; flex: none; transition: transform 0.3s var(--ease); color: var(--blaze-deep); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.faq .answer { padding: 0 0.25rem 1.1rem; }
.js .faq details[open] .answer { animation: answer-in 0.35s var(--ease) both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Life page ---------- */
.life { display: grid; gap: 1.5rem; }
.portrait-slot {
  aspect-ratio: 4 / 5; max-width: 22rem; width: 100%;
  border-radius: 10px; background: var(--pine-tint);
  border: 2px dashed #9fb59c; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--pine-deep); font-family: var(--font-display); font-weight: 600;
}
.portrait-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.portrait {
  aspect-ratio: 4 / 5; max-width: 22rem; width: 100%;
  margin: 0; border-radius: 10px; overflow: hidden;
  background: var(--pine-tint);
  box-shadow: 0 1px 0 rgba(0,0,0,0.18), 0 10px 24px rgba(0,0,0,0.16);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (min-width: 900px) { .life { grid-template-columns: 22rem 1fr; align-items: start; } }
.family { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.family li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.family .rel { display: block; font-size: 1rem; color: var(--ink-2); }
.prose p { font-size: 1.12rem; }

a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding: 0.45rem 0; font-weight: 700; }
.notice .plaque-row { margin-top: 0.9rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; padding: 2.25rem 0 6.5rem; color: var(--cream);
  background-color: var(--board); background-image: var(--grain);
  box-shadow: inset 0 3px 0 var(--board-deep); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer .wrap { display: grid; gap: 1.25rem; }
.site-footer p { color: var(--cream); max-width: 48rem; }
.site-footer .memo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; max-width: none; }
.site-footer nav a { color: var(--cream); font-weight: 600; display: inline-block; padding: 0.45rem 0; min-height: 2.75rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: 2.5rem; } }

/* ---------- Sticky action bar (home, phone) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background-color: var(--board); background-image: var(--grain);
  box-shadow: 0 -2px 0 var(--board-deep), 0 -10px 24px -14px rgba(0, 0, 0, 0.6);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.action-bar.show { transform: none; }
.action-bar .plaque { min-height: 3.25rem; font-size: 1.05rem; padding: 0.5rem 0.75rem; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.3em; height: 1.3em; vertical-align: -0.28em; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0.5rem 0 0; max-width: none; }
.inline-list li { margin: 0; }

/* ---------- Reduced motion: state changes stay, travel goes ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cut { animation: none; }
  .js .ridge.live .leaf { animation: none; opacity: 0.9; }
  .js .ridge.live .mist { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .lastmile.in .path { animation: none; stroke-dashoffset: 0; }
  .action-bar { transition: none; }
  .plaque, .chip { transition: none; }
  .faq summary svg { transition: none; }
  .js .faq details[open] .answer { animation: none; }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer nav, .action-bar, .ridge, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .board { box-shadow: none; background: #fff; color: #000; border: 2px solid #000; }
  .board::before { display: none; }
  .routed, .hero h1, .hero .day, .hero .date, .hero .time, .hero .place-detail, .board-title, .board-text, .board a, .site-footer, .site-footer a, .site-footer p { color: #000; text-shadow: none; }
  .plank, .plank--pine { background: #fff; color: #000; box-shadow: none; border: 2px solid #000; text-shadow: none; }
  .site-footer { background: #fff; }
  .plaque { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: 0.9em; }
}

/* Header layout: nav inline on wide screens, stacked on phones */
.site-header .wrap { flex-wrap: wrap; }
.site-nav { flex-basis: 100%; order: 3; }
@media (min-width: 900px) { .site-nav { flex-basis: auto; order: 0; margin-left: auto; } }

/* Page titles on the inner pages carry the h1 at section-title scale */
.page-title { font-size: clamp(1.7rem, 4.5vw, 2.3rem); font-weight: 700; color: var(--pine-deep); }
.h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
