/* =============================================================
   Goatmeal Field Office — Longform layout
   Atavist-inspired cinematic expose. Used for layout: longform.
   ============================================================= */

:root {
  color-scheme: dark;
  --paper:        #0f0d0b;
  --paper-2:      #17130f;
  --paper-3:      #1f1a14;
  --paper-4:      #2a221b;
  --ink:          #ece2cc;
  --ink-soft:     #c8bca4;
  --ink-mute:     #8a8174;
  --ochre:        #d6a35c;
  --ochre-deep:   #b1854a;
  --ochre-glow:   rgba(214, 163, 92, 0.35);
  --rust:         #c4583e;
  --rule:         rgba(236, 226, 204, 0.10);
  --rule-strong:  rgba(236, 226, 204, 0.22);
  --night:        #0a0908;
  --bone:         #f7f0e0;

  --serif-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body:    "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono:          "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 38rem;
  --measure-wide: 52rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html.lf-html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html.lf-html { scroll-behavior: auto; }
}

body.lf-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: clamp(1.06rem, 0.96rem + 0.45vw, 1.2rem);
  line-height: 1.72;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmospheric warmth — deep glow rising from the bottom-right */
body.lf-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 900px at 88% 110%, rgba(214, 163, 92, 0.10), transparent 65%),
    radial-gradient(900px 700px at 8% -10%, rgba(236, 226, 204, 0.04), transparent 60%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease-out), background-size 200ms var(--ease-out);
}

::selection {
  background: var(--ochre);
  color: var(--bone);
}

/* ----- Skip link ----- */
.lf-skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--ochre);
  color: var(--night);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
  z-index: 100;
}
.lf-skip:focus { transform: translateY(0); outline: none; }

/* ----- Reading progress bar ----- */
.lf-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.lf-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ochre), var(--rust));
  box-shadow: 0 0 12px var(--ochre-glow);
  transition: width 80ms linear;
}

/* ----- Top bar ----- */
.lf-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem var(--gutter);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: background 240ms var(--ease-out), backdrop-filter 240ms var(--ease-out);
}
.lf-topbar__inner {
  pointer-events: auto;
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.lf-topbar.is-pinned {
  background: rgba(15, 13, 11, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-strong);
  box-shadow: 0 1px 0 rgba(214, 163, 92, 0.06);
}
.lf-topbar.is-over-hero { color: var(--bone); }
.lf-topbar.is-over-hero .lf-mark__divider { background: var(--bone); opacity: 0.5; }

.lf-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lf-mark__office { font-weight: 500; }
.lf-mark__field { color: currentColor; opacity: 0.75; }
.lf-mark__divider {
  width: 18px; height: 1px; background: currentColor; opacity: 0.4;
}

.lf-nav {
  justify-self: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.lf-nav a {
  position: relative;
  padding: 0.25rem 0;
}
.lf-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.lf-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .lf-nav { display: none; }
}

.lf-share-trigger {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.lf-share-trigger:hover {
  background: currentColor;
  color: var(--paper);
}

/* ----- Hero ----- */
.lf-hero {
  position: relative;
  min-height: 100svh;
  color: var(--bone);
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

/* Compact hero — for utility pages without a cinematic photograph */
.lf-hero--compact {
  min-height: auto;
  padding: 9rem 0 4rem;
}
.lf-hero--compact .lf-hero__content {
  padding: 0 var(--gutter);
}
.lf-hero--compact .lf-hero__title {
  font-size: clamp(2.25rem, 4vw + 1rem, 4.5rem);
  max-width: 22ch;
}

/* No-image hero — paint a layered ink/ochre wash so the dark void has structure */
.lf-hero--no-image .lf-hero__image { display: none; }
.lf-hero--no-image .lf-hero__veil {
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(214, 163, 92, 0.16), transparent 60%),
    radial-gradient(1100px 800px at 100% 100%, rgba(196, 88, 62, 0.12), transparent 60%),
    linear-gradient(180deg, #14110d 0%, var(--paper) 100%);
}
.lf-hero__media { position: absolute; inset: 0; z-index: -2; }
.lf-hero__image {
  position: absolute;
  inset: -10% 0 0 0;
  background-image: var(--lf-hero-image);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--lf-parallax, 0), 0) scale(1.06);
  filter: contrast(1.05) saturate(0.85);
  will-change: transform;
}
.lf-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.65) 0%, rgba(10, 9, 8, 0.30) 32%, rgba(10, 9, 8, 0.65) 68%, rgba(10, 9, 8, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0) 55%, var(--paper) 100%);
}
.lf-hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.lf-hero__content {
  align-self: end;
  padding: 8rem var(--gutter) 6rem;
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lf-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--bone);
  opacity: 0.92;
}
.lf-kicker__dot {
  width: 8px; height: 8px;
  background: var(--ochre);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(177, 133, 74, 0.25);
  animation: lf-pulse 2.6s var(--ease-out) infinite;
}
@keyframes lf-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(177, 133, 74, 0.25); }
  50% { box-shadow: 0 0 0 9px rgba(177, 133, 74, 0); }
}
.lf-kicker__case {
  margin-left: 0.5rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.lf-hero__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.75rem, 7vw + 1rem, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.lf-hero__dek {
  margin: 0;
  max-width: 38rem;
  font-family: var(--serif-body);
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  font-style: italic;
  color: rgba(247, 240, 224, 0.86);
}
.lf-hero__byline {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0.85;
}
.lf-hero__byline strong { font-weight: 500; letter-spacing: 0.1em; }

.lf-hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.85;
}
.lf-hero__scroll-arrow {
  display: block;
  width: 1px; height: 36px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.lf-hero__scroll-arrow::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--ochre);
  animation: lf-scroll-drip 2s var(--ease-out) infinite;
}
@keyframes lf-scroll-drip {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* ----- Article ----- */
.lf-article {
  position: relative;
  z-index: 1;
  padding: 6rem var(--gutter) 4rem;
  max-width: var(--measure);
  margin: 0 auto;
  font-feature-settings: "liga", "kern", "onum";
}
.lf-article > * + * { margin-top: 1.4em; }

/* Body prose */
.lf-article p {
  margin: 0;
  font-family: var(--serif-body);
  font-variation-settings: "opsz" 16;
}

/* Lead paragraph: first paragraph after the article begins */
.lf-article > p:first-of-type {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
}
.lf-article > p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 5.5em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.08em -0.05em -0.04em;
  color: var(--ochre);
  text-shadow: 0 0 30px var(--ochre-glow);
}

/* Headings (h2 are chapter openers) */
.lf-article h2 {
  margin-top: 4rem;
  font-family: var(--serif-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.1rem, 1.4rem + 1.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  position: relative;
  counter-increment: lf-chapter;
}
.lf-article { counter-reset: lf-chapter; }
.lf-article h2::before {
  content: "Chapter " counter(lf-chapter, upper-roman);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
  font-variation-settings: normal;
}
.lf-article h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--rule-strong);
  margin-top: 1.25rem;
}

/* Plain article — utility pages drop the chapter prefix and drop cap */
.lf-article--plain { counter-reset: none; }
.lf-article--plain h2 {
  margin-top: 3rem;
  font-size: clamp(1.7rem, 1.1rem + 1.2vw, 2.4rem);
}
.lf-article--plain h2::before { content: none; display: none; }
.lf-article--plain > p:first-of-type::first-letter,
.lf-article--plain h2 + p::first-letter {
  font-size: 1em;
  float: none;
  margin: 0;
  color: inherit;
  text-shadow: none;
  font-family: inherit;
  font-weight: inherit;
  font-variation-settings: inherit;
}
.lf-article--plain > p:first-of-type {
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  color: var(--ink-soft);
}

.lf-article h3 {
  margin-top: 2.5rem;
  font-family: var(--serif-display);
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Drop cap on first paragraph after a chapter heading */
.lf-article h2 + p {
  font-size: 1.12em;
}
.lf-article h2 + p::first-letter {
  font-family: var(--serif-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.08em -0.1em -0.04em;
  color: var(--ochre);
  text-shadow: 0 0 24px var(--ochre-glow);
}

/* Emphasis / italics */
.lf-article em, .lf-article i {
  font-style: italic;
  font-variation-settings: "opsz" 16;
}
.lf-article strong { font-weight: 600; }

/* Lists */
.lf-article ul,
.lf-article ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
.lf-article ul { list-style: none; padding-left: 0; }
.lf-article ul li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.6rem 0;
}
.lf-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--ochre);
}
.lf-article ol { list-style: none; counter-reset: lf-list; padding-left: 0; }
.lf-article ol li {
  counter-increment: lf-list;
  position: relative;
  padding-left: 2.5rem;
  margin: 0.75rem 0;
}
.lf-article ol li::before {
  content: counter(lf-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

/* Inline images that aren't wrapped in figures — restyle for cinematic feel */
.lf-article > p > img,
.lf-article > p > picture,
.lf-article > img,
.lf-article > picture {
  display: block;
  width: 100%;
  height: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.lf-article > p > picture img,
.lf-article > picture img,
.lf-article > p > img,
.lf-article > img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.95) contrast(1.04);
}
.lf-article > p:has(> img),
.lf-article > p:has(> picture) {
  margin: 0;
}

/* Blockquotes / pull-quotes via <blockquote> or .lf-pull */
.lf-article blockquote,
.lf-article .lf-pull {
  margin: 3.5rem calc(50% - 50vw + var(--gutter));
  padding: 0 max(var(--gutter), calc(50vw - 50% - var(--gutter)));
  font-family: var(--serif-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.012em;
  text-wrap: balance;
  text-align: center;
  position: relative;
}
.lf-article blockquote::before,
.lf-article .lf-pull::before {
  content: "“";
  display: block;
  font-size: 3.5em;
  line-height: 0.4;
  color: var(--ochre);
  margin: 0 0 1.25rem;
  text-align: center;
}
.lf-article blockquote cite,
.lf-article .lf-pull cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Citations (existing pattern: <p class="citation">) */
.lf-article .citation {
  margin-top: 1.5rem;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--ochre);
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: linear-gradient(90deg, rgba(214, 163, 92, 0.09), transparent 60%);
}
.lf-article .citation::before {
  content: "Source";
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.4rem;
}

/* Asides / callouts */
.lf-article .callout,
.lf-article aside.callout {
  margin: 3rem 0;
  padding: 2rem clamp(1.25rem, 3vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(214, 163, 92, 0.05), transparent 60%),
    var(--paper-2);
  border-top: 1px solid var(--ochre);
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}
.lf-article .callout::before {
  content: "By the numbers";
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}
.lf-article .callout p {
  margin: 0;
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.4;
}
.lf-article .callout strong {
  display: block;
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: 0.9em;
  color: var(--rust);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

/* Hide the "By the numbers:" prefix since the ::before now shows it */
.lf-article .callout p > strong:first-child { display: none; }

/* Scene break */
.lf-article hr,
.lf-article .lf-rule {
  border: none;
  margin: 3.5rem auto;
  width: 80px;
  height: 1px;
  background: var(--rule-strong);
  position: relative;
}
.lf-article hr::after,
.lf-article .lf-rule::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 0.5rem;
  color: var(--ochre);
  font-size: 0.85rem;
}

/* Photo essay block */
.lf-photos {
  margin: 4rem calc(50% - 50vw);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.lf-photos figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lf-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: contrast(1.05) saturate(0.85) brightness(0.92);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.lf-photos figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Framed exhibit — sits slightly wider than the reading column */
.lf-exhibit {
  margin: 4rem auto;
  width: min(100%, var(--measure-wide));
  max-width: calc(100vw - 2 * var(--gutter));
}
.lf-exhibit--bleed {
  margin: 4rem calc(50% - 50vw);
  width: auto;
  max-width: none;
  padding: 0 var(--gutter);
}
.lf-exhibit__frame {
  position: relative;
  background: var(--paper-3);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.lf-exhibit__frame::before {
  content: attr(data-tag);
  position: absolute;
  top: -11px; left: clamp(1rem, 3vw, 2rem);
  background: var(--ochre);
  color: var(--night);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
}
.lf-exhibit img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.94);
}
.lf-exhibit figcaption {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ----- Submission form ----- */
.submission-form {
  margin: 2.5rem 0;
}
.submission-form fieldset {
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}
.submission-form legend {
  padding: 0 0.75rem;
  margin-left: -0.25rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
}
.submission-form .form-group {
  margin: 1.25rem 0;
}
.submission-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.submission-form input,
.submission-form textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 0.75rem 0.85rem;
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.submission-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.submission-form input:focus,
.submission-form textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px var(--ochre-glow);
}
.submission-form .error-message {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}
.submission-form .submit-button {
  appearance: none;
  background: var(--ochre);
  color: var(--night);
  border: 1px solid var(--ochre);
  padding: 0.85rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.submission-form .submit-button:hover {
  background: var(--bone);
  border-color: var(--bone);
}
.submission-form .submit-button:active { transform: translateY(1px); }
.submission-form .form-success,
.submission-form .form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--ochre);
  background: rgba(214, 163, 92, 0.08);
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-soft);
}

/* ----- Footer ----- */
.lf-footer {
  margin-top: 5rem;
  padding: 4rem var(--gutter);
  background: var(--night);
  color: var(--bone);
  border-top: 1px solid var(--ochre);
  position: relative;
  z-index: 1;
}
.lf-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.lf-footer__line {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lf-footer__line--meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0.65;
}
.lf-footer__affiliate {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 240, 224, 0.10);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 240, 224, 0.5);
  text-align: center;
}
.lf-footer__affiliate a {
  color: var(--ochre);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.lf-footer__affiliate a:hover {
  color: var(--bone);
  border-bottom-color: var(--ochre);
}

/* ----- Scroll-driven reveals ----- */
.lf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.lf-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lf-reveal,
  .lf-hero__image,
  .lf-kicker__dot,
  .lf-hero__scroll-arrow::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----- Share popup overrides for longform ----- */
.lf-share-popup .share-popup__panel {
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--serif-body);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.lf-share-popup .share-section {
  padding: 2rem;
}
.lf-share-popup .share-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.5rem;
}
.lf-share-popup .share-label {
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 60;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}
.lf-share-popup .share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lf-share-popup .share-button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.lf-share-popup .share-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.lf-share-popup .share-button--primary {
  background: var(--ink);
  color: var(--paper);
}
.lf-share-popup .share-button--primary:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--night);
}
.lf-share-popup .share-popup__close { margin-top: 1rem; }
.lf-share-popup .share-status {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ochre);
}

/* Generic share popup positioning (mirrors base styles) */
.share-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-popup[hidden] { display: none; }
.share-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.55);
  backdrop-filter: blur(4px);
}
.share-popup__panel {
  position: relative;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

/* ----- Responsive adjustments ----- */
@media (max-width: 720px) {
  .lf-topbar { padding: 0.75rem var(--gutter); }
  .lf-topbar__inner { grid-template-columns: 1fr auto; }
  .lf-mark__field { display: none; }
  .lf-article { padding: 4rem var(--gutter) 3rem; }
  .lf-article > p:first-of-type::first-letter,
  .lf-article h2 + p::first-letter {
    font-size: 4em;
  }
  .lf-article blockquote,
  .lf-article .lf-pull {
    margin: 2.5rem 0;
    padding: 0;
    text-align: left;
  }
  .lf-article blockquote::before,
  .lf-article .lf-pull::before { text-align: left; }
}
