/* Outsourced pages — visual identity per CS/70-design/00-STYLE-GUIDE.md.
   Cream ground, ink, hairline rules; four-tag grammar exactly as the covers
   and figures draw it. Monochrome-safe; white space is the authority cue. */

:root {
  --ground: #f3efe6;
  --ink: #1c1b19;
  --grey: #7d7a72;
  --line: #c9c5ba;
  --serif: 'Arno Pro', 'Minion Pro', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Freight Sans Pro', 'Inter', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

a { color: var(--ink); }

/* ---------- top nav ---------- */
.crumb {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2.25rem;
}
.crumb a { color: var(--grey); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* ---------- labels & rules ---------- */
.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }

/* ---------- book header ---------- */
.book-head { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 40rem) { .book-head { grid-template-columns: 220px 1fr; } }

.book-head .cover img {
  display: block; width: 100%; max-width: 260px; height: auto;
  border: 1px solid var(--line);
}

.book-head h1 {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.book-head .kicker { margin-bottom: 0.6rem; }
.book-head .author { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.book-head .pitch { margin-top: 1.25rem; font-size: 1.125rem; }

/* ---------- availability / buy ---------- */
.avail { margin-top: 1.5rem; }
.avail .date { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }

.buy { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.buy span, .buy a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  color: var(--grey);
  text-decoration: none;
}
.buy a { color: var(--ink); border-color: var(--ink); }

/* ---------- prose blocks ---------- */
.prose p { margin-bottom: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- the four-tag legend ---------- */
.tags { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
@media (min-width: 34rem) { .tags { grid-template-columns: 1fr 1fr; } }

.tag-row { display: flex; gap: 0.7rem; align-items: baseline; }
.tag-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-def { font-size: 0.9375rem; color: var(--grey); line-height: 1.45; }

/* tag marks — solid / hollow / struck / hatch, drawn as the figures draw them */
.mark { display: inline-block; width: 11px; height: 11px; vertical-align: baseline; position: relative; top: 1px; margin-right: 0.45rem; flex: none; }
.mark-proven { border-radius: 50%; background: var(--ink); }
.mark-inferred { border-radius: 50%; background: transparent; border: 1.5px solid var(--ink); }
.mark-contested { border-radius: 50%; background: transparent; border: 1.5px solid var(--ink); overflow: hidden; }
.mark-contested::after {
  content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1.5px; background: var(--ink); transform: rotate(45deg);
}
.mark-uncashed {
  background: repeating-linear-gradient(45deg, var(--ink) 0 1.5px, transparent 1.5px 4.5px);
}

/* ---------- the Honest Center exhibit ---------- */
.hc {
  border: 1px solid var(--ink);
  background: var(--ground);
  padding: 1.6rem 1.25rem 1.5rem;
  margin-top: 1.4rem;
}
@media (min-width: 34rem) { .hc { padding: 2rem 1.9rem 1.8rem; } }

.hc-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}
.hc-stand {
  margin-top: 0.7rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--grey);
}

.hc-section { margin-top: 1.6rem; }
.hc-section-head {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.hc-section-head .qual { font-weight: 400; letter-spacing: 0.08em; color: var(--grey); text-transform: none; font-size: 0.75rem; }

.hc-section ul { list-style: none; margin-top: 0.7rem; }
.hc-section li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: 1.05rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.hc-section li::before { content: '·'; position: absolute; left: 0.15rem; font-weight: 700; }

.hc-notsay { margin-top: 1.7rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.hc-notsay .hc-section-head { border-bottom: 0; padding-bottom: 0; }
.hc-notsay p { font-size: 0.9375rem; line-height: 1.5; margin-top: 0.6rem; }

.hc-footrule {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

/* ---------- wires page ---------- */
.wires-head h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.wires-head .sub { margin-top: 0.35rem; font-style: italic; color: var(--grey); }
.wires-head .stand { margin-top: 1.4rem; }
.wires-head .dates {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
}

.wire {
  border: 1px solid var(--ink);
  margin-top: 1.75rem;
  padding: 1.3rem 1.15rem 1.25rem;
  background: var(--ground);
}
@media (min-width: 34rem) { .wire { padding: 1.6rem 1.6rem 1.5rem; } }

.wire-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; justify-content: space-between; }
.wire-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.status-standing { background: transparent; color: var(--ink); }
.status-hardened { background: var(--ink); color: var(--ground); }
.status-retired { color: var(--grey); border-color: var(--line); text-decoration: line-through; }

.wire dl { margin-top: 1.1rem; }
.wire dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.9rem;
}
.wire dd { margin-top: 0.25rem; font-size: 0.9688rem; line-height: 1.55; }

.wire .updates { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.wire .updates .label { margin-bottom: 0.55rem; }
.wire .updates ul { list-style: none; }
.wire .updates li {
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: var(--sans);
  color: var(--ink);
  padding-left: 1.05rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.wire .updates li::before { content: '·'; position: absolute; left: 0.15rem; font-weight: 700; }
.wire .updates li .d { font-weight: 600; letter-spacing: 0.04em; }

/* ---------- wires footer ---------- */
.wires-foot { margin-top: 2.75rem; border-top: 1px solid var(--ink); padding-top: 1.6rem; }
.wires-foot h2 { font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.8rem; }
.wires-foot p { margin-bottom: 0.9rem; font-size: 0.9688rem; }
.wires-foot .evidence {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
}
.wires-foot .evidence a { font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.04em; }

/* ---------- shared page footer ---------- */
.colophon {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--grey);
  line-height: 1.7;
}
.colophon a { color: var(--grey); }

/* ---------- big wires link on the book page ---------- */
.wires-cta {
  display: block;
  border: 1px solid var(--ink);
  padding: 1.3rem 1.25rem;
  text-decoration: none;
  margin-top: 1.4rem;
}
.wires-cta:hover { background: rgba(28, 27, 25, 0.04); }
.wires-cta .t { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.2em; text-transform: uppercase; }
.wires-cta .s { display: block; margin-top: 0.4rem; color: var(--grey); font-size: 0.9375rem; }
