/* Landing page (index.html) — survival handbook look */
:root {
  --paper: #e3d3a4;
  --paper-dark: #cdb983;
  --ink: #1f1b14;
  --ink-soft: #4a4232;
  --stamp: #a8281c;
  --olive: #4f5631;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #2a2519;
  color: var(--ink);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 18px; line-height: 1.55;
  padding: 40px 16px;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }

.booklet {
  max-width: 960px; margin: 0 auto;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.25), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(120,90,30,.18), transparent 55%),
    var(--paper);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 120px rgba(110,80,20,.25);
  position: relative;
}

.cover {
  padding: 56px 56px 48px;
  border-bottom: 3px double var(--ink);
  display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: end;
}
.series { font-family: 'Special Elite', monospace; font-size: 15px; color: var(--ink-soft); }
.cover h1 {
  font-family: 'Archivo Black', sans-serif; font-weight: 400;
  font-size: clamp(48px, 8vw, 96px); line-height: .9; letter-spacing: -2px;
  margin: 16px 0 20px;
}
.cover h1 .ed { display: block; font-family: 'Special Elite', monospace; font-size: .34em; letter-spacing: 0; margin-top: 12px; color: var(--olive); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cover p { max-width: 42ch; font-size: 20px; }
.cover-art { position: relative; }
.cover-art img {
  width: 100%; height: auto; display: block; border-radius: 50%;
  filter: grayscale(1) contrast(1.4) brightness(.95); mix-blend-mode: multiply;
}
.stamp {
  position: absolute; right: -36px; bottom: -34px; transform: rotate(-12deg);
  font-family: 'Archivo Black', sans-serif; font-size: 17px; color: var(--stamp);
  border: 3px solid var(--stamp); padding: 4px 10px; line-height: 1.1; text-align: center;
  background: rgba(227, 211, 164, .4); mix-blend-mode: multiply; opacity: .9;
}

.issue {
  padding: 28px 56px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid var(--ink);
}
.issue strong { font-family: 'Special Elite', monospace; font-weight: 400; margin-right: 8px; }
.issue img { height: 46px; display: block; }

.chapter { padding: 56px; border-bottom: 1px solid var(--ink); }
.chapter header { display: flex; gap: 20px; align-items: baseline; margin-bottom: 28px; }
.chapter .num { font-family: 'Archivo Black', sans-serif; font-size: 64px; line-height: .8; color: var(--olive); }
.chapter h2 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 32px; line-height: 1.1; }
.chapter .sub {  font-family: 'Special Elite', monospace; font-size: 16px; color: var(--ink-soft); margin-top: 4px; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.rule h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.rule h3::before { content: "§ "; color: var(--stamp); }
.rule p { color: var(--ink-soft); max-width: 46ch; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); }
.cls { padding: 18px; border-right: 1px solid var(--ink); }
.cls:last-child { border-right: 0; }
.cls .kind { font-family: 'Special Elite', monospace; font-size: 14px; color: var(--olive); }
.cls h3 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 24px; margin: 4px 0 10px; }
.cls ol { list-style: none; font-size: 16px; }
.cls li { padding: 4px 0; border-top: 1px dashed var(--ink-soft); }
.note { font-family: 'Special Elite', monospace; font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.plate { margin: 0; background: #f4ead0; padding: 10px 10px 14px; box-shadow: 0 3px 10px rgba(60,40,0,.35); position: relative; }
.plate:nth-child(odd) { transform: rotate(-1.4deg); }
.plate:nth-child(even) { transform: rotate(1.2deg); }
.plate::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(230, 220, 180, .7); box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: top; filter: sepia(.35) contrast(1.05); }
.plate figcaption { font-family: 'Special Elite', monospace; font-size: 14px; margin-top: 8px; }

.back { padding: 56px 56px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.back h2 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 36px; line-height: 1.05; margin-bottom: 10px; }
.btn {
  display: inline-block; font-family: 'Archivo Black', sans-serif; font-size: 18px; text-decoration: none;
  background: var(--ink); color: var(--paper); padding: 14px 22px;
}
.btn:hover { background: var(--stamp); }
.back p { max-width: 46ch; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; max-width: 330px; }
.channels .btn:first-child { flex-basis: 100%; text-align: center; }
.btn-alt { flex: 1; text-align: center; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); padding: 10px 16px; font-size: 16px; }
.btn-alt:hover { background: var(--ink); color: var(--paper); }
.colophon { padding: 18px 56px 28px; font-family: 'Special Elite', monospace; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--ink); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 780px) {
  body { padding: 0; }
  .cover, .issue, .chapter, .back, .colophon { padding-left: 20px; padding-right: 20px; }
  .cover { grid-template-columns: 1fr; }
  .cover-art { max-width: 200px; }
  .rules { grid-template-columns: 1fr; }
  .classes { grid-template-columns: 1fr 1fr; }
  .cls:nth-child(2) { border-right: 0; }
  .cls:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .plates { grid-template-columns: 1fr 1fr; gap: 20px; }
  .back { grid-template-columns: 1fr; }
  .channels { justify-content: flex-start; }
}
