/* ============================================================
   Sara Hageman Schenck — personal site
   Direction: board 5d (Very Vogue Gallery) + 5a monogram,
   per the July 2026 build brief. Ivory/white grounds, ink type,
   heritage red working accent, hairline structure.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Very Vogue Display";
  src: url("../fonts/veryvogue-display-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Very Vogue Display";
  src: url("../fonts/veryvogue-display-italic-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Very Vogue Text";
  src: url("../fonts/veryvogue-text-italic-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ivory: #FAFAF7;
  --white: #FFFFFF;
  --ink: #1E1B17;
  --ink-soft: #575049;
  --red: #A30322;
  --red-deep: #82021B;
  --teal: #4C8C84;
  --stone: #D8D2C8;
  --stone-soft: #E7E2D9;
  --terracotta: #C15B34;
  --cream: #EBE4D6;

  --serif: "Very Vogue Display", "Cormorant Garamond", Georgia, serif;
  --serif-italic: "Very Vogue Text", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band-y: clamp(4rem, 9vw, 7rem);

  --hairline: 1px solid var(--stone);
}

/* ---------- reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); padding-bottom: 0.12em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); padding-bottom: 0.1em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.18; }
.h-italic { font-family: var(--serif); font-style: italic; }

p { max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; line-height: 1.6; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label--red { color: var(--red); }
.label--teal { color: var(--teal); }
.label--terracotta { color: var(--terracotta); }

.rule-red {
  width: 3.25rem;
  height: 2px;
  background: var(--red);
  border: 0;
  margin: 1.4rem 0;
}
.rule-red--center { margin-left: auto; margin-right: auto; }
.rule-red--terracotta { background: var(--terracotta); }

::selection { background: var(--red); color: var(--ivory); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }

.band { padding-block: var(--band-y); }
.band--white { background: var(--white); border-top: var(--hairline); border-bottom: var(--hairline); }
.band--cream { background: var(--cream); }
.band--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

/* journal rail: section heading left (sticky), content right */
.rail { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); }
.rail__label h2 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); line-height: 1.14; }
.rail__label::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--red);
  margin-top: 1.1rem;
}
@media (min-width: 861px) {
  .rail__label { position: sticky; top: 6.5rem; align-self: start; }
}
@media (max-width: 860px) {
  .rail { grid-template-columns: 1fr; gap: 1.25rem; }
}

.flow > * + * { margin-top: 1.15rem; }
.flow > h2 + *, .flow > h3 + * { margin-top: 0.9rem; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 1rem; top: -3.5rem;
  z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 1rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--hairline);
}
.masthead__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin-right: auto;
}
.monogram {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* optical centering against tracking */
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav a:not(.btn) {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--stone); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.ext::after {
  content: "\2197"; /* ↗ */
  font-size: 0.72em;
  color: var(--teal);
  margin-left: 0.3em;
  vertical-align: 0.12em;
}

.navtoggle {
  display: none;
  flex: none;
  background: none;
  border: 1px solid var(--stone);
  width: 2.6rem; height: 2.6rem;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
}
.navtoggle span {
  display: block;
  width: 1.1rem; height: 1px;
  background: var(--ink);
  margin: 0.28rem auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.29rem) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.29rem) rotate(-45deg); }

@media (max-width: 1023px) {
  .brand__name { letter-spacing: 0.1em; font-size: 0.92rem; }
}
@media (max-width: 860px) {
  .navtoggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: var(--hairline);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) {
    font-size: 1rem;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid var(--stone-soft);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--red); }
  .nav .btn { margin-top: 1rem; }
  /* keep the primary CTA visible without opening the menu */
  .masthead .btn--head { display: inline-block; }
}
@media (max-width: 520px) {
  .brand__name { display: none; }
  .btn--head { font-size: 0.62rem; padding: 0.68rem 0.8rem; }
  /* safety net: wrap instead of clipping the hamburger off-screen if content still doesn't fit */
  .masthead__row { flex-wrap: wrap; row-gap: 0.5rem; }
}

/* ---------- cookbook subnav ---------- */
.subnav { background: var(--white); border-bottom: var(--hairline); }
.subnav__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  padding-block: 0.72rem;
  align-items: baseline;
}
.subnav__title {
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  color: var(--red);
}
.subnav a, .subnav span {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { border-bottom-color: var(--stone); }
.subnav a[aria-current="page"] { border-bottom-color: var(--red); }
.subnav span { color: var(--ink-soft); cursor: default; }
@media (max-width: 640px) {
  .subnav__row { gap: 0.25rem 1.1rem; }
}

/* ---------- buttons + links ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--red);
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--head { padding: 0.7rem 1.1rem; font-size: 0.66rem; white-space: nowrap; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--ivory);
  color: var(--ink-soft);
  border-color: var(--stone);
  cursor: default;
}
button.btn { font: inherit; font-family: var(--sans); }

.textlink {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.1rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.textlink:hover { color: var(--red); }
.textlink--arrow::after { content: "\2192"; margin-left: 0.35em; color: var(--red); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- photo plates ---------- */
.plate { position: relative; }
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--stone);
  background: var(--stone-soft);
}
.plate--echo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(10px, 10px);
  border: 1px solid var(--red);
  pointer-events: none;
}
.plate--echo img { position: relative; }
.plate__caption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.plate__caption::before, .plate__caption::after { content: "\2014\2002"; color: var(--stone); }
.plate__caption::after { content: "\2002\2014"; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero--split .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy .label { margin-bottom: 1.3rem; display: block; }
.hero__copy .lede { margin-top: 1.4rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.6rem; }
.hero__media .plate { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 480px; }
  .hero__media .plate { aspect-ratio: 4 / 3.4; }
}

.hero--text { text-align: left; }
.hero--text .lede { margin-top: 1.3rem; }

/* text hero with a small companion image (not the full split hero) */
.hero__grid-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__grid-small .hero__media--small .plate { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .hero__grid-small { grid-template-columns: 1fr; }
  .hero__grid-small .hero__media--small { order: -1; max-width: 220px; }
}

/* ---------- three paths ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.path { display: flex; flex-direction: column; }
.path .plate { aspect-ratio: 4 / 5; margin-bottom: 1.4rem; }
.path .label { margin-bottom: 0.8rem; }
.path h3 { margin-bottom: 0.65rem; }
.path p { margin-bottom: 1.1rem; }
.path .textlink { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; gap: 2.5rem; }
  .path .plate { aspect-ratio: 3 / 2; }
}

/* ---------- split feature (photo + copy) ---------- */
.duet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.duet--media-right .duet__media { order: 2; }
.duet__media .plate { aspect-ratio: 4 / 5; }
.duet__media--landscape .plate { aspect-ratio: 3 / 2; }
@media (max-width: 860px) {
  .duet { grid-template-columns: 1fr; }
  .duet--media-right .duet__media { order: 0; }
}

/* wide editorial plate */
.wideplate.plate, .wideplate .plate { aspect-ratio: 21 / 10; }
@media (max-width: 640px) {
  .wideplate.plate, .wideplate .plate { aspect-ratio: 4 / 3; }
}

/* standalone portrait plate (photo-only pause, no paired copy) */
.plate--portrait { aspect-ratio: 4 / 5; }

/* ---------- parallax band: same hairline frame, a slow drift instead of a static crop ---------- */
.parallax-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stone);
  background: var(--stone-soft);
  aspect-ratio: 21 / 10;
}
@media (max-width: 640px) {
  .parallax-frame { aspect-ratio: 4 / 3; }
}
.parallax-frame img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- feature list (cookbook) ---------- */
.features { border-top: var(--hairline); }
.feature {
  border-bottom: var(--hairline);
  padding-block: 1.6rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem 2.5rem;
}
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-soft); }
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* stat line */
.bookfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.5rem;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding-block: 1.15rem;
}
.bookfacts .label { color: var(--ink); }

/* ---------- checklist ---------- */
.ticklist > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--stone-soft);
  max-width: 62ch;
}
.ticklist > li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.42rem;
  width: 7px; height: 7px;
  background: var(--red);
}

/* ---------- tier tiles ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.tier {
  border: var(--hairline);
  background: var(--white);
  padding: 1.9rem 1rem 1.6rem;
  text-align: center;
}
.tier strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.tier .label { color: var(--ink-soft); }
@media (max-width: 860px) { .tiers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- typographic book plate ---------- */
.bookplate {
  border: 1px solid var(--ink);
  background: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}
.bookplate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--stone);
  pointer-events: none;
}
.bookplate .label { margin-bottom: 2.2rem; }
.bookplate__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.12;
}
.bookplate__rule { width: 3.25rem; height: 2px; background: var(--red); border: 0; margin: 1.5rem auto; }
.bookplate__sub {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto;
}
.bookplate__foot { margin-top: 2.4rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}
.field .field__error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field__legend { padding: 0; }
.radio-group { display: flex; gap: 2rem; padding-top: 0.3rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 400;
}
.radio-option input[type="radio"] { width: auto; }
.form__note { font-size: 0.82rem; color: var(--ink-soft); max-width: 46ch; }
.form__success { display: none; }
.form__success.show { display: block; }
.form.done { display: none; }

/* ---------- panels ---------- */
.panel {
  border: var(--hairline);
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.panel--cream { background: var(--cream); border-color: color-mix(in srgb, var(--stone) 70%, var(--cream)); }

/* ---------- footer ---------- */
.footer {
  border-top: var(--hairline);
  background: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer__id p { max-width: 44ch; }
.footer__tag {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.02rem;
  margin-top: 0.9rem;
}
.footer__links { display: grid; gap: 0.55rem; justify-items: start; }
.footer__links a {
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer__links a:hover { border-bottom-color: var(--red); }
.footer__mark { text-align: center; }
.footer__mark .monogram { width: 3rem; height: 3rem; margin: 0 auto 0.7rem; }
.footer__aster { color: var(--terracotta); font-size: 1.1rem; }
.footer__base {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__mark { text-align: left; }
  .footer__mark .monogram { margin: 0 0 0.7rem; }
}

/* ---------- reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- misc ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
