/* Shared by every /ground/ page. Same tokens as the jlkm.net hub so the whole
   domain reads as one system. */
:root {
  --paper: #F7F6F3;
  --sheet: #FFFFFFD6;
  --ink: #191713;
  --ash: #7C776E;
  --hairline: #D6D2CA;
  --structure: #0E5F52;
  --heat: #B4553E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130F;
    --sheet: #1D1B16D9;
    --ink: #EDE9E1;
    --ash: #96907F;
    --hairline: #33302A;
    --structure: #4FB8A2;
    --heat: #D6705A;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  padding: 40px 20px 56px;
}
.terrain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: fill;          /* the SVG's own "slice" keeps the aspect ratio */
  pointer-events: none; z-index: -1;
}
.wrap { max-width: 780px; margin: 0 auto; position: relative; }
.sheet {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 32px 28px;
  backdrop-filter: blur(3px);
}
.eyebrow {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--structure); margin-bottom: 6px;
}
h1 {
  font-family: 'Fraunces', serif; font-weight: 700; text-transform: uppercase;
  font-size: 2rem; letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 10px;
}
.standfirst { color: var(--ash); font-size: 0.95rem; margin: 0; }
h2 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem;
  margin: 28px 0 8px; letter-spacing: 0.005em;
}
p { margin: 0 0 12px; }

/* map collar: the marginalia a real quad sheet carries */
.collar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 16px 0; margin: 20px 0 4px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.field { display: flex; flex-direction: column; gap: 2px; }
.field-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ash); font-weight: 600;
}
.field-value {
  font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

/* the site's own map, shown at full strength rather than as a background */
.plate {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline); border-radius: 10px;
  margin: 20px 0 4px; background: var(--paper);
}
.plate-note { font-size: 0.78rem; color: var(--ash); margin: 0 0 8px; }

figure { margin: 0 0 18px; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper);
}
figcaption { font-size: 0.8rem; color: var(--ash); margin-top: 6px; }
figcaption .credit { display: block; margin-top: 2px; font-size: 0.74rem; }
figcaption a { color: inherit; }

/* video card */
.video {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  border: 1px solid var(--hairline); border-left: 5px solid var(--heat);
  border-radius: 10px; padding: 16px; margin: 12px 0 4px;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.video:hover { transform: translateY(-1px); border-color: var(--heat); }
.video:focus-visible { outline: 2px solid var(--structure); outline-offset: 2px; }
.video img { width: 100%; height: auto; border-radius: 6px; display: block; }
.video-kicker {
  font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--heat); margin-bottom: 6px;
}
.video-title {
  font-family: 'Fraunces', serif; font-size: 1.05rem; line-height: 1.25;
  margin: 0 0 6px;
}
.video-why { font-size: 0.86rem; color: var(--ash); margin: 0; }

ul.links { list-style: none; padding: 0; margin: 8px 0 0; }
ul.links li { margin-bottom: 6px; font-size: 0.9rem; }
ul.links a { color: var(--structure); }

/* the gallery index */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden;
  background: var(--sheet);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { transform: translateY(-1px); border-color: var(--structure); }
.card:focus-visible { outline: 2px solid var(--structure); outline-offset: 2px; }
.card img { width: 100%; height: 150px; object-fit: cover; display: block;
            border-bottom: 1px solid var(--hairline); background: var(--paper); }
.card-body { padding: 14px 16px 16px; }
.card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.card-sub { font-size: 0.84rem; color: var(--ash); margin: 0 0 8px; }
.card-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--ash);
}

nav.crumbs { margin-bottom: 14px; font-size: 0.82rem; }
nav.crumbs a { color: var(--structure); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }

.pager {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
}
.pager a { color: var(--structure); text-decoration: none; }
.pager a:hover { text-decoration: underline; }

footer {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline);
  color: var(--ash); font-size: 0.78rem;
}
footer p { margin: 0 0 4px; }
footer a { color: inherit; }

@media (max-width: 640px) {
  body { padding: 20px 14px 40px; }
  .sheet { padding: 24px 20px 20px; }
  .collar { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .video { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .video, .card { transition: none; }
  .video:hover, .card:hover { transform: none; }
}
