/* Merryholt home page. Tokens live in tokens.css (from the Merryholt design system). */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { overflow-wrap: break-word; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--action-primary);
  color: var(--action-primary-text);
}
.skip-link:focus { top: 16px; color: var(--action-primary-text); outline: 2px solid var(--ink-rust-lift); outline-offset: 2px; }

:root { --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); }

/* Motion: sections fade in (opacity only). The .motion class is removed for
   reduced-motion readers, so everything shows at once. */
.motion [data-reveal] { opacity: 0; transition: opacity 700ms var(--ease-out-quart); }
.motion [data-reveal].is-visible { opacity: 1; }
.motion .hero__panel { animation: fade-in 600ms var(--ease-out-quart) 100ms both; }
.letter__done:not([hidden]) { animation: fade-in 300ms var(--ease-out-quart) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
:root {
  --wrap: 1280px;
  --gutter: 64px;
  --col-gap: 32px;
  --section-y: 96px; /* the one top and bottom space for every section */
  /* Soft divider: brass mixed into cream paper, lighter than the brass hairline */
  --rule-soft: color-mix(in srgb, var(--ink-brass) 35%, var(--paper-cream));
}

/* ---------- Age colors ----------
   Each age has one ink (see the design system "category inks"). Hub and year pages
   set the class on <body>; everything themed reads --age-ink. */
:root, .age-60th { --age-ink: var(--ink-moss); --age-ink-text: var(--ink-moss); --age-ink-rgb: 61, 74, 56; }
.age-70th { --age-ink: var(--ink-rust); --age-ink-text: var(--ink-rust-deep); --age-ink-rgb: 156, 74, 46; }
.age-80th { --age-ink: var(--ink-plum); --age-ink-text: var(--ink-plum); --age-ink-rgb: 107, 58, 78; }
/* Retirement: "Harbour" blue, not in the design system yet */
.age-retirement { --age-ink: #34495A; --age-ink-text: #34495A; --age-ink-rgb: 52, 73, 90; }
.eyebrow--age { color: var(--age-ink-text); }

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

/* ---------- Links: underline shows on hover and keyboard focus only ---------- */

a { text-decoration-color: transparent; transition: color 120ms ease, text-decoration-color 120ms ease; }
a:hover, a:focus-visible { text-decoration-color: var(--link-underline); }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow--ink { color: var(--ink-bark); }
.eyebrow--rust { color: var(--ink-rust-deep); }
.eyebrow--moss { color: var(--ink-moss); }
.eyebrow--brass { color: var(--ink-brass-lift); }
.eyebrow--slate { color: var(--ink-slate); }
.eyebrow--wide { letter-spacing: var(--tracking-caps-wide); }

.section-title { font-size: var(--text-2xl); }

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font: var(--weight-semibold) 18px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.btn:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 3px; }
.letter .btn:focus-visible, .letter input:focus-visible { outline: 2px solid var(--ink-rust-lift); outline-offset: 3px; }
.btn--primary { background: var(--action-primary); color: var(--action-primary-text); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--action-primary-text); }
.btn--light { background: var(--paper-cream); color: var(--ink-bark); border-color: var(--paper-cream); }
.btn--light:hover { background: var(--paper-linen); }

.link-on-dark { color: var(--paper-cream); text-decoration-color: transparent; }
.link-on-dark:hover, .link-on-dark:focus-visible { color: var(--paper-linen); text-decoration-color: var(--ink-rust-lift); }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font: var(--weight-medium) 30px/1 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--ink-bark);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink-bark); }
.wordmark__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 3px;
  align-self: flex-end;
  margin-bottom: 10px;
  background: var(--ink-rust);
}
.wordmark--lg { font-size: 36px; }
.wordmark--lg .wordmark__dot { width: 10px; height: 10px; margin-bottom: 11px; }

/* ---------- Header ---------- */

.site-header { background: var(--surface-page); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 18px; }
.site-nav a { min-height: var(--tap-min); display: flex; align-items: center; }
.site-nav a[aria-current="page"] { color: var(--ink-bark); text-decoration-color: var(--link-underline); }
.site-nav__rule { width: 1px; height: 24px; background: var(--rule-soft); }
/* Gift guides: the same rust square as the wordmark, after the label */
.site-nav__marked::after { content: ""; width: 6px; height: 6px; margin: 8px 0 0 5px; align-self: center; background: var(--ink-rust); }

/* Occasions dropdown: opens on click or tap (details element), never on hover */
.nav-drop { position: relative; }
.nav-drop summary {
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
  text-decoration-color: transparent;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
.nav-drop summary::-webkit-details-marker { display: none; }
/* Small chevron drawn with borders, turns up when open */
.nav-drop summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}
.nav-drop[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.nav-drop summary:hover, .nav-drop summary:focus-visible, .nav-drop[open] summary { text-decoration-color: var(--link-underline); }
.nav-drop summary:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 4px; }
.nav-drop.is-current summary { color: var(--ink-bark); text-decoration-color: var(--link-underline); }
.nav-drop__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: -24px;
  min-width: 240px;
  padding: 12px 24px;
  background: var(--paper-cream);
  outline: 1px solid var(--ink-brass);
  box-shadow: var(--shadow-card);
}
.nav-drop__panel a { min-height: 48px; display: flex; align-items: center; white-space: nowrap; }
.nav-drop__panel li + li { border-top: 1px solid var(--rule-soft); }
.nav-drop__panel a[aria-current="page"] { color: var(--ink-bark); text-decoration-color: var(--link-underline); }
.site-nav-mobile { display: none; }
.mobile-menu { display: none; }

/* Phone menu panel */
.menu-btn {
  min-height: var(--tap-min);
  padding: 0 8px;
  border: 0;
  background: none;
  font: var(--weight-semibold) 18px/1 var(--font-sans);
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
  text-decoration-color: transparent;
}
.menu-btn[aria-expanded="true"] { text-decoration-color: var(--link-underline); }
.menu-btn:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 2px; }
.mobile-menu__inner { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }
.mobile-menu__search { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__search label { font-weight: var(--weight-semibold); }
.mobile-menu__row { display: flex; gap: 8px; }
.mobile-menu__row input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--rule); /* brass, not the soft divider: a field edge needs 3:1 */
  border-radius: 0;
  background: var(--paper-cream);
  font: 400 18px var(--font-sans);
  color: var(--ink-bark);
}
.mobile-menu__row input:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 0; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font: var(--weight-semibold) 20px/1.2 var(--font-sans);
  color: var(--ink-bark);
}
.mobile-menu__nav a[aria-current="page"] { color: var(--ink-moss); text-decoration-color: var(--link-underline); }
.mobile-menu__group { margin-top: 20px; padding-bottom: 4px; }
.mobile-menu__occasions { border-top: 1px solid var(--rule-soft); }
.mobile-menu__sections { border: 1px solid var(--rule-soft); background: var(--surface-raised); }
.mobile-menu__sections summary {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}
.mobile-menu__sections summary::-webkit-details-marker { display: none; }
.mobile-menu__sections summary::after { content: "+"; font: 400 24px/1 var(--font-serif); }
.mobile-menu__sections[open] summary::after { content: "–"; }
.mobile-menu__sections ul { padding: 0 16px 8px; }
.mobile-menu__sections a { min-height: var(--tap-min); display: flex; align-items: center; }

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

.hero { position: relative; height: 680px; background: var(--ink-bark); }
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("../images/hero-garden-lunch.jpg") center 45% / cover no-repeat;
}
.hero__wrap { position: relative; height: 100%; display: flex; align-items: center; }
.hero__panel {
  width: 560px;
  padding: 40px;
  background: color-mix(in srgb, var(--paper-cream) 80%, transparent);
  outline: 1px solid var(--ink-brass);
  outline-offset: calc(-1 * var(--frame-inset));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero__tagline { font: italic 400 22px/1.3 var(--font-serif); color: var(--ink-rust-deep); }
.hero__title { font-size: 50px; line-height: 1.1; }
.hero__title span { white-space: nowrap; }
.hero__title span:first-child::after { content: "\A"; white-space: pre; }
.hero__intro { max-width: 390px; }
.hero__panel .btn { margin-top: 8px; }

/* ---------- Age index ---------- */

.ages { padding-top: var(--section-y); display: flex; flex-direction: column; gap: 32px; }
.ages__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr;
  column-gap: var(--col-gap);
  padding-top: 24px;
  padding-bottom: var(--section-y);
}
/* Full-width rule below the ages */
.ages__band { border-bottom: 1px solid var(--rule-soft); }
.age { display: flex; flex-direction: column; color: var(--ink-bark); font-weight: var(--weight-regular); text-decoration: none; }
.age:hover { color: var(--ink-bark); }
.age:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 8px; }
.age .age__num { transition: color 120ms ease; }
.age:hover .age__num { color: var(--age-ink-text); }
.age__link {
  color: var(--link);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
  text-decoration-color: transparent;
  transition: color 120ms ease, text-decoration-color 120ms ease;
  margin-top: 20px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  white-space: nowrap;
}
.age:hover .age__link { color: var(--action-primary-hover); text-decoration-color: var(--action-primary-hover); }
.age__num {
  height: 120px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 24px;
  font: 400 var(--text-numeral)/var(--leading-numeral) var(--font-serif);
  font-variant-numeric: lining-nums;
  color: var(--age-ink);
}
.age__num--word { font: italic 400 38px/1 var(--font-serif); padding-bottom: 6px; }
/* Retirement: not built yet. Greyed out, like the footer */
.age--soon { color: color-mix(in srgb, var(--ink-bark) 50%, var(--paper-cream)); }
.age--soon .age__num { color: inherit; }
.age__soon { font: italic 400 18px/1.4 var(--font-serif); }

/* ---------- Start here ---------- */

.start { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.start__other a { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.start__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.start__image { grid-column: span 7; position: relative; min-height: 440px; }
.start__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start__text { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.start__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.start__lead h3 { font-size: 30px; line-height: 1.15; }
.start__list { border-top: 1px solid var(--rule-soft); }
.start__list article { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; }
.start__list article + article { border-top: 1px solid var(--rule-soft); padding-bottom: 0; }
.start__list h3 { font-size: 22px; line-height: 1.25; }

/* ---------- Printables band ---------- */

.band { background: var(--surface-dark); color: var(--text-on-dark); }
.band .section-title { color: var(--text-on-dark); }
.printables { padding: var(--section-y) 0; }
.printables__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-on-dark);
}
.printables__all { white-space: nowrap; }
.printables__all--mobile { display: none; }
.printables__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); padding-top: 56px; }
.printable__link { display: flex; flex-direction: column; align-items: center; gap: 28px; text-decoration: none; color: var(--text-on-dark); }
.printable__link:hover { color: var(--text-on-dark); }
.printable__meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.printable__name { font: 500 22px/1.3 var(--font-serif); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: var(--underline-offset); transition: text-decoration-color 120ms ease; }
.printable__link:hover .printable__name { text-decoration-color: var(--ink-rust-lift); }
.printable__link:hover .card-paper,
.printable__link:focus-visible .card-paper {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.38);
}
.printable__link:focus-visible { outline: 2px solid var(--ink-rust-lift); outline-offset: 12px; }
.printable__price { font-size: 18px; }

/* Paper card from the invitation kit */
.card-paper {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 5 / 7;
  padding: 44px 32px 36px;
  background: var(--paper-cream);
  color: var(--ink-bark);
  outline: 1px solid var(--ink-brass);
  outline-offset: calc(-1 * var(--frame-inset));
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 320ms var(--ease-out-quart), box-shadow 320ms var(--ease-out-quart);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-paper__eyebrow { font: 600 13px/1.4 var(--font-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
/* The number takes the birthday's ink: the card (or the page) carries an age-XXth class */
.card-paper__num { margin-top: 18px; font: 400 104px/0.95 var(--font-serif); color: var(--age-ink); }
/* Four-figure numbers (a year) set smaller so they fit the card */
.card-paper__num--long { font-size: 84px; }
.card-paper__name { margin-top: 18px; font: 500 22px/1.2 var(--font-serif); }
.card-paper__rule { width: 120px; height: 1px; margin: 16px 0; background: var(--ink-brass); }
.card-paper__lines { font-size: 14px; line-height: 1.75; }
.card-paper__foot { margin-top: auto; font: 500 12px/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Note ---------- */

.note { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.note__text { max-width: 60ch; font: 400 24px/1.6 var(--font-serif); text-wrap: pretty; }
.note__rule { width: 120px; height: var(--hairline); background: var(--rule); }
.note__sign { font: italic 400 22px/1.4 var(--font-serif); }

/* ---------- Gift guide ---------- */

/* Full-width block: photo left, linen panel right */
.gift { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-raised); }
.gift__image {
  min-height: 560px;
  background: url("../images/woman-garden-lunch.jpg") 38% 22% / 128% auto no-repeat var(--paper-linen);
}
.gift__text { padding: var(--section-y) 64px var(--section-y) 56px; max-width: 560px; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.gift__rule { width: 64px; height: 1px; background: var(--ink-brass); }

/* ---------- Newsletter ---------- */

/* Full-width dark band with an inset brass frame; sits directly on the footer. */
.letter {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  outline: 1px solid var(--ink-brass-lift);
  outline-offset: calc(-1 * var(--frame-inset));
}
.letter__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
}
.letter__mark { font: italic 400 220px/0.8 var(--font-serif); color: var(--ink-brass-lift); text-align: center; }
.letter__body { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.letter__title { font-size: 40px; line-height: 1.15; color: var(--text-on-dark); }
.letter__form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.letter__form label { font-weight: var(--weight-semibold); }
.letter__row { display: flex; gap: 12px; }
.letter__row input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--ink-brass-lift);
  border-radius: 0;
  background: var(--paper-cream);
  font: 400 18px var(--font-sans);
  color: var(--ink-bark);
}
.letter__row .btn { min-height: 56px; }
.letter__row .btn:disabled { cursor: progress; background: var(--paper-linen); }
.letter__row input[aria-invalid="true"] { outline: 2px solid var(--ink-rust-lift); outline-offset: 0; }
.letter__hint { font-size: var(--text-sm); color: var(--paper-linen); }
.letter__error { margin-top: 4px; color: var(--ink-rust-lift); font-weight: var(--weight-semibold); }
.letter__done { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.letter__done[hidden], .letter__form[hidden], .letter__error[hidden] { display: none; }
.letter__done:focus { outline: none; }
.letter__done-title { font: 500 var(--text-lg)/1.3 var(--font-serif); }

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

.site-footer { padding-bottom: 56px; }
.site-footer__grid {
  padding-top: var(--section-y);
  display: grid;
  /* About takes the spare room; the three link columns sit to the right, the last one on the page edge */
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  column-gap: 96px;
  align-items: start;
}
.site-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.site-footer__about p { max-width: 40ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links { display: flex; flex-direction: column; }
.site-footer__links a {
  min-height: 36px;
  display: flex;
  align-items: center;
  font-weight: var(--weight-regular);
  color: var(--ink-bark);
  text-decoration-color: transparent;
}
.site-footer__links a:hover, .site-footer__links a:focus-visible { text-decoration-color: var(--link-underline); }
.site-footer__links--serif a { min-height: 40px; font: 500 22px/1.3 var(--font-serif); }
/* Occasion not built yet: greyed out, with a small italic note below */
.site-footer__soon { display: flex; flex-direction: column; font: 500 22px/1.3 var(--font-serif); color: color-mix(in srgb, var(--ink-bark) 50%, var(--paper-cream)); }
.site-footer__soon > span { min-height: 40px; display: flex; align-items: center; }
.site-footer__soon em { margin-top: -6px; font: italic 400 15px/1.4 var(--font-serif); }
/* Full-width rule; the content inside stays on the page grid. */
.site-footer__bottom {
  margin-top: 64px;
  border-top: 1px solid var(--rule-soft);
}
.site-footer__bottom-inner {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.site-footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__legal a { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.site-footer__small { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.site-footer__policies { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__policies a { min-height: 36px; display: inline-flex; align-items: center; font-size: var(--text-sm); }
.site-footer__affiliate { font-size: var(--text-xs); line-height: 1.5; }

/* ---------- Idea card (hub, party ideas list, idea pages) ---------- */

.idea a { display: flex; flex-direction: column; gap: 10px; color: var(--ink-bark); font-weight: var(--weight-regular); text-decoration: none; }
.idea h3 { margin-top: 10px; font-size: var(--text-md); line-height: 1.25; transition: color 120ms ease; }
.idea p { max-width: 44ch; }
.idea a.idea__print {
  flex-direction: row;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: var(--ink-bark);
  font-weight: var(--weight-regular);
}
.idea__print-name { font-weight: var(--weight-semibold); color: var(--link); }
.idea__print-price { margin-left: auto; white-space: nowrap; }
.idea__print:hover .idea__print-name { color: var(--action-primary-hover); }
.idea a:hover h3 { color: var(--action-primary-hover); }
.idea a:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 6px; }
.photo-slot {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: var(--surface-raised);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-bark);
}

/* ---------- Tablet ---------- */

@media (max-width: 1200px) {
  .site-nav { gap: 22px; font-size: 17px; }
  /* Shrink the paper cards as a whole so their artwork keeps its proportions */
  .card-paper { zoom: 0.84; }
  /* Not enough room to push the footer links right; share the width instead */
  .site-footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; column-gap: var(--col-gap); }
}

/* ---------- Phone ---------- */

@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 56px; }

  .section-title { font-size: 28px; line-height: 1.2; }

  .site-header { border-bottom: 1px solid var(--rule-soft); }
  .site-header__inner { height: 68px; }
  .wordmark { font-size: 24px; }
  .wordmark__dot { width: 7px; height: 7px; margin-left: 2px; margin-bottom: 8px; }
  .site-nav { display: none; }
  .site-nav-mobile { display: flex; gap: 4px; margin-right: -8px; }
  .mobile-menu:not([hidden]) { display: block; border-top: 1px solid var(--rule-soft); }

  .hero { height: auto; background: none; }
  .hero__photo { position: static; aspect-ratio: 4 / 5; background-position: 62% 30%; background-size: auto 115%; }
  .hero__wrap { height: auto; }
  .hero__panel { width: 100%; padding: 32px 0 0; background: none; outline: none; gap: 16px; }
  .hero__tagline { font-size: 20px; }
  .hero__title { font-size: 34px; line-height: 1.12; }
  .hero__title span { white-space: normal; }
  .hero__title span:first-child::after { content: none; }
  .hero__panel .btn { width: 100%; }

  .ages { gap: 20px; }
  .ages__row { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: var(--section-y); }
  .age { display: grid; grid-template-columns: 84px 1fr; grid-template-areas: "num label" "num link"; column-gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
  .age__num { grid-area: num; height: auto; margin: 0; font-size: 64px; }
  .age .eyebrow { grid-area: label; align-self: end; }
  .age__link { grid-area: link; margin-top: 0; align-self: start; }
  .age--soon { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 0 8px; border-bottom: 0; }
  .age__num--word { font-size: 30px; padding: 0; }
  .age--soon .eyebrow, .age--soon .age__link { align-self: flex-start; }

  .start { gap: 20px; }
  .section-head { gap: 8px; }
  .start__grid { display: flex; flex-direction: column; gap: 20px; }
  .start__image { min-height: 0; }
  .start__image img { position: static; aspect-ratio: 3 / 2; height: auto; }
  .start__lead { padding-bottom: 28px; }
  .start__lead h3 { font-size: 26px; line-height: 1.2; }
  .start__list article { padding: 28px 0; }
  .start__list article + article { padding-bottom: 0; }
  .start__list h3 { font-size: 24px; line-height: 1.2; }

  .printables__head { padding-bottom: 24px; }
  .printables__all { display: none; }
  .printables__all--mobile { display: inline-flex; margin-top: 32px; min-height: var(--tap-min); align-items: center; }
  .printables__list { display: flex; flex-direction: column; padding-top: 0; }
  .printable { border-bottom: 1px solid var(--rule-on-dark); }
  .printable__link { flex-direction: row; align-items: center; gap: 20px; padding: 20px 0; }
  .printable__meta { align-items: flex-start; }
  /* Same card, shown as a small thumbnail */
  .printable .card-paper { flex: 0 0 auto; transform: none; zoom: 0.3; }
  .printable__link:hover .card-paper { transform: none; }

  /* Left-aligned on phone, like every other section */
  .note { gap: 20px; align-items: flex-start; text-align: left; }
  .note__text { font-size: 20px; }
  .note__rule { width: 80px; margin: 0; }
  .note__sign { font-size: 20px; }

  .gift { display: flex; flex-direction: column; }
  .gift__image { min-height: 0; aspect-ratio: 4 / 5; background-position: 38% 20%; }
  .gift__text { padding: 32px 20px var(--section-y); max-width: none; gap: 14px; }
  .gift .section-title { font-size: 30px; line-height: 1.15; }
  .gift__rule { display: none; }

  .letter__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-left: 32px; padding-right: 32px; }
  .letter__mark { font-size: 96px; line-height: 0.9; text-align: left; }
  .letter__title { font-size: 26px; line-height: 1.2; }
  .letter__row { flex-direction: column; }
  .letter__row input { flex: none; width: 100%; }
  .letter__row .btn { width: 100%; }

  .idea h3 { margin-top: 4px; }
  .idea .photo-slot { padding: 14px; }
  .idea__print-price { margin-left: 0; }

  .site-footer { padding-bottom: 40px; }
  /* Link columns sit two across so the footer stays short */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__about { grid-column: 1 / -1; gap: 12px; }
  /* Birthdays run across in one row; Read and Print sit side by side below */
  .site-footer__col:nth-child(2) { grid-column: 1 / -1; }
  .site-footer__links--serif { flex-direction: row; flex-wrap: wrap; column-gap: 24px; }
  .site-footer__col { gap: 4px; }
  .site-footer__links a { min-height: 36px; font-size: var(--text-sm); }
  .site-footer__links--serif a, .site-footer__soon > span { min-height: var(--tap-min); font-size: 20px; }
  .site-footer__bottom { margin-top: 32px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
  /* Copyright and region on one row, legal links next, small print last */
  .site-footer__legal { gap: 0 24px; font-size: var(--text-sm); }
  .site-footer__small { align-items: flex-start; text-align: left; margin-top: 4px; }
}

/* ---------- Planning path (end of idea, writing, printable and gift pages) ---------- */

.plan-path { padding-top: 0; padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 24px; }
.plan-path__title { font-size: var(--text-xl); line-height: 1.2; }
.plan-path__steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-soft); }
.plan-path__step + .plan-path__step { border-left: 1px solid var(--rule-soft); }
.plan-path__item { height: 100%; padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-bark); font-weight: var(--weight-regular); text-decoration: none; }
.plan-path__num { font: 400 48px/1 var(--font-serif); font-variant-numeric: lining-nums; color: var(--age-ink-text); margin-bottom: 12px; }
.plan-path__label { font: var(--weight-semibold) var(--text-md)/1.25 var(--font-serif); }
.plan-path__note { font-size: var(--text-sm); }
a.plan-path__item { transition: background 120ms ease; }
a.plan-path__item:hover { background: var(--surface-raised); color: var(--ink-bark); }
a.plan-path__item:hover .plan-path__label { color: var(--action-primary-hover); }
a.plan-path__item:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: -2px; }
/* Where you are: filled with the birthday's ink. The next step: the one to take. */
.is-current .plan-path__item { background: var(--age-ink); color: var(--paper-cream); }
.is-current .plan-path__num { color: var(--paper-cream); }
.is-current .plan-path__note { font-style: italic; font-family: var(--font-serif); }
.is-next .plan-path__label { color: var(--link); }
.is-next .plan-path__note { font-weight: var(--weight-semibold); color: var(--link); }

@media (max-width: 900px) {
  .plan-path { gap: 16px; }
  .plan-path__title { font-size: 24px; }
  .plan-path__steps { grid-template-columns: 1fr; }
  .plan-path__step + .plan-path__step { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .plan-path__item { min-height: var(--tap-min); padding: 14px 12px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: baseline; }
  .plan-path__num { grid-row: span 2; margin: 0; font-size: 32px; }
}
