/* ============================================================
   Fiona Goodwin — Brand & Site Stylesheet
   Editorial system: warm bone, ink, sienna accent
   Type pairing: Cormorant Garamond (display) + EB Garamond (body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color — drawn from the printed cards.
     Ivory ground, a LIGHT grey-sage as the signature green, antique
     gold for fine line-work, warm charcoal for text. No dark forest. */
  --ivory:       oklch(95.5% 0.012 88);   /* warm cream ground */
  --ivory-deep:  oklch(92.5% 0.017 84);   /* secondary surface */
  --parchment:   oklch(88%   0.020 82);
  --sage-bg:     oklch(88%   0.038 150);  /* soft sage wash for feature sections */
  --mist:        oklch(93%   0.020 150);  /* palest sage ground */
  --sage:        oklch(70%   0.050 152);  /* the signature light grey-sage */
  --sage-deep:   oklch(54%   0.055 154);  /* sage for labels / accents on ivory */
  --sage-dark:   oklch(44%   0.050 156);  /* deepest sage — used sparingly */
  --gold:        oklch(72%   0.095 80);   /* antique brass line-work */
  --gold-deep:   oklch(60%   0.092 72);   /* gold legible as text on ivory */
  --ink:         oklch(27%   0.012 156);  /* warm charcoal */
  --ink-soft:    oklch(38%   0.014 156);
  --ash:         oklch(47%   0.016 150);  /* muted green-grey — darkened for legibility */
  --rule:        oklch(84%   0.012 120);  /* soft hairline */

  /* Aliases so every existing rule adopts the new palette */
  --bone:        var(--ivory);
  --vellum:      var(--ivory-deep);
  --blush:       var(--sage-bg);
  --clay:        var(--gold-deep);   /* fine flourishes: dropcap, numerals, quote mark */
  --clay-deep:   var(--sage-dark);
  --honey:       var(--gold-deep);   /* gold accents inside feature sections */
  --plum:        var(--sage-dark);
  --sienna:      var(--gold-deep);   /* links / hover accents */
  --sienna-deep: var(--sage-dark);   /* primary-button hover */

  /* Type */
  --serif-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-text:    "EB Garamond", Georgia, "Times New Roman", serif;
  --label-track:   0.18em;

  /* Rhythm */
  --measure: 36rem;
  --gutter:  clamp(1.25rem, 3vw, 2.5rem);
  --pad-y:   clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a.inline { border-bottom: 1px solid var(--rule); transition: border-color .2s var(--ease), color .2s var(--ease); }
a.inline:hover { border-color: var(--sienna); color: var(--sienna); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone);
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */
.shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure { max-width: var(--measure); }

/* ---------- Header / Nav ---------- */
.masthead {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bone) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}
.masthead-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-family: var(--serif-display);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: .65rem;
}
.wordmark .credentials {
  font-style: normal;
  font-family: var(--serif-text);
  font-size: .68rem;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--ash);
  padding-left: .65rem;
  border-left: 1px solid var(--rule);
}
.nav {
  display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
  font-family: var(--serif-text);
  font-size: .72rem;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a { position: relative; padding: .25rem 0; transition: color .2s var(--ease); }
.nav a:hover { color: var(--sienna); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.5rem;
  height: 1px; background: var(--ink);
}
.nav .cta {
  background: var(--ink); color: var(--bone);
  padding: .7rem 1rem; transition: background .2s var(--ease);
}
.nav .cta:hover { background: var(--sienna-deep); color: var(--bone); }

/* Mobile nav toggle is intentionally simple — collapses gracefully */
@media (max-width: 720px) {
  .nav { font-size: .65rem; gap: 1rem; }
  .wordmark .credentials { display: none; }
}

/* ---------- Type styles ---------- */
.eyebrow {
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: .72rem;
  color: var(--sage-deep);
  margin: 0 0 1.25rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 1.5rem; height: 1px; background: var(--gold); 
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.display-xl {
  font-size: clamp(2.4rem, 7.5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.display-l {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.display-m {
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 400;
}
.italic { font-style: italic; }
.serif-text { font-family: var(--serif-text); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--serif-display);
  font-weight: 400;
}

.dropcap::first-letter {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  float: left;
  font-size: 5.4em;
  line-height: 0.82;
  padding: 0.08em 0.1em 0 0;
  color: var(--clay);
}

.pullquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
  padding: 2.5rem 0 2.5rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-wrap: balance;
  position: relative;
}
.pullquote::before {
  content: "\201C"; /* curly opening quote */
  position: absolute;
  top: -0.2em; left: -0.15em;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 4.5em;
  line-height: 1;
  color: var(--clay);
  opacity: 0.85;
  pointer-events: none;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--serif-text);
  font-size: .72rem;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.4rem;
  font-family: var(--serif-text);
  font-size: .78rem;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--sienna-deep); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */
section { padding: var(--pad-y) 0; }
.section-title-row {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 760px) {
  .section-title-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule.thick { height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

/* Grand, centered title-page introduction */
.hero--intro {
  text-align: center;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero--intro .hero-intro { max-width: 60rem; margin: 0 auto; }
.hero--intro .motif { margin: 0 auto 1.75rem; }
.hero--intro .motif--arch { width: clamp(72px, 8vw, 104px); }
.hero--intro .eyebrow { margin: 0 0 1.5rem; }
.hero--intro .eyebrow::before { display: none; }
.hero--intro h1 { font-size: clamp(2.3rem, 8.2vw, 7rem); margin: 0; }
.hero--intro .rule-gold { margin: 2.25rem auto; }
.hero--intro .lede { margin: 0 auto; max-width: 40rem; }
.hero--intro .script-note { margin-top: 1.25rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero h1 .amp { color: var(--sienna); font-style: italic; }
.hero-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero-meta dt {
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: .68rem;
  color: var(--ash);
  align-self: center;
}
.hero-meta dd { margin: 0; }

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--vellum);
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.portrait-frame .caption {
  position: absolute; bottom: 1rem; left: 1rem;
  font-family: var(--serif-text);
  font-size: .65rem;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--bone);
  mix-blend-mode: difference;
}
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg,
      var(--vellum) 0 12px,
      var(--parchment) 12px 24px);
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 1rem;
}

/* ---------- Cards / Lists ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.work-item {
  padding: 2rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.work-item:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 2rem; }
.work-item h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.5rem;
  margin: 0 0 .65rem;
  font-weight: 400;
}
.work-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item, .work-item:nth-child(2n) {
    border-right: 0; padding: 1.75rem 0;
  }
}

.numbered {
  list-style: none; padding: 0; margin: 0;
  counter-reset: nums;
}
.numbered li {
  counter-increment: nums;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem;
  align-items: baseline;
}
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered li::before {
  content: counter(nums, decimal-leading-zero);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--clay);
  font-weight: 500;
}
.numbered li h3 {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 .35rem;
}
.numbered li p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Feature sections (soft sage ground, the card's lighter side) ---------- */
.band {
  background: var(--sage-bg);
  color: var(--ink);
}
.band .eyebrow { color: var(--sage-deep); }
.band .eyebrow::before { background: var(--gold); }
.band h2 { color: var(--ink); }
.band p { color: var(--ink-soft); }
.band .accent { color: var(--ink); font-style: italic; }
.band a.inline { border-color: var(--rule); color: var(--ink); }
.band a.inline:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.band .btn-ghost { border-color: var(--ink); color: var(--ink); }
.band .btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* .band-clay kept as an alias of .band so existing markup adopts the sage ground */
.band-clay {
  background: var(--sage-bg);
  color: var(--ink);
}
.band-clay h2 { color: var(--ink); }
.band-clay p { color: var(--ink-soft); }
.band-clay .eyebrow { color: var(--sage-deep); }
.band-clay .eyebrow::before { background: var(--gold); }
.band-clay .accent { color: var(--ink); font-style: italic; }
.band-clay a.inline { border-color: var(--rule); color: var(--ink); }
.band-clay a.inline:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.band-clay .btn-ghost { border-color: var(--ink); color: var(--ink); }
.band-clay .btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* Mist band — palest sage, used between sections for variety. */
.bg-blush { background: var(--mist); }

/* ---------- Quote banner (full-bleed feature moment, mirrors the card back) ---------- */
.banner {
  background: var(--sage-dark);
  color: var(--ivory);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  text-align: center;
}
.banner .motif { color: var(--gold); margin: 0 auto 1.75rem; }
.banner blockquote {
  margin: 0 auto;
  max-width: 32rem;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.24;
  color: var(--ivory);
  text-wrap: balance;
}
.banner cite {
  display: block;
  margin-top: 1.75rem;
  font-style: normal;
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: .72rem;
  color: color-mix(in oklab, var(--ivory) 72%, var(--sage-dark));
}

/* ---------- Footer ---------- */
.colophon {
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  border-top: 1px solid var(--rule);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.colophon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; }
}
.colophon h4 {
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: .68rem;
  color: var(--ash);
  margin: 0 0 1rem;
  font-weight: 500;
}
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin-bottom: .55rem; font-size: .95rem; }
.colophon .micro {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: .72rem; color: var(--ash);
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .colophon .micro { flex-direction: column; gap: .5rem; align-items: flex-start; }
}

/* ---------- Monogram ---------- */
.monogram {
  width: 3rem; height: 3rem; border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.monogram.inverse { color: var(--bone); border-color: var(--bone); }
.monogram.solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.monogram.sienna { background: var(--clay); color: var(--bone); border-color: var(--clay); }
.monogram.honey  { background: var(--honey); color: var(--ink); border-color: var(--honey); }

/* ---------- Form (contact) ---------- */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--serif-text);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: .68rem;
  color: var(--ash);
}
.field input, .field textarea, .field select {
  font-family: var(--serif-text);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .65rem 0;
  outline: none;
  transition: border-color .2s var(--ease);
  border-radius: 0;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--sienna);
}
.field .hint { font-size: .8rem; color: var(--ash); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.spacer-s { height: 1.5rem; }
.spacer-m { height: 3rem; }
.spacer-l { height: 5rem; }
.text-ash { color: var(--ash); }
.text-sienna { color: var(--sienna); }
.center { text-align: center; }
.bg-vellum { background: var(--vellum); }
.bg-sage { background: var(--sage-bg); }

/* ---------- Brand motifs (gold line-art, from the cards) ---------- */
.motif { display: block; color: var(--gold); }
.motif--arch { width: clamp(64px, 7vw, 96px); height: auto; }
.motif--sun  { width: clamp(110px, 12vw, 150px); height: auto; }
.motif--center { margin-left: auto; margin-right: auto; }
.rule-gold { width: 2.5rem; height: 0; border: 0; border-top: 1.5px solid var(--gold); margin: 1.5rem 0; }
.rule-gold.center { margin-left: auto; margin-right: auto; }

.ornament-amp {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.8;
  color: var(--sage-deep);
  display: inline-block;
  letter-spacing: -0.04em;
}
.script-note {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--sage-deep);
  letter-spacing: 0.005em;
}
.starburst {
  display:inline-block;
  width: 1.1em; height: 1.1em;
  background: var(--gold);
  vertical-align: -0.15em;
  border-radius: 999px;
  margin: 0 .2em;
}

/* .reveal is a hook class kept on elements for backward-compat,
   but we no longer hide content for scroll-reveal: the typography and
   layout do the work, and a blank-then-fade render is worse than no
   animation. Keep the class as a no-op. */
.reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive — phone & tablet refinements
   The layout is fluid by default (clamp type, stacking grids);
   these rules harden the small-screen experience.
   ============================================================ */

/* Tablet and below: any inline two-column grid collapses to one column.
   Catches the hero meta, memoir split, about-bio split, contact split,
   CTA rows, and the arch+heading row — none of which carry their own
   media query because they're set with inline styles. */
@media (max-width: 760px) {
  .shell[style*="grid-template-columns"],
  .shell [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Drop the sticky aside behaviour once columns stack */
  .shell [style*="position:sticky"],
  .shell [style*="position: sticky"] { position: static !important; }
}

/* Phones: let the masthead wrap gracefully instead of crowding,
   and ease the largest display type. */
@media (max-width: 640px) {
  .masthead-row { flex-wrap: wrap; gap: .55rem 1rem; }
  .nav { flex-wrap: wrap; gap: .55rem 1rem; font-size: .62rem; }
  .nav .cta { padding: .55rem .85rem; }
  .display-l { font-size: clamp(1.9rem, 8.5vw, 4rem); }
  .display-m { font-size: clamp(1.55rem, 6.5vw, 2.6rem); }
  .pullquote { font-size: clamp(1.35rem, 6vw, 2.2rem); }
  /* A touch more side breathing room is unnecessary; keep gutters tight */
}

/* Comfortable tap targets on touch devices */
@media (max-width: 640px) {
  .btn { padding: .9rem 1.25rem; }
  .nav a { padding: .35rem 0; }
}

