/* thelangdairyfarm.com inner pages. One backdrop, one grammar: a quiet label and what it labels. */
/* Phones do not carry Impact. Anton (SIL Open Font License, see fonts/OFL-Anton.txt) stands in for it there,
   so the big type looks the same on a phone as on a laptop. A machine that has Impact never downloads it. */
@font-face { font-family: "Anton"; src: url("fonts/anton.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --head: Impact, "Anton", Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --green: #8fc46a;
  --line: rgba(255,255,255,0.16);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { height: 100%; overflow-y: auto; color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #050505; color: #fff; font-family: var(--ui); font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: #050505; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* keyboard users can jump past the picture */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: #fff; color: #050505; padding: 10px 14px; font-size: 14px; font-weight: 400; text-decoration: none; }
.skip:focus { top: 16px; }

/* the backdrop never changes: portrait, vignette, grain. The veil only dims it. */
#bg { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 0; overflow: hidden; }
#bg picture, #bg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
#bg img { animation: slowZoom 30s ease-out infinite alternate; will-change: transform; }
/* On tall screens the whole photo fits, table and all. Push in so the table drops out of frame, the way it does on a wide screen. */
@media (max-aspect-ratio: 1/1) { #bg img { height: 122%; } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
#vignette { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 1; pointer-events: none; background: radial-gradient(circle at center, transparent 15%, rgba(5,5,8,0.7) 100%); }
#veil { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 2; pointer-events: none; background: #050505; opacity: 0; }
#grain { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 3; pointer-events: none; background-image: var(--noise); opacity: 0.15; mix-blend-mode: overlay; }

/* the name down the side, on every page, always the way home; under the veil, so it dims with the portrait */
#name { position: fixed; top: 50%; right: -10%; width: max-content; transform: translateY(-50%) rotate(90deg); z-index: 1; margin: 0;
  text-transform: uppercase; text-decoration: none; font-weight: 900; font-family: var(--head); font-size: min(clamp(60px, 10vw, 150px), 16vh); line-height: 1.2;
  color: #fff; opacity: 0.9; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
#name:focus-visible { outline: 1px solid var(--green); outline-offset: 6px; }

/* only what is inside #page changes from page to page; the picture stays put */
#page { transition: opacity 0.28s ease; }
#page:focus { outline: none; }
#page.leaving { opacity: 0; }

/* ---------- the home page: the original mechanism, kept as it was ---------- */
html.home { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
#progress-bar { position: fixed; left: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 100; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background 0.4s ease, transform 0.4s ease; cursor: pointer; border: 2px solid transparent; background-clip: padding-box; }
.dot:hover { background: rgba(255,255,255,0.5); }
.dot.active { background: #fff; transform: scale(1.3); box-shadow: 0 0 10px #fff; }
.fixed-footer { position: fixed; bottom: 30px; right: 50px; z-index: 60; text-align: right; color: #fff; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 400; pointer-events: none; }
.card-stack { position: fixed; top: 15%; left: 15%; transform: translateY(-50%); z-index: 10; width: 45vw; pointer-events: none; }
.p-card { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; opacity: 0; filter: blur(20px); pointer-events: none;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease; transform: translateY(15px);
  font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.5vw, 42px); line-height: 1.1; }
.p-card:not(.intro-text) { padding-left: 40px; }
.p-card.is-active { opacity: 1; filter: blur(0); pointer-events: auto; transform: translateY(0); }
.kicker-text { font-family: var(--ui); font-size: 11px; letter-spacing: 0.15em; color: var(--green); margin-bottom: 2px; font-weight: 400; }
.main-link { color: #fff; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.main-link:hover, .main-link:focus-visible { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 25px rgba(255,255,255,0.5); transform: translateX(5px); outline: none; }
.intro-text { font-family: var(--ui); font-weight: 700; font-size: 18px; text-transform: none; color: #fff; gap: 10px; }
.intro-text .kicker-text { font-weight: 600; }
.intro-head { font-family: var(--head); font-weight: 400; font-size: 2.5em; line-height: 1.05; text-transform: uppercase; color: #fff; display: block; margin: 0 0 -2px; }
.highlight { display: block; font-size: 0.8em; letter-spacing: 0.1em; color: #fff; opacity: 0.8; margin-top: 10px; font-weight: 400; }
#scroll-engine { position: relative; z-index: 5; }
.snap-section { height: 100vh; height: 100svh; scroll-snap-align: start; }

/* the page title sits where the finger points, and arrives the way the home page's doors do */
#title { position: fixed; top: 15%; left: 15%; z-index: 10; padding-left: 40px; pointer-events: none; }
#title .kicker { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); font-weight: 400; margin-bottom: 4px; }
#title h1 { font-family: var(--head); text-transform: uppercase; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.05; margin: 0; font-weight: 400; }
#title .cue { display: block; width: 1px; height: 46px; margin: 18px 0 0 2px; background: rgba(255,255,255,0.7); transform-origin: top; animation: cue 2.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(22px); opacity: 0; } }
.js #title .in { animation: resolve 1.1s ease 0.15s both; }
@keyframes resolve { from { opacity: 0; filter: blur(20px); transform: translateY(15px); } to { opacity: 1; filter: blur(0); transform: none; } }

/* the menu */
#menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 26px; justify-content: flex-end; align-items: center;
  padding: 40px 50px calc(22px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(5,5,5,0.95) 35%, rgba(5,5,5,0)); pointer-events: none; }
#menu a { pointer-events: auto; color: #fff; opacity: 0.75; text-decoration: none; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 400; white-space: nowrap; padding: 12px 0 4px; border-bottom: 1px solid transparent; transition: opacity 0.3s ease; }
#menu a:hover, #menu a:focus-visible, #menu a.here { opacity: 1; outline: none; }
#menu a:focus-visible { border-bottom-color: #fff; }
#menu a.here { border-bottom-color: var(--green); }

/* the words come up over the portrait as it dims */
#flow { position: relative; z-index: 20; padding-top: 100vh; padding-top: 100svh; padding-bottom: 170px; pointer-events: none; }
.col { max-width: 47em; margin-left: 15%; padding: 0 24px 0 40px; pointer-events: auto; }
.col p { font-size: 18px; line-height: 1.65; margin: 0 0 18px; text-shadow: 0 1px 14px rgba(0,0,0,0.9); }
.col p:last-child { margin-bottom: 0; }
.col a { color: #fff; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.3s ease; }
.col a:hover, .col a:focus-visible { color: var(--green); outline: none; }
.col .lead { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.38; margin: 0 0 64px; max-width: 26em; }

/* the one grammar: a quiet label, then what it labels */
.row { display: flex; gap: 30px; align-items: baseline; margin: 0 0 40px; }
.lab { flex: 0 0 12.5em; margin: 0; font-family: var(--ui); font-size: 13px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; opacity: 0.75; }
.txt { flex: 1; min-width: 0; }
.txt .aside { font-size: 16px; opacity: 0.8; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.rows-lined .row { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows-lined .row:first-child { border-top: 1px solid var(--line); }
.more { margin: 44px 0 0; }
.more a { display: inline-block; margin: 0 34px 14px 0; font-size: 20px; }
.more a::after { content: " \2192"; color: var(--green); }

/* a picture, used once */
.still { margin: 0 0 64px; }
.still img { display: block; width: 100%; height: auto; }
.still figcaption { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-top: 12px; }

/* essay (the manifesto) */
.essay .by { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin: -40px 0 64px; }
.essay h2 { font-family: var(--ui); font-weight: 300; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; margin: 0 0 18px; }
.essay .num { display: block; font-size: 13px; letter-spacing: 0.16em; opacity: 0.75; margin: 64px 0 8px; }
.essay blockquote { margin: 30px 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--green); }
.essay blockquote p { font-size: clamp(21px, 2vw, 25px); line-height: 1.4; margin: 0; }

/* the catalog: the same rows, filed */
.shelf { margin: 0 0 64px; }
.shelf h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 0 0 12px; font-family: var(--ui); font-size: 13px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--line); }
.shelf h2 .cls { color: #fff; opacity: 0.75; letter-spacing: 0.08em; }
.shelf ol { list-style: none; margin: 0; padding: 0; }
.entry { display: flex; gap: 30px; align-items: baseline; padding: 18px 0 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.entry .call { flex: 0 0 11.6em; font-size: 14px; letter-spacing: 0.04em; opacity: 0.75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry:target .call { color: var(--green); opacity: 1; }
.entry .what { flex: 1; min-width: 0; }
.entry .t { font-size: 21px; line-height: 1.3; text-decoration: none; text-shadow: 0 1px 14px rgba(0,0,0,0.9); }
.col .entry p { font-size: 15px; line-height: 1.5; margin: 4px 0 0; opacity: 0.8; }
.col .entry p.see { opacity: 1; }
.entry .see b { font-weight: 400; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-right: 10px; }

/* the form */
.form { margin: 0; max-width: 30em; }
.form label { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin: 0 0 4px; }
.form input, .form textarea { display: block; width: 100%; margin: 0 0 34px; padding: 8px 0 10px; background: transparent; color: #fff; border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.45); border-radius: 0; font-family: var(--ui); font-size: 20px; font-weight: 300; line-height: 1.5; transition: border-color 0.3s ease; }
.form textarea { min-height: 8em; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--green); }
/* a browser filling in the name and email keeps the dark field */
.form input:-webkit-autofill, .form textarea:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #0b0b0b inset; caret-color: #fff; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); padding: 14px 26px; font-family: var(--ui); font-size: 13px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.form button:hover, .form button:focus-visible { background: #fff; color: #050505; outline: none; }
.form button[disabled] { opacity: 0.5; cursor: default; }
#status { min-height: 1.6em; margin: 20px 0 0; font-size: 17px; }

/* things resolve as they arrive, the way the home page's doors do (only when scripts run) */
.js .rv { opacity: 0; filter: blur(14px); transform: translateY(14px); transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease; }
.js .rv.in { opacity: 1; filter: blur(0); transform: none; }

@media (max-width: 520px) {
  #name { right: auto; left: 55%; }
}
@media (max-width: 768px) {
  .card-stack { left: 5%; top: 5%; width: 90vw; transform: none; }
  .p-card:not(.intro-text) { padding-left: 15px; }
  .intro-head { font-size: 2.1em; white-space: nowrap; }
  #progress-bar { left: 10px; opacity: 0.3; }
  .fixed-footer { bottom: 15px; right: 15px; }
  #title { top: 5%; left: 5%; padding-left: 15px; }
  #menu { padding: 34px 16px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 0; justify-content: space-between; }
  #menu a { letter-spacing: 0.07em; }
  .col { margin-left: 0; padding: 0 22px; pointer-events: none; }
  .col a, .col form, .col button, .col input, .col textarea { pointer-events: auto; }
  .col p { font-size: 17px; }
  .col .lead { margin-bottom: 52px; }
  .row { flex-direction: column; gap: 6px; margin-bottom: 34px; }
  .lab, .entry .call { flex: none; }
  .entry { flex-direction: column; gap: 2px; }
  .entry .t { font-size: 20px; }
  .more a { display: block; margin-right: 0; }
}
/* tablets: the phone layout, but the menu gathers in the middle */
@media (min-width: 521px) and (max-width: 768px) {
  #menu { justify-content: center; gap: 34px; }
  #menu a { letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) {
  #bg img, #title .cue, .js #title .in { animation: none; }
  html.home { scroll-behavior: auto; }
  .p-card { filter: none; transform: none; transition: opacity 0.3s ease; }
  #page { transition: none; }
  .js .rv { filter: none; transform: none; transition: opacity 0.3s ease; }
}
@media (max-width: 350px) {
  #menu { padding-left: 8px; padding-right: 8px; }
  #menu a { letter-spacing: 0; }
  .intro-head { font-size: 1.9em; }
  .highlight { font-size: 0.74em; letter-spacing: 0.03em; white-space: nowrap; }
  .col { padding: 0 18px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  #menu { justify-content: flex-start; padding-left: 15%; padding-top: 24px; padding-bottom: 12px; }
  #title { top: 12%; }
  #title .cue { height: 28px; margin-top: 10px; }
}
/* paper: no picture, everything showing */
@media print {
  #bg, #vignette, #veil, #grain, #name, #menu, #progress-bar, #scroll-engine, .fixed-footer, #title .cue { display: none !important; }
  body { background: #fff; color: #000; }
  #title { position: static; padding: 0; opacity: 1 !important; }
  #title .kicker { color: #000; }
  #flow { padding: 24px 0 0; }
  .col { margin: 0; padding: 0; max-width: none; }
  .col p, .entry .t { text-shadow: none; }
  .col a { color: #000; }
  .js .rv, .js #title .in { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .card-stack, .p-card { position: static; opacity: 1; filter: none; transform: none; color: #000; }
  .main-link, .intro-text, .intro-head, .highlight { color: #000; }
}
