/* ════════════════════════════════════════════════════════════
   THE WORK WITH JIM
   "The Letter" — a personal correspondence on warm paper,
   warmed by the desert bloom. Deep ink, sage, and one
   living point of marigold.
   ════════════════════════════════════════════════════════════ */

/* ── design tokens ──────────────────────────────────────────── */
:root {
  /* paper — warm oat, drawn from desert sand */
  --paper:        #F4EAD5;
  --paper-2:      #EFE1C8;   /* slightly deeper, for cards / panels */
  --paper-3:      #E9D9BB;   /* deepest paper, edges */
  --paper-hi:     #FBF4E6;   /* paper highlight */

  /* the writing desk the letter rests on — deep, warm, grounding */
  --desk:         #211913;
  --desk-2:       #2C2117;
  --desk-glow:    #3a2c1c;

  /* ink — deep warm bistre, never grey */
  --ink:          #2C2114;
  --ink-2:        #4A3925;   /* secondary ink */
  --ink-3:        #786046;   /* tertiary / meta */
  --ink-faint:    #A1875F;   /* faintest pencil */

  /* the bloom — the one living accent (tuned to clear large-text AA on paper) */
  --marigold:     #C56A12;
  --marigold-lt:  #E9A24A;
  --rust:         #AE4A1C;   /* spine tips, deepest warm */
  --amber:        #C2862F;

  /* the calm green — Jim's sage */
  --sage:         #889A57;
  --sage-deep:    #586836;
  --sage-faint:   #B6BE96;

  /* soft sky counterpoint, from the cosmos */
  --sky:          #A9C2D0;

  --measure:      33rem;     /* the reading column of the letter */

  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --hand:   "Caveat", "Segoe Script", cursive;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:   cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--desk);
  /* a warm, static pool of light on the desk — no movement, no orbs,
     just depth so the paper has something to rest on */
  background-image:
    radial-gradient(120% 90% at 50% -10%, var(--desk-glow) 0%, transparent 55%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* respect those who don't want motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

::selection { background: rgba(213,120,26,.22); color: var(--ink); }

a { color: inherit; }


/* ── paper grain over the whole page ────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}


/* ════════════════════════════════════════════════════════════
   THE SHEET
   ════════════════════════════════════════════════════════════ */
.letter {
  display: block;
  padding: clamp(1rem, 4vw, 4.5rem) clamp(.6rem, 3vw, 2rem) clamp(3rem, 6vw, 6rem);
}

.sheet {
  position: relative;
  max-width: 47rem;
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);

  background-color: var(--paper);
  /* layered warmth: a faint bloom-warm wash at the head, a cool
     hush at the foot, over the oat base — gives the paper life
     without washing it out */
  background-image:
    radial-gradient(80% 40% at 22% 0%, rgba(233,162,74,.10) 0%, transparent 60%),
    radial-gradient(90% 50% at 90% 100%, rgba(169,194,208,.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-hi) 0%, var(--paper) 18%, var(--paper) 82%, var(--paper-2) 100%);

  /* the sheet floats on the desk: a long soft shadow + a fine
     bright top edge, like light catching the lip of the page */
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 .9rem 2.2rem rgba(0,0,0,.30),
    0 3.5rem 6rem rgba(0,0,0,.38);
}

/* the embossed letterpress plate-mark, just inside the edge */
.sheet__platemark {
  position: absolute;
  inset: clamp(.9rem, 2.4vw, 1.6rem);
  pointer-events: none;
  border: 1px solid rgba(120,96,70,.22);
  box-shadow: 0 1px 0 rgba(255,255,255,.4);
}


/* ════════════════════════════════════════════════════════════
   OPENING
   ════════════════════════════════════════════════════════════ */
.opening { position: relative; text-align: center; }

.dateline {
  font-family: var(--hand);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--sage-deep);
  letter-spacing: .01em;
  margin: 0 0 1.4rem;
  transform: rotate(-1.2deg);
}

/* modest letterhead — the quote is the headline, this is just whose hand */
.letterhead {
  margin: 0 auto 2.4rem;
  font-weight: 400;
  display: inline-flex;
  flex-direction: column;
  gap: .5rem;
}
.letterhead__name {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  letter-spacing: .015em;
  color: var(--ink);
}
.letterhead__role {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.7;
}
.letterhead__role em {
  font-style: normal;
  color: var(--rust);
}
.letterhead__role span { display: block; }

/* a hairline rule under the letterhead, with a bloom-coloured node */
.letterhead::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 1px;
  margin: 1.4rem auto -.4rem;
  background: linear-gradient(90deg, transparent, var(--marigold), transparent);
}

/* the epigraph — the headline of the whole letter */
.epigraph {
  margin: 0 auto 2.8rem;
  max-width: 34rem;
}
.epigraph__body { margin: 0; }
.epigraph__body p {
  font-size: clamp(1.45rem, 4.1vw, 2.05rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.42;
  letter-spacing: .003em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

.attribution {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.3rem;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.attribution--center { justify-content: center; }
.attribution__rule {
  width: 2.2rem; height: 1px;
  background: var(--ink-faint);
}

/* the tipped-in photograph — a print mounted onto the letter */
.photo {
  margin: 0;
  position: relative;
  width: max-content;
  max-width: 100%;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
}

.photo--bloom {
  width: min(26rem, 86%);
  margin: 0 auto;
  padding: .7rem .7rem 3.2rem;
  background: var(--paper-hi);
  transform: rotate(-1.6deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 1.2rem 2.4rem rgba(60,38,12,.26);
  transition: transform .6s var(--ease);
}
.photo--bloom img { box-shadow: 0 0 0 1px rgba(60,38,12,.07); }
.photo--bloom:hover { transform: rotate(-.6deg) translateY(-3px); }

.photo__caption {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  font-family: var(--hand);
  font-size: 1.22rem;
  color: var(--ink-2);
  transform: rotate(-.8deg);
}

/* a strip of translucent tape holding the print down */
.photo__tape {
  position: absolute;
  top: -.85rem; left: 50%;
  width: 5.2rem; height: 1.7rem;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, rgba(233,201,150,.55), rgba(214,176,120,.45));
  box-shadow: 0 1px 2px rgba(60,38,12,.12);
  z-index: 2;
}
.photo__tape::before,
.photo__tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: .4rem;
  background-image: repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,.35) 2px 4px);
}
.photo__tape::before { left: 0; } .photo__tape::after { right: 0; }


/* ════════════════════════════════════════════════════════════
   THE LETTER BODY — shared prose
   ════════════════════════════════════════════════════════════ */
.passage,
.about__text,
.manifesto,
.offerings,
.bridge {
  max-width: var(--measure);
  margin-inline: auto;
}

.passage p,
.about__text p,
.offering__body p {
  font-size: clamp(1.16rem, 2.5vw, 1.32rem);
  line-height: 1.66;
  color: var(--ink);
  margin: 0 0 1.15rem;
  font-weight: 400;
}
.passage p em,
.about__text p em,
.offering__body p em {
  font-style: italic;
  color: var(--ink-2);
}

.salutation {
  font-family: var(--hand);
  font-size: clamp(1.7rem, 4vw, 2.2rem) !important;
  color: var(--ink) !important;
  line-height: 1.2 !important;
  margin: 0 0 1.1rem !important;
  transform: rotate(-.6deg);
}

/* drop cap on the opening line of the letter — a real ::first-letter so the
   word stays "The Work" for screen readers and copy/paste */
.lede { position: relative; }
.lede::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.4rem;
  line-height: .72;
  padding: .35rem .55rem 0 0;
  color: var(--marigold);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.fineprint {
  font-family: var(--sans) !important;
  font-size: .82rem !important;
  line-height: 1.7 !important;
  letter-spacing: .01em;
  color: var(--ink-3) !important;
  margin-top: 1.6rem !important;
}
.fineprint a, .footer a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(174,74,28,.35);
  transition: border-color .3s, color .3s;
}
.fineprint a:hover, .footer a:hover { color: var(--marigold); border-color: var(--marigold); }


/* ── the four questions — an indented quoted passage ────────── */
.questions {
  list-style: none;
  margin: 2.2rem 0;
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-left: 2px solid rgba(136,154,87,.62);
}
.question {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: .7rem 0;
}
.question + .question { border-top: 1px solid rgba(120,96,70,.14); }
.question__num {
  flex: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--marigold);
  width: 1.8rem;
  padding-top: .35rem;
}
.question__text {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.62rem) !important;
  font-style: italic;
  line-height: 1.4 !important;
  color: var(--ink) !important;
}
.question__text em { font-style: italic; color: var(--ink) !important; }


/* ── fleuron divider ────────────────────────────────────────── */
.fleuron {
  text-align: center;
  color: var(--sage-deep);
  font-size: 1.5rem;
  margin: clamp(2.6rem, 6vw, 4rem) 0;
  opacity: .8;
  letter-spacing: .3em;
}


/* ════════════════════════════════════════════════════════════
   MANIFESTO
   ════════════════════════════════════════════════════════════ */
.manifesto {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--paper-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 .5rem 1.4rem rgba(60,38,12,.10);
  max-width: 38rem;
}
.manifesto::before,
.manifesto::after {
  content: "";
  position: absolute; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-faint), transparent);
}
.manifesto::before { top: 1.1rem; } .manifesto::after { bottom: 1.1rem; }

/* the still-life photo tucked into the manifesto's corner */
.photo--still {
  position: absolute;
  top: -1.4rem; right: -1.1rem;
  width: clamp(6rem, 16vw, 9rem);
  padding: .4rem .4rem 1rem;
  background: var(--paper-hi);
  transform: rotate(3deg);
  box-shadow: 0 .8rem 1.6rem rgba(60,38,12,.22);
  filter: sepia(.18) saturate(.92);
}

.manifesto__eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.4rem;
}
.manifesto__lead {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  line-height: 1;
  color: var(--marigold);
  margin: 0 0 1.6rem;
}
.manifesto__nots {
  list-style: none;
  margin: 0 auto 1.8rem;
  padding: 0;
  display: inline-block;
  text-align: left;
}
.manifesto__nots li {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.9;
  color: var(--ink);
}
.manifesto__nots em { font-style: italic; color: var(--rust); }
.manifesto__mark { color: var(--sage); margin-right: .5rem; }
.manifesto__yes {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 2rem;
}
.manifesto__close { margin: 0; }
.manifesto__close blockquote { margin: 0; }
.manifesto__close blockquote p {
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 1rem;
}


/* ════════════════════════════════════════════════════════════
   HOW I CAN SUPPORT YOU + section heads
   ════════════════════════════════════════════════════════════ */
.passage__head, .reply__head {
  text-align: center;
  margin: 0 0 2.4rem;
}
.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .8rem;
}
.passage__title {
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.passage__title em { font-style: italic; color: var(--rust); }

.offering-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offering {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.4rem;
  padding: 1.8rem 0;
}
.offering + .offering { border-top: 1px solid rgba(120,96,70,.18); }
.offering__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--marigold);
  text-align: right;
  padding-top: .35rem;
}
.offering__kicker {
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .35rem;
}
.offering__title {
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 .6rem;
}


/* ════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════ */
.about { max-width: 40rem; margin-inline: auto; }
.about__portrait {
  margin: 0 auto 2rem;
  width: clamp(8.5rem, 26vw, 12rem);
}
.portrait-frame {
  padding: .55rem;
  background: var(--paper-hi);
  border-radius: 50%;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 1rem 2rem rgba(60,38,12,.22);
}
.portrait-img {
  display: block;
  width: 100%;
  height: auto;        /* override the img's height attribute so aspect-ratio wins */
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(136,154,87,.45) inset;
}
.about__text { text-align: left; }
.about__text > p:first-child { margin-top: 0; }

.pull-quote {
  margin: 2rem 0;
  text-align: center;
}
.pull-quote p {
  font-size: clamp(1.7rem, 4.6vw, 2.3rem) !important;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3 !important;
  color: var(--marigold) !important;
  margin: 0 !important;
}

.signature {
  font-family: var(--hand);
  font-size: clamp(2rem, 5vw, 2.6rem) !important;
  color: var(--sage-deep) !important;
  line-height: 1 !important;
  margin: 1.6rem 0 0 !important;
  transform: rotate(-3deg);
  transform-origin: left center;
}


/* ════════════════════════════════════════════════════════════
   BRIDGE QUOTE
   ════════════════════════════════════════════════════════════ */
.bridge { text-align: center; padding: clamp(1rem,4vw,2rem) 0; }
.bridge-quote { margin: 0; }
.bridge-quote__body { margin: 0; }
.bridge-quote__body p {
  font-size: clamp(1.4rem, 3.8vw, 1.95rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 auto;
  max-width: 32rem;
}
.bridge-quote__lift {
  display: block;
  margin-top: .6rem;
  color: var(--rust);
}


/* ════════════════════════════════════════════════════════════
   REPLY CARD — the contact form, a tear-off reply
   ════════════════════════════════════════════════════════════ */
.reply {
  max-width: 40rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}
.reply__card {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2.4rem, 6vw, 3.6rem) clamp(1.5rem, 5vw, 3rem) clamp(2.2rem, 5vw, 3rem);
  background: var(--paper-hi);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 .8rem 2rem rgba(60,38,12,.16);
}
/* the perforated tear-off edge — a row of small punched holes just inside the
   card's top, reading as "tear here" without dark half-moons on the paper */
.reply__perf {
  position: absolute;
  top: .7rem; left: 1.3rem; right: 1.3rem;
  height: .42rem;
  background:
    radial-gradient(circle, rgba(33,25,19,.42) 0 32%, transparent 36%) repeat-x;
  background-size: .95rem .42rem;
  background-position: center;
}
.reply__head { margin-bottom: 2.2rem; }
.reply__lede {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 1rem auto 0;
  max-width: 26rem;
}
.photo--cosmos {
  width: min(20rem, 80%);
  margin: 0 auto 2rem;
  padding: .55rem .55rem 1.3rem;
  background: #fff;
  transform: rotate(1.4deg);
  box-shadow: 0 1rem 2rem rgba(60,38,12,.2);
}


/* ── form fields ────────────────────────────────────────────── */
.contact { text-align: left; }
.field { margin-bottom: 1.7rem; border: 0; padding: 0; }
.field--group { margin-bottom: 1.9rem; }
.field__label, legend.field__label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .7rem;
  padding: 0;
}
.field__req { color: var(--marigold); }
.field__optional { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-style: italic; }

.field__input {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(120,96,70,.45);
  padding: .5rem .1rem;
  transition: border-color .35s, box-shadow .35s;
}
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:focus {
  outline: none;
  border-bottom-color: var(--marigold);
  box-shadow: 0 1px 0 var(--marigold);
}
.field__input--area {
  border: 1px solid rgba(120,96,70,.45);
  padding: .8rem .9rem;
  resize: vertical;
  line-height: 1.55;
}
.field__input--area:focus { box-shadow: 0 0 0 1px var(--marigold); }

/* radios as small ink rings that fill marigold when chosen */
.radio-row { display: flex; flex-direction: column; gap: .7rem; }
.radio-row--compact { flex-flow: row wrap; gap: .6rem 1.6rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio__mark {
  flex: none;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
  position: relative;
}
.radio__mark::after {
  content: "";
  position: absolute; inset: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: var(--marigold);
  transition: inset .2s var(--ease), width .2s var(--ease), height .2s var(--ease);
}
.radio:hover .radio__mark { border-color: var(--marigold); }
.radio input:checked + .radio__mark { border-color: var(--marigold); }
.radio input:checked + .radio__mark::after { inset: 25%; width: 50%; height: 50%; }
.radio input:focus-visible + .radio__mark { box-shadow: 0 0 0 3px rgba(213,120,26,.25); }
.radio input:checked ~ .radio__label { color: var(--ink); }

/* submit button — a letterpress key */
.contact__submit { margin-top: 2.2rem; text-align: center; }
.btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  padding: .3rem 1rem;
  transition: color .3s, transform .3s;
}
.btn__line {
  display: block;
  width: 3.5rem; height: 1px;
  background: var(--marigold);
  transition: width .4s var(--ease);
}
.btn:hover:not(:disabled) { color: var(--rust); }
.btn:hover:not(:disabled) .btn__line { width: 6rem; }
.btn:disabled { cursor: default; opacity: .6; }
.btn:focus-visible { outline: 2px solid var(--marigold); outline-offset: 6px; border-radius: 2px; }

.contact__status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage-deep);
  margin: 1.1rem 0 0;
  min-height: 1.4rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s, transform .5s;
}
.contact__status.is-visible { opacity: 1; transform: none; }
.contact__status.is-error { color: var(--rust); }


/* ════════════════════════════════════════════════════════════
   CLOSING & WAX SEAL
   ════════════════════════════════════════════════════════════ */
.closing {
  position: relative;
  text-align: center;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 2rem;
}
.closing__valediction {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-2);
  margin: 0 0 .2rem;
}
.closing__sign {
  font-family: var(--hand);
  font-size: clamp(2.8rem, 8vw, 3.8rem);
  color: var(--sage-deep);
  line-height: 1;
  margin: 0;
  transform: rotate(-3deg);
}
/* the certification mark, an embossed seal — quietly, bottom-right */
.seal {
  position: absolute;
  right: clamp(-.5rem, 1vw, 1rem);
  bottom: -1rem;
  width: clamp(5rem, 14vw, 7rem);
  margin: 0;
  transform: rotate(-7deg);
  opacity: .9;
}
.seal img {
  width: 100%; height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(.25) contrast(1.02) drop-shadow(0 2px 3px rgba(60,38,12,.25));
}


/* ════════════════════════════════════════════════════════════
   FOOTER — printed on the desk, beneath the letter
   ════════════════════════════════════════════════════════════ */
.footer {
  color: var(--paper-2);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}
.footer__inner {
  max-width: 47rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.footer__heading, .footer__meta p {
  font-family: var(--sans);
}
.footer__heading {
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage-faint);
  margin: 0 0 1rem;
}
.footer__questions ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: fq;
}
.footer__questions li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--paper);
  padding: .25rem 0 .25rem 1.8rem;
  position: relative;
  counter-increment: fq;
}
.footer__questions li::before {
  content: counter(fq, decimal-leading-zero);
  position: absolute; left: 0; top: .45rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--marigold-lt);
}
.footer__meta p {
  font-size: .82rem;
  line-height: 1.8;
  color: var(--sage-faint);
  margin: 0 0 1rem;
}
.footer__meta a { color: var(--marigold-lt); border-bottom-color: rgba(233,162,74,.4); }
.footer__copy { color: var(--ink-faint) !important; font-size: .74rem !important; }


/* ════════════════════════════════════════════════════════════
   MOTION — page-load reveals + scroll reveals
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* scroll-revealed blocks (class added by script.js) */
.observe {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.observe.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .observe { opacity: 1; transform: none; transition: none; }
  .photo--bloom, .signature, .closing__sign, .salutation,
  .dateline, .seal, .photo--still, .photo--cosmos { transform: none; }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .sheet { padding-left: clamp(1.2rem, 6vw, 2rem); padding-right: clamp(1.2rem, 6vw, 2rem); }
  .photo--still {
    position: static;
    width: 9rem;
    margin: 0 auto 1.6rem;
    transform: rotate(2deg);
  }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .offering { grid-template-columns: 2.2rem 1fr; gap: 0 1rem; }
  .seal { right: 0; }
}

@media (max-width: 380px) {
  .manifesto__nots li { font-size: 1.1rem; }
}


/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY — skip link, focus-visible, honeypot
   ════════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: .7rem; left: .7rem;
  z-index: 10000;
  transform: translateY(-180%);
  background: var(--paper-hi);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .6rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 .5rem 1.4rem rgba(0,0,0,.32);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; outline: 2px solid var(--marigold); outline-offset: 2px; }
#main:focus { outline: none; }

/* stronger, consistent keyboard focus on inputs + links */
.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--marigold);
  box-shadow: 0 2px 0 var(--marigold);
}
.field__input--area:focus-visible { box-shadow: 0 0 0 2px var(--marigold); }
.field__input[aria-invalid="true"] {
  border-bottom-color: var(--rust);
  box-shadow: 0 2px 0 var(--rust);
}
.field__input--area[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--rust); }
a:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }

/* honeypot — visually + AT hidden, off-screen (never display:none, so bots fill it) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
#turnstileHolder:not(:empty) {
  margin: 0 0 1.6rem;
  display: flex;
  justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   BEFORE YOU WRITE — FAQ + practical/care notes
   ════════════════════════════════════════════════════════════ */
.faq {
  max-width: 37rem;
  margin-inline: auto;
}
.faq-list { margin: 2.2rem 0 0; }
.faq-item { padding: 0; }
.faq-item + .faq-item { border-top: 1px solid rgba(120,96,70,.16); }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  transition: color .3s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--rust); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 4px;
  border-radius: 2px;
}
.faq-item[open] > summary { color: var(--rust); }
.faq-q { flex: 1; }

/* the +/− indicator */
.faq-icon {
  flex: none;
  position: relative;
  width: 1rem; height: 1rem;
  align-self: center;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--marigold);
  transition: transform .3s var(--ease), opacity .3s;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.6px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 0; bottom: 0; width: 1.6px; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.faq-a {
  padding: 0 0 1.5rem;
  font-size: clamp(1.08rem, 2.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-2);
  animation: faq-open .4s var(--ease);
}
.faq-a p { margin: 0; }
.faq-a a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(174,74,28,.35);
  transition: color .3s, border-color .3s;
}
.faq-a a:hover { color: var(--marigold); border-color: var(--marigold); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
}

.practical {
  margin: clamp(2.6rem, 6vw, 4rem) auto 0;
  padding-top: clamp(2rem, 5vw, 2.8rem);
  border-top: 1px solid rgba(120,96,70,.2);
  display: grid;
  gap: 1.9rem;
}
.practical__label {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .55rem;
}
.practical__note p:not(.practical__label) {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.practical__note--care p:not(.practical__label) {
  font-size: clamp(.98rem, 2.2vw, 1.08rem);
  color: var(--ink-3);
}
.practical__note--care strong {
  font-weight: 600;
  font-style: normal;
  color: var(--rust);
}


/* ── privacy line + email fallback (reply card) ────────────── */
.form-privacy {
  font-family: var(--sans);
  font-size: .76rem;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--ink-3);
  text-align: center;
  max-width: 28rem;
  margin: 1.4rem auto 0;
}
.email-fallback {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  color: var(--ink-2);
  margin: 1.6rem auto 0;
  max-width: 28rem;
}
.email-fallback a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(174,74,28,.4);
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}
.email-fallback a:hover { color: var(--marigold); border-color: var(--marigold); }


/* ════════════════════════════════════════════════════════════
   404
   ════════════════════════════════════════════════════════════ */
.notfound { text-align: center; }
.notfound__title {
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
  margin: 1.5rem 0 1rem;
  text-wrap: balance;
}
.notfound__body {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 auto 2rem;
  max-width: 28rem;
}
.notfound__home {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(174,74,28,.4);
  transition: color .3s, border-color .3s;
}
.notfound__home:hover { color: var(--marigold); border-color: var(--marigold); }
