@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,700;1,9..144,900&family=IBM+Plex+Mono:wght@500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --paper: #F4F0E8;
  --ink: #141210;
  --fire: #C43C1A;
  --bone: #F4F0E8;
  --well: #E8E2D6;
  --hero: #1A1814;
  --muted: #6B6458;
  --rule: #C9C0B0;
  --white: #FFFCFA;
  --fire-ink: #8A240E;
  --hair: rgba(20, 18, 16, 0.12);
  --display: "Fraunces", "Times New Roman", serif;
  --ui: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1280px;
  --header-h: 64px;
  --reg: 16px;
  --card-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fire); }
button, input, select { font-family: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}
p { margin: 0; }

/* Cover plates — five printer's marks + quiet density. No vermillion header. */
.cover {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  padding: 16px 16px 14px;
}

.cover__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 23px;
  line-height: 0.9;
  letter-spacing: -0.045em;
  position: relative;
  z-index: 2;
  margin: 0;
}

.cover__sit {
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.28;
  margin-top: auto;
  position: relative;
  z-index: 2;
  max-width: 28ch;
}

/* 1. VOICE — ink plate, repeating waveform hairline */
.cover--voice {
  background: var(--hero);
  color: var(--paper);
  border-color: var(--hero);
  padding-top: 20px;
}
.cover--voice .cover__sit { color: #A39B8F; }
.cover--voice .wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  height: 44px;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'><path d='M0 7 C10 7 12 1.5 20 1.5 S30 7 40 7 S50 12.5 60 12.5 S70 7 80 7' fill='none' stroke='%23F4F0E8' stroke-width='0.85'/></svg>");
  background-size: 80px 14px;
  background-repeat: repeat;
  opacity: 0.5;
}

/* 2. UGC — bone plate, corner crop marks, fire register (not a header bar) */
.cover--ugc {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 22px 16px;
}
.cover--ugc .cover__sit { color: var(--muted); }
.crop {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 3;
}
.crop--tl { top: 8px; left: 8px; border-top: 1.25px solid var(--ink); border-left: 1.25px solid var(--ink); }
.crop--tr { top: 8px; right: 8px; border-top: 1.25px solid var(--ink); border-right: 1.25px solid var(--ink); }
.crop--bl { bottom: 8px; left: 8px; border-bottom: 1.25px solid var(--ink); border-left: 1.25px solid var(--ink); }
.crop--br { bottom: 8px; right: 8px; border-bottom: 1.25px solid var(--ink); border-right: 1.25px solid var(--ink); }
.gate {
  position: absolute;
  inset: 22px 18px;
  border: 1px solid rgba(20, 18, 16, 0.16);
  pointer-events: none;
  z-index: 1;
}
.register-target {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border: 1.5px solid var(--fire);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}
.register-target::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 1.25px;
  background: var(--fire);
  transform: translateX(-50%);
}
.register-target::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 1.25px;
  background: var(--fire);
  transform: translateY(-50%);
}

/* 3. FACELESS YT — full-ink plate, geometric play triangle (not YouTube red) */
.cover--yt {
  background: var(--hero);
  color: var(--paper);
  border-color: var(--hero);
  padding-top: 22px;
  padding-right: 56px;
}
.cover--yt .cover__sit { color: #A39B8F; }
.play-mark {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 54px;
  height: 54px;
  z-index: 2;
  pointer-events: none;
}
.play-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 4. MISSED-CALL — bone plate, typographic MISS ring; no fire on the plate */
.cover--miss {
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  text-align: center;
  padding: 22px 20px 16px;
}
.cover--miss .cover__title {
  max-width: 16ch;
}
.cover--miss .cover__sit {
  color: var(--muted);
  max-width: 22ch;
  text-align: center;
}
.miss-ring {
  position: absolute;
  inset: -34%;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  user-select: none;
}
.miss-ring text {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.28em;
  fill: var(--ink);
}

/* 5. GEO — well plate, left fire quote-bar (pull quote, not a logo) */
.cover--geo {
  background: var(--well);
  color: var(--ink);
  padding: 18px 16px 14px 16px;
  border-color: var(--ink);
}
.cover--geo .cite {
  border-left: 4px solid var(--fire);
  padding: 4px 0 4px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
}
.cover--geo .cover__sit { color: var(--muted); }
.cover--geo .cite-kicker {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 8px;
}

/* 6. DENSITY — quiet catalog. Small family index + Fraunces title. No fire bar. */
.cover--quiet {
  background: var(--well);
  color: var(--ink);
  border-width: 1.5px;
  border-color: var(--rule);
  padding: 14px 14px 12px;
}
.cover--quiet .cover__idx {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.cover--quiet .cover__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.cover__sub {
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.28;
  margin-top: auto;
  position: relative;
  z-index: 2;
  max-width: 28ch;
}
