@font-face { font-family: "Bodoni Moda"; src: url(/fonts/bodoni.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/bodoni-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sand: #e8d9b5;
  --sand-deep: #c9b38a;
  --wet: #a8936c;
  --ink: #1a1410;
  --ink-2: #2a221b;
  --lip: #dc143c;
  --muted: #72644d;
  --glow: #ffe7a8;
  --gutter: clamp(18px, 5vw, 72px);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: .8rem; }
.dot { color: var(--lip); padding: 0 .25em; }
::selection { background: var(--lip); color: var(--sand); }

/* sand grain over everything light */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(114,100,77,.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(114,100,77,.14) 0 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px;
}
header, main, footer { position: relative; z-index: 1; }

/* ---------- depth gauge ---------- */
.gauge {
  position: fixed; left: 0; top: 0; bottom: 0; width: 46px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  pointer-events: none; mix-blend-mode: difference; color: #fff;
}
.gauge-rail { position: relative; width: 1px; height: 46vh; background: currentColor; opacity: .55; }
.gauge-rail::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: 0; bottom: 0;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 10%);
}
.gauge-fill { position: absolute; left: -2px; top: 0; width: 5px; height: 100%; background: currentColor; transform-origin: top; transform: scaleY(0); }
.gauge-read { font: 600 11px/1.1 var(--mono); writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 6px; letter-spacing: .12em; text-transform: uppercase; }
.gauge-num { font-variant-numeric: tabular-nums; }

/* ---------- cover ---------- */
.cover { padding: clamp(18px, 3vw, 36px) var(--gutter) 0 calc(var(--gutter) + 28px); }
.masthead { border-bottom: 3px double var(--ink); padding-bottom: 10px; }
.issue { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.title {
  margin: 0; font-weight: 900; line-height: .86; letter-spacing: -.035em;
  font-size: clamp(2.7rem, 11.4vw, 11.2rem);
  font-variation-settings: "opsz" 96;
}
.title .t-a { display: block; }
.title .t-b { display: block; font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--lip); padding-left: .9em; }
.ticker { margin: 6px 0 0; text-align: right; font-weight: 600; color: var(--lip); letter-spacing: .26em; font-size: .85rem; }

.cover-spread { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 18px; position: relative; }
.cover-art { margin: 0; border: 3px solid var(--ink); background: #3d3a33; overflow: hidden; }
.cover-art img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.coverlines { padding: 18px 0 6px; }
.cl { margin: 0 0 6px; font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.cl-big { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: -.01em; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.02; margin-bottom: 14px; }
.cl.mono::before { content: "— "; color: var(--lip); }

@media (min-width: 900px) {
  .cover-spread { grid-template-columns: 1fr 290px; gap: 28px; align-items: end; }
  .coverlines { padding: 0 0 6px; border-left: 1px solid var(--ink); padding-left: 22px; }
}

.logbar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 22px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: .78rem;
}
.log-entry, .logbar .ca-slot { padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 2px; }
.log-entry .k, .ca-label { text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-size: .68rem; }
.log-entry .v { font-weight: 600; }
.logbar .ca-slot { grid-column: 1 / -1; border-top: 1px dashed var(--wet); }
@media (min-width: 900px) {
  .logbar { grid-template-columns: 1fr 1fr 1fr 2.2fr; }
  .log-entry + .log-entry, .logbar .ca-slot { border-left: 1px solid var(--ink); padding-left: 14px; }
  .logbar .ca-slot { grid-column: auto; border-top: 0; }
}

/* ---------- CA slot ---------- */
.ca-slot { font-family: var(--mono); }
.ca-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ca-value { min-height: 1.4em; display: block; }
.ca-value:empty { border-bottom: 1px solid currentColor; opacity: .35; width: min(100%, 16em); min-height: 1.3em; }
.ca-addr { font-weight: 600; word-break: break-all; font-size: .82rem; }
.ca-btn {
  font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  border: 1.5px solid currentColor; background: transparent; color: inherit; padding: 6px 9px; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.ca-btn:hover { background: var(--lip); border-color: var(--lip); color: #fff; }
.ca-btn:active { transform: translateY(1px); }
.ca-btn.copied { background: var(--ink); color: var(--sand); }
.ca-ext { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1.5px solid currentColor; transition: color .15s, border-color .15s; }
.ca-ext:hover { color: var(--lip); border-color: var(--lip); }

/* ---------- looks ---------- */
.look { padding: clamp(70px, 11vw, 150px) var(--gutter) clamp(60px, 9vw, 120px) calc(var(--gutter) + 28px); }
.look-head { margin-bottom: 26px; }
.look-no { margin: 0 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.look h2 { margin: 0; font-weight: 800; font-size: clamp(3rem, 9vw, 7.4rem); line-height: .9; letter-spacing: -.03em; }
.lede { font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; margin: 0 0 18px; }
.look p { max-width: 34em; }

/* look 01: the stomp, a runway on the sand */
.look-stomp { display: grid; gap: 10px; padding-bottom: 0; }
@media (min-width: 900px) { .look-stomp { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 60px; } .look-stomp .runway { grid-column: 1 / -1; } }
.runway { position: relative; height: clamp(220px, 30vw, 360px); margin: 40px calc(-1 * var(--gutter)) 0 calc(-1 * (var(--gutter) + 28px)); overflow: hidden; }
.runway-sand {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to bottom, var(--sand-deep), var(--wet));
  border-top: 3px solid var(--ink);
}
.prints { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 18%; }
.prints .p { fill: var(--ink); opacity: 0; transition: opacity .4s; }
.prints .p.on { opacity: .55; }
.walker { position: absolute; bottom: 17%; left: 0; width: clamp(150px, 20vw, 280px); will-change: transform; transform: translateX(-30%); }
.walker.step { animation: bob .5s steps(2) infinite; }
@keyframes bob { 50% { translate: 0 -4px; } }

/* look 02: the lips, the dark */
.look-lips { background: var(--ink); color: var(--sand); display: grid; gap: 40px; }
.look-lips .look-no { color: var(--sand-deep); }
@media (min-width: 900px) { .look-lips { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 70px; } }
.lips-art { margin: 0; border: 3px solid var(--sand); }
.lips-art img { width: 100%; }
.fieldnote {
  display: block; margin-top: 28px; padding: 14px 16px; font-size: .8rem; line-height: 1.55; max-width: 32em;
  border-left: 4px solid var(--lip); background: rgba(232,217,181,.07);
}
.look-lips .fieldnote, .look-lure .fieldnote { color: var(--sand); }
.fn-tag { display: block; color: var(--lip); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-size: .68rem; margin-bottom: 4px; }

/* look 03: the lure */
.look-lure { background: var(--ink-2); color: var(--sand); display: grid; gap: 40px; }
.look-lure .look-no { color: var(--sand-deep); }
@media (min-width: 900px) { .look-lure { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; } }
.lure-lines { list-style: none; padding: 0; margin: 22px 0 0; font-size: .9rem; }
.lure-lines li { padding: 8px 0; border-bottom: 1px dashed rgba(232,217,181,.25); }
.lure-lines li::before { content: "THE LURE: "; color: var(--glow); font-weight: 600; font-size: .7rem; letter-spacing: .14em; }
.lure-art { margin: 0; position: relative; }
.lure-art img { position: relative; width: 100%; border-radius: 50%; border: 3px solid var(--sand); }
.spot {
  position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(255,231,168,.45), transparent 55%);
  animation: glow 3.6s ease-in-out infinite;
}
@keyframes glow { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* specimen card */
.look-card { background: var(--ink); color: var(--sand); }
.look-card .look-no { color: var(--sand-deep); }
.placard {
  background: var(--sand); color: var(--ink); max-width: 860px; padding: clamp(22px, 4vw, 44px);
  box-shadow: 10px 10px 0 var(--lip); border: 2px solid var(--ink);
}
.placard-head { border-bottom: 3px double var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
.binomial { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; }
.binomial span { font-size: .5em; color: var(--muted); font-style: normal; white-space: nowrap; }
.placard-head .mono { margin: 6px 0 0; color: var(--muted); }
.placard-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; font-size: .86rem; }
@media (min-width: 700px) { .placard-grid { grid-template-columns: 1fr 1fr; column-gap: 34px; } }
.placard-grid div { padding: 10px 0; border-bottom: 1px solid rgba(26,20,16,.2); }
.placard-grid dt { text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; color: var(--muted); }
.placard-grid dd { margin: 2px 0 0; font-weight: 600; }
.placard-src { margin: 16px 0 0; color: var(--muted); }
.placard-src a { text-decoration-color: var(--lip); text-underline-offset: 3px; }
.placard-src a:hover { color: var(--lip); }
.closing { font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.8rem); margin: 70px 0 0; max-width: none !important; }
.closing::after { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--lip); border-radius: 50%; margin-left: .25em; vertical-align: middle; }

/* footer */
.foot {
  background: var(--ink); color: var(--sand); border-top: 1px solid rgba(232,217,181,.2);
  padding: 40px var(--gutter) 46px calc(var(--gutter) + 28px);
  display: grid; gap: 26px; align-items: center;
}
@media (min-width: 900px) { .foot { grid-template-columns: auto 1fr auto; gap: 50px; } }
.foot-id { display: flex; align-items: center; gap: 14px; }
.foot-id img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--sand); }
.foot-name { margin: 0; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.foot-ticker { margin: 2px 0 0; color: var(--lip); font-weight: 600; font-size: .75rem; letter-spacing: .2em; }
.ca-foot { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; }
.ca-foot .ca-label { color: var(--sand-deep); }
.foot-links { display: flex; gap: 10px; }
.icon-link {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--sand); color: var(--sand); transition: background-color .15s, color .15s, transform .15s, border-color .15s;
}
.icon-link:hover { background: var(--lip); border-color: var(--lip); color: #fff; transform: translateY(-2px); }
.icon-link svg { width: 20px; height: 20px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 20px); opacity: 0;
  background: var(--lip); color: #fff; padding: 9px 16px; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .gauge { width: 26px; }
  .gauge-rail { height: 30vh; }
  .gauge-read { font-size: 9px; }
  .cover, .look, .foot { padding-left: calc(var(--gutter) + 16px); }
  .runway { margin-left: calc(-1 * (var(--gutter) + 16px)); }
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spot, .walker.step { animation: none; }
  .walker { transform: translateX(40vw) !important; }
  .prints .p { opacity: .55; transition: none; }
}

/* cover standfirst: the kit's description */
.standfirst { margin: 26px 0 0; max-width: 40em; font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; }
.standfirst::before { content: ""; display: block; width: 56px; height: 4px; background: var(--lip); margin-bottom: 14px; }
.ca-trade { margin-top: 6px; }
a.ca-btn { text-decoration: none; display: inline-block; }
