/* squadron 1917 — the one stylesheet (svm402-site #1)
   period palette, 360 px first, system serif, no web fonts,
   no runtime network, no fixed widths beyond what a palm can hold */

:root {
  --cream: #f4ecd8;
  --khaki: #c9b98f;
  --sepia: #5b4a35;
  --ink: #221c14;
  --roundel-red: #a63a2a;
  --roundel-blue: #2c4c72;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  /* paper texture: layered gradients, no image dependency */
  background-image:
    repeating-linear-gradient(0deg, rgb(91 74 53 / 4%) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgb(91 74 53 / 3%) 0 3px, transparent 3px 7px),
    radial-gradient(ellipse at 18% 10%, rgb(201 185 143 / 30%), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgb(91 74 53 / 10%), transparent 50%);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; }

/* ── type: stencil-ish headings, no web fonts ────────────────────────────── */
h1, h2, h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.5rem;
  color: var(--cream);
  background: var(--khaki);
  font-stretch: condensed;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--sepia);
}

h2 { color: var(--sepia); }

p, li, figcaption { overflow-wrap: anywhere; }

/* ── layout: single column, never wider than reading measure ─────────────── */
.site-header,
main,
.site-footer {
  max-width: 68ch;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem);
}

/* ── header + footer bands ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--sepia);
}

.site-header .home {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--sepia);
  text-decoration: none;
}

.site-header nav { display: flex; gap: 1.25rem; }

.site-header nav a { color: var(--sepia); }

.site-footer {
  border-top: 2px solid var(--sepia);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  color: var(--sepia);
}

.site-footer a { color: var(--sepia); }

.site-footer .fineprint {
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
  color: var(--sepia);
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--sepia);
  margin: 0 0 1rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--sepia);
  font-style: italic;
  margin: 0 0 1.5rem;
}

/* trailer: 16:9 wrapper, no fixed widths */
.frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 2px solid var(--sepia);
  background: var(--ink);
}

.frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.caption {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sepia);
}

/* ── download row: real anchors, 44 px min target, wraps below 360 px ─────── */
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--sepia);
  background: var(--khaki);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button:hover { background: var(--cream); }

.button:active { background: var(--sepia); color: var(--cream); }

.more {
  color: var(--roundel-blue);
  font-weight: 700;
}

/* ── privacy card ─────────────────────────────────────────────────────────── */
.privacy-card {
  border: 2px solid var(--sepia);
  background: rgb(201 185 143 / 35%);
  padding: 1rem 1.25rem;
  margin-block: 2rem;
}

.privacy-card p { margin: 0.5rem 0 0; }

/* ── screenshot slot plates: period texture, no missing-image icons ───────── */
.shots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.shot {
  margin: 0;
  border: 2px solid var(--sepia);
}

.shot .plate {
  height: clamp(9rem, 30vw, 13rem);
  background-color: var(--khaki);
  background-image:
    repeating-linear-gradient(-45deg, rgb(91 74 53 / 18%) 0 6px, transparent 6px 12px),
    radial-gradient(circle at 30% 35%, rgb(166 58 42 / 40%) 0 9%, transparent 10%),
    radial-gradient(circle at 30% 35%, rgb(44 76 114 / 35%) 0 14%, transparent 15%);
}

.shot figcaption {
  padding: 0.5rem 0.75rem;
  border-top: 2px solid var(--sepia);
  font-size: 0.9rem;
  color: var(--sepia);
}

/* the log list: newest first, entries read as ledger rows */
.log {
  padding-left: 1.5rem;
}

.log h2 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.log .date { color: var(--sepia); font-weight: 400; }

.log ul { margin: 0 0 0.5rem; }

.log .links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (min-width: 640px) {
  .shots-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── focus: visible everywhere, keyboard-first ────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--roundel-blue);
  outline-offset: 2px;
}

/* ── reduced motion: no autoplay decoration, nothing to disable, still pinned */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
