/* ============================================================
   Garden Notes — shared editorial article styles
   ------------------------------------------------------------
   One stylesheet for every piece under /notes. Carries the live
   site's cream/moss palette, masthead and footer so an article
   reads as the same publication as /home, then adds the long-form
   reading furniture: hero, lede, pull-quotes, figures and the two
   house voices (Field Notes / From the Studio).
   ============================================================ */

@font-face {
  font-family: 'Verdure Libre Caslon';
  src: url('/fonts/LibreCaslonDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Verdure Nautigal';
  src: url('/fonts/TheNautigal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F7F5F0;
  --color-cream: #F8F5EF;
  --color-ink: #2A2F26;
  --color-ink-soft: #524F47;
  --color-moss: #5F6F52;
  --color-moss-dark: #3F4D34;
  --color-sage: #A9B7A1;
  --color-stone: #8C8A82;
  --color-terracotta: #C46A4A;
  --color-gold: #C2A96A;
  --color-rose: #B97B6B;
  --color-line: rgba(63, 77, 52, 0.12);
  --line-strong: rgba(63, 77, 52, 0.34);
  --shadow-card: 0 12px 28px rgba(63, 77, 52, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--color-bg); scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,220,150,0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(180,200,160,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(210,185,140,0.13) 0%, transparent 40%),
    var(--color-cream);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Faint paper grain, same as /home */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Masthead — fixed, cream over the hero, ink once scrolled ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 1.6vw, 24px) clamp(20px, 3vw, 44px);
  color: var(--color-cream);
  pointer-events: none;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 26, 16, 0.42) 0%,
    rgba(20, 26, 16, 0.18) 60%,
    rgba(20, 26, 16, 0) 100%
  );
  pointer-events: none;
  transition: opacity 220ms ease;
}
.masthead > * { position: relative; z-index: 1; pointer-events: auto; }
.masthead.is-scrolled::before { opacity: 0; }
.masthead.is-scrolled .masthead-logo,
.masthead.is-scrolled .masthead-menu a {
  color: var(--color-moss-dark);
  text-shadow: none;
}
.masthead.is-scrolled .masthead-menu a[aria-current="page"] {
  border-bottom-color: var(--line-strong);
}
.masthead-logo {
  grid-column: 1;
  font-family: 'Verdure Nautigal', cursive;
  font-size: clamp(28px, 2.6vw, 36px);
  color: var(--color-cream);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.masthead-logo a { color: inherit; text-decoration: none; }
.masthead-menu {
  grid-column: 3;
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
}
.masthead-menu a {
  color: var(--color-cream);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 180ms ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.masthead-menu a:hover { opacity: 1; }
.masthead-menu a[aria-current="page"] {
  border-bottom: 1px solid rgba(247, 245, 240, 0.55);
  padding-bottom: 3px;
}
@media (max-width: 640px) {
  .masthead-menu a.is-optional { display: none; }
}

/* ---------- Hero — full-bleed photograph, copy anchored bottom-left ---------- */
.article-hero {
  position: relative;
  width: 100%;
  height: 86vh;
  height: 86svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-stone);
  color: var(--color-cream);
}
.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-pos, center);
  filter: saturate(0.94) brightness(0.96);
}
.article-hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(20, 26, 16, 0.30) 0%,
    rgba(20, 26, 16, 0.10) 32%,
    rgba(20, 26, 16, 0.24) 62%,
    rgba(20, 26, 16, 0.66) 100%
  );
}
.article-hero-copy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(40px, 8vh, 84px);
  z-index: 2;
  max-width: 760px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero-kicker .rule {
  width: 26px;
  height: 1px;
  background: rgba(248, 245, 239, 0.6);
}
.hero-title {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--color-cream);
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.5);
  max-width: 18ch;
}
.hero-standfirst {
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
  color: var(--color-cream);
  font-style: italic;
  opacity: 0.95;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hero-byline {
  margin-top: clamp(16px, 2.2vh, 24px);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.88;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-byline .dot { opacity: 0.55; margin: 0 8px; }

/* ---------- Article body — single reading column ---------- */
.article {
  position: relative;
  z-index: 1;
}
.article-body {
  width: min(720px, calc(100% - clamp(40px, 8vw, 80px)));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) 0 clamp(20px, 4vw, 40px);
}
.article-body > p {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.78;
  color: var(--color-ink);
  margin-bottom: 1.35em;
}
.article-body > p a {
  color: var(--color-moss-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* Lede — the first paragraph carries a drop cap and a touch more size */
.lede {
  font-size: clamp(19px, 1.5vw, 22px) !important;
  line-height: 1.62 !important;
  color: var(--color-ink) !important;
}
.lede::first-letter {
  float: left;
  margin: 0.06em 0.10em 0 0;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-size: 3.6em;
  line-height: 0.74;
  color: var(--color-moss-dark);
}

/* Section subhead */
.article-body h2 {
  margin: clamp(34px, 4.5vw, 56px) 0 0.5em;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--color-moss-dark);
}
.article-body h2 .h2-index {
  display: block;
  margin-bottom: 0.5em;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
}
.article-body h3 {
  margin: 1.8em 0 0.4em;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  color: var(--color-ink);
}

/* Pull-quote — the essayist voice leans on these */
.pull {
  margin: clamp(34px, 5vw, 60px) 0;
  padding: 0 0 0 clamp(18px, 3vw, 32px);
  border-left: 2px solid var(--color-moss);
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--color-moss-dark);
}
.pull cite {
  display: block;
  margin-top: 0.7em;
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Inline figure — sits in the reading column */
.figure {
  margin: clamp(34px, 5vw, 56px) 0;
}
.figure .px-frame {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.figure.tall .px-frame { aspect-ratio: 4 / 5; }
.figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  margin-top: 14px;
  color: var(--color-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.figcaption strong {
  color: var(--color-moss-dark);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Wide figure — breaks past the reading column to a roomier measure */
.figure-wide {
  width: min(1080px, calc(100% - clamp(40px, 8vw, 80px)));
  margin: clamp(44px, 6vw, 76px) auto;
}
.figure-wide .px-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

/* Full-bleed band — a photograph edge to edge, optional caption overlaid */
.figure-bleed {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  margin: clamp(48px, 7vw, 88px) 0;
  overflow: hidden;
  background: var(--color-stone);
}
.figure-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bleed-pos, center);
}
.figure-bleed .bleed-quote {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(to top, rgba(20,26,16,0.6) 0%, rgba(20,26,16,0.05) 55%, rgba(20,26,16,0.18) 100%);
}
.figure-bleed .bleed-quote p {
  max-width: 22ch;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* Field note — the practical voice's aside box */
.field-note {
  margin: clamp(34px, 5vw, 52px) 0;
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(252, 248, 238, 0.9), rgba(246, 238, 219, 0.5)),
    rgba(255, 253, 246, 0.6);
  box-shadow: var(--shadow-card);
}
.field-note .fn-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-rose);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field-note h3 {
  margin: 0 0 0.5em;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--color-moss-dark);
}
.field-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.field-note li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--color-line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink);
}
.field-note li:first-child { border-top: none; }
.field-note li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-moss);
  background: var(--color-sage);
  transform: rotate(45deg);
}
.field-note li strong { color: var(--color-moss-dark); font-weight: 600; }

/* Numbered steps — the how-to spine of the practical voice */
.steps { margin: clamp(30px, 4vw, 44px) 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid var(--color-line);
}
.step:first-child { border-top: none; }
.step-num {
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.8;
  color: var(--color-sage);
  font-variant-numeric: tabular-nums;
}
.step-body h3 {
  margin: 0 0 0.35em;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.12;
  color: var(--color-moss-dark);
}
.step-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-soft);
}

/* Roles grid — the four jobs a plant can do (How Verdure thinks) */
.roles {
  width: min(1080px, calc(100% - clamp(40px, 8vw, 80px)));
  margin: clamp(40px, 6vw, 72px) auto;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}
.role figure {
  margin: 0;
}
.role .px-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.role .role-label {
  margin-top: 14px;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
}
.role h3 {
  margin: 6px 0 6px;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.15;
  color: var(--color-moss-dark);
}
.role p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--color-ink-soft);
}
@media (max-width: 860px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 460px) {
  .roles-grid { grid-template-columns: 1fr; }
  .role .px-frame { aspect-ratio: 16 / 10; }
}

/* Parallax frame — the /home treatment; notes.js drifts .px-img */
.px-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-stone);
}
.px-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translate3d(0, -20%, 0);
  backface-visibility: hidden;
}

/* End matter — sign-off + read-on */
.article-end {
  width: min(720px, calc(100% - clamp(40px, 8vw, 80px)));
  margin: clamp(20px, 4vw, 40px) auto 0;
}
.end-mark {
  text-align: center;
  color: var(--color-moss);
  font-family: 'Verdure Nautigal', cursive;
  font-size: 30px;
  line-height: 1;
  opacity: 0.85;
}
.end-cta {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 246, 0.6);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.end-cta .kicker {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-moss);
}
.end-cta h2 {
  margin: 12px 0 6px;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
  color: var(--color-ink);
}
.end-cta p {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--color-ink-soft);
  font-size: 15px;
}
.end-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.button-primary,
.button-secondary {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button-primary {
  background: var(--color-moss);
  color: var(--color-cream);
  border: 1px solid var(--color-moss);
}
.button-primary:hover { background: var(--color-moss-dark); border-color: var(--color-moss-dark); }
.button-secondary {
  color: var(--color-moss-dark);
  border: 1px solid var(--line-strong);
}
.button-secondary:hover { border-color: var(--color-moss); background: rgba(95, 111, 82, 0.06); }

/* Read-on — sibling pieces */
.read-on {
  width: min(1080px, calc(100% - clamp(40px, 8vw, 80px)));
  margin: clamp(44px, 6vw, 72px) auto 0;
}
.read-on .kicker {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-moss);
  margin-bottom: 22px;
}
.read-on-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.8vw, 34px);
}
.read-card { text-decoration: none; display: block; }
.read-card .px-frame {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
}
.read-card h3 {
  margin-top: 14px;
  font-family: 'Verdure Libre Caslon', Georgia, serif;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.32;
  color: var(--color-ink);
}
.read-card .read-tag {
  margin-top: 8px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-rose);
}
.read-card:hover h3 { color: var(--color-moss-dark); }
@media (max-width: 720px) {
  .read-on-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step-num { font-size: 30px; }
  .figure-bleed { height: 60vh; }
}

/* ---------- Footer — quiet closing line, matches /home ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 36px 24px 44px;
  text-align: center;
}
.site-footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--color-ink-soft);
  font-size: 13px;
}
.footer-mark {
  font-family: 'Verdure Nautigal', cursive;
  font-size: 26px;
  line-height: 0.9;
  color: var(--color-moss-dark);
  vertical-align: middle;
}
.footer-dot { opacity: 0.5; }
.footer-contact a {
  color: var(--color-moss-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-contact a:hover { color: var(--color-moss); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-links a {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink-soft);
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--color-moss-dark); }
.footer-copy {
  margin-top: 14px;
  color: var(--color-ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
@media (max-width: 540px) {
  .footer-dot { display: none; }
  .footer-brand { gap: 6px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px-img { transform: translate3d(0, -20%, 0) !important; }
}
