/* ============================================================
   letterpress — print-shop / letterpress poster aesthetic
   Cotton paper, debossed slab display type, ticket-stub cards
   with perforated rules, registration-mark crosses, two-color
   riso overprint accents (riso red + indigo).
   All colors/fonts/sizing live in :root — the factory overrides
   them in site.css.
   ============================================================ */

:root {
  --paper: #f8f4ec;          /* cotton paper */
  --ink: #201d1a;            /* dense letterpress ink */
  --muted: #71685c;          /* warm grey for secondary type */
  --accent: #d3401e;         /* riso red */
  --accent2: #2e4372;        /* indigo second color */
  --font-head: "Zilla Slab", "Rockwell", "Courier Bold", Georgia, serif;
  --font-body: "Mukta", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  --maxw: 44rem;

  --lp-paper-deep: #f0e9da;     /* darker cotton for wells/proofs */
  --lp-rule: #d9cfba;           /* dry hairline rule */
  --lp-deboss-hi: rgba(255, 255, 255, 0.72);  /* deboss highlight */
  --lp-deboss-lo: rgba(32, 29, 26, 0.30);     /* deboss shadow */
  --lp-riso-red-soft: rgba(211, 64, 30, 0.16);   /* misregistration fringe */
  --lp-indigo-soft: rgba(46, 67, 114, 0.16);
  --lp-mint-bg: #e0eee3;        /* stamp tint (mint) */
  --lp-mint-ink: #2e5c42;
  --lp-lav-bg: #e6e2f2;         /* stamp tint (lavender) */
  --lp-lav-ink: #524874;
  --lp-measure: 62rem;          /* full press platen width */
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent2) 40%, transparent);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- registration marks ---------- */

.regmark {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: var(--accent);
}

.regmark-corner {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent2);
  opacity: 0.85;
}
.regmark-tl { top: 0.55rem; left: 0.55rem; }
.regmark-tr { top: 0.55rem; right: 0.55rem; color: var(--accent); }

/* ---------- presshead (masthead) ---------- */

.presshead {
  max-width: var(--lp-measure);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
}

.presshead-locks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.presshead-lockup {
  position: relative;
  padding: 1.8rem 0 1.3rem;
  border-top: 5px solid var(--ink);
  box-shadow: 0 1px 0 var(--lp-rule);   /* thin companion bar under the heavy rule */
  margin-top: 0.55rem;
}

.press-name {
  display: inline-block;
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  /* debossed into the cotton, with a whisper of riso misregistration */
  text-shadow:
    0 1px 0 var(--lp-deboss-hi),
    0 -1px 1px var(--lp-deboss-lo),
    -2px 0 0 var(--lp-riso-red-soft),
    2px 0 0 var(--lp-indigo-soft);
}
.press-name:hover { color: var(--ink); }

.press-tag {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: 34rem;
}

/* ---------- forme nav ---------- */

.forme-nav {
  border-top: 1px solid var(--ink);
  border-bottom: 2px dashed var(--lp-rule);  /* perforated tear line */
  padding: 0.5rem 0;
}

.forme-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
}

.forme-nav-list li {
  display: flex;
  align-items: center;
}

.forme-nav-list li + li::before {
  content: "+";                     /* registration-cross separator */
  color: var(--accent);
  font-weight: 400;
  margin: 0 0.9rem;
  font-size: 0.85rem;
}

.forme-nav-list a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.15em 0;
  border-bottom: 2px solid transparent;
}
.forme-nav-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */

.pressrun {
  max-width: var(--lp-measure);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 3.2rem;
}

.platen { max-width: var(--maxw); margin: 0 auto; }

/* ---------- perforation rules ---------- */

.perf-rule {
  border: 0;
  border-top: 2px dashed var(--lp-rule);
  margin: 2.6rem auto;
  max-width: var(--maxw);
}

.perf-rule-wide { max-width: var(--lp-measure); }

/* ---------- slugs (chips) & slugbars (kickers) ---------- */

.slugbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
}

.slugbar-rule {
  flex: 1;
  border-top: 2px dashed var(--lp-rule);
}

.slug {
  display: inline-block;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.3em 0.8em 0.24em;
  background: var(--paper);
  transform: rotate(-1.1deg);       /* hand-stamped, never quite square */
}

.slug-plain { transform: none; font-size: 0.64rem; }

/* ---------- platen head (article header in a chase frame) ---------- */

.platen-head {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--lp-rule);
  padding: 1.9rem 1.7rem 1.6rem;
  margin-bottom: 2.2rem;
}

.platen-title {
  font-size: clamp(1.9rem, 4.8vw, 2.8rem);
  letter-spacing: 0.005em;
  margin: 0.3em 0 0.5em;
  text-shadow: 0 1px 0 var(--lp-deboss-hi), 0 -1px 1px var(--lp-deboss-lo);
}

.handbill {
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.3rem;
}

.printline {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--lp-rule);
  padding-top: 0.9rem;
}

.printline-name {
  font-weight: 700;
  color: var(--ink);
}

.creditline-sep {
  margin: 0 0.6em;
  color: var(--accent);
  font-weight: 400;
  text-transform: none;
}

.pull-time { font-style: normal; }

/* ---------- body copy ---------- */

.platen p { margin: 0 0 1.35em; }

.platen h2 {
  font-size: 1.55rem;
  margin: 2.1em 0 0.6em;
  padding-top: 1.1em;
  border-top: 2px dashed var(--lp-rule);   /* tear here between sections */
}

.platen h2::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: var(--accent);
  margin-right: 0.5em;
  vertical-align: baseline;
  box-shadow: 0.18em 0.18em 0 var(--lp-indigo-soft);  /* second pass, off register */
}

.platen h3 { font-size: 1.22rem; margin: 1.8em 0 0.5em; }

.platen ul, .platen ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.platen li { margin-bottom: 0.4em; }

.platen blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--accent2);
  color: var(--muted);
}

.platen a { text-underline-offset: 0.22em; }

/* ---------- fragment: ledegraf (first pull off the press) ---------- */

.ledegraf {
  font-size: 1.15rem;
  line-height: 1.62;
  padding: 1.25rem 1.4rem 1.25rem 1.5rem;
  background: var(--lp-paper-deep);
  border-left: 5px solid var(--accent);
  border-top: 2px dashed var(--lp-rule);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.9em;
}

.ledegraf::first-line {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- fragment: datatable ---------- */

.datatable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.7em 0 2em;
  font-size: 0.93rem;
  line-height: 1.5;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
}

.datatable caption {
  caption-side: top;
  font-family: var(--font-head, Georgia, serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 0 0.7em;
}

.datatable th {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  background: var(--lp-paper-deep);
  border-bottom: 1.5px solid var(--ink);
  padding: 0.6em 0.9em 0.55em 0.7em;
}

.datatable td {
  padding: 0.6em 0.9em 0.6em 0.7em;
  border-bottom: 1px dashed var(--lp-rule);   /* perforated rows */
  vertical-align: top;
}

.datatable tbody tr:nth-child(even) td { background: var(--lp-paper-deep); }
.datatable tbody tr:last-child td { border-bottom: 0; }

/* ---------- fragment: faqblock ---------- */

.faqblock {
  margin: 2.2em 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--lp-rule);
  padding: 1.3rem 1.5rem 0.9rem;
}

.faqblock h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.9em;
}
.faqblock h2::before { content: none; }

.faqblock details {
  border-bottom: 1px dashed var(--lp-rule);
  padding: 0.8em 0;
}
.faqblock details:last-child { border-bottom: 0; }

.faqblock summary {
  cursor: pointer;
  font-family: var(--font-head, Georgia, serif);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
  list-style: none;
  padding-left: 2.1em;
  position: relative;
}
.faqblock summary::-webkit-details-marker { display: none; }

.faqblock summary::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.45em;
  height: 1.45em;
  display: grid;
  place-items: center;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--accent2);
  border: 1.5px solid var(--accent2);
  border-radius: 2px;
  background: var(--paper);
}
.faqblock details[open] summary::before {
  background: var(--accent2);
  color: var(--paper);
}
.faqblock summary:hover { color: var(--accent); }

.faqblock details p {
  margin: 0.6em 0 0.2em;
  padding-left: 2.3em;
}

/* ---------- fragment: pullquote ---------- */

.pullquote {
  margin: 2.3em 0;
  font-family: var(--font-head, Georgia, serif);
  font-style: italic;
  font-size: 1.42rem;
  line-height: 1.45;
  color: var(--accent2);
  padding: 1.3em 1.2em 1.3em 3.4rem;
  border-top: 2px dashed var(--lp-rule);
  border-bottom: 2px dashed var(--lp-rule);
  position: relative;
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 0.9rem;
  top: 0.35em;
  font-size: 3.4rem;
  line-height: 1;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--lp-indigo-soft);
}

/* ---------- platen footer ---------- */

.platen-foot { margin-top: 2.4rem; }
.platen-foot .perf-rule { margin: 0 0 1.4rem; }

.sheet-foot-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- front page ---------- */

.frontsheet {
  max-width: var(--maxw);
  margin: 0 auto 0.5rem;
}

.frontsheet-lede {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  letter-spacing: 0.005em;
  margin: 0.35em 0 0.55em;
  text-shadow: 0 1px 0 var(--lp-deboss-hi), 0 -1px 1px var(--lp-deboss-lo);
}

.frontsheet-blurb {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5em;
}

/* pressboard — three specimen tickets */

.pressboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: var(--lp-measure);
  margin: 0 auto 2.8rem;
}

.pressboard-item {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.2rem 1.25rem 1.3rem;
  position: relative;
}

.pressboard-item::before {
  content: "";
  position: absolute;
  top: 2.9rem;
  left: 0.7rem;
  right: 0.7rem;
  border-top: 2px dashed var(--lp-rule);   /* perforation under the head */
}

.pressboard-head {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1.1em;
}

.pressboard-item p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.frontsheet-latest { max-width: var(--maxw); margin: 0 auto; }

.latest-head {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: 0.01em;
  margin: 0 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 4px solid var(--ink);
  text-shadow: 0 1px 0 var(--lp-deboss-hi), 0 -1px 1px var(--lp-deboss-lo);
}

/* creed — the standing forme */

.frontsheet-creed {
  max-width: var(--maxw);
  margin: 2.8rem auto 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--lp-rule);
  padding: 1.7rem 1.8rem;
}

.frontsheet-creed-head {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8em;
}

.frontsheet-creed p { margin: 0; color: var(--ink); }

/* ---------- story list / ticket cards ---------- */

.storylist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.ticket {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  --lp-stamp-bg: var(--lp-paper-deep);
  --lp-stamp-ink: var(--muted);
}

.stamp-mint { --lp-stamp-bg: #e0eee3; --lp-stamp-ink: #2e5c42; }
.stamp-lav  { --lp-stamp-bg: #e6e2f2; --lp-stamp-ink: #524874; }

.ticket-body {
  padding: 1.25rem 1.35rem 1.1rem;
  border-top: 4px solid var(--lp-stamp-ink);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.ticket-slugrow {
  margin: 0 0 0.8em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.ticket-seal {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  border-radius: 50%;
  background: var(--lp-stamp-bg);
  border: 1.5px solid var(--lp-stamp-ink);
  box-shadow: inset 0 1px 1px var(--lp-deboss-lo);
}

.ticket-head {
  font-size: 1.42rem;
  line-height: 1.2;
  margin: 0 0 0.45em;
}
.ticket-head a {
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 0 var(--lp-deboss-hi);
}
.ticket-head a:hover { color: var(--accent); }

.ticket-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.ticket-stub {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0.7rem 1.35rem 0.75rem;
  border-top: 2px dashed var(--lp-rule);   /* tear-off stub */
  background: var(--lp-paper-deep);
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* punched notches where the perforation meets the ticket edge */
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  top: -0.5em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.ticket-stub::before { left: -0.55em; }
.ticket-stub::after { right: -0.55em; }

.ticket-crew { color: var(--ink); }

/* ---------- static sheets ---------- */

.static-sheet p { max-width: none; }

.lost-sheet .platen-title { color: var(--accent); }

/* ---------- imprint (footer) ---------- */

.imprint {
  border-top: 5px solid var(--ink);
  margin-top: 1rem;
}

.imprint-frame {
  max-width: var(--lp-measure);
  margin: 1.6rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.imprint-name {
  font-family: var(--font-head, Georgia, serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25em;
  text-shadow: 0 1px 0 var(--lp-deboss-hi), 0 -1px 1px var(--lp-deboss-lo);
}

.imprint-tag {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.imprint-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem 0;
  border-left: 2px dashed var(--lp-rule);
  padding-left: 2rem;
}

.imprint-links a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  width: 100%;
}
.imprint-links a:hover { color: var(--accent); }

.imprint-legal {
  max-width: var(--lp-measure);
  margin: 1.4rem auto 0;
  padding: 1rem 1.25rem 2.2rem;
  border-top: 2px dashed var(--lp-rule);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .pressboard { grid-template-columns: 1fr; gap: 1.2rem; }
  .presshead-locks { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .presshead-locks .regmark { display: none; }
  .platen-head { padding: 1.4rem 1.1rem 1.2rem; }
  .imprint-frame { grid-template-columns: 1fr; gap: 1.2rem; }
  .imprint-links { border-left: 0; padding-left: 0; border-top: 2px dashed var(--lp-rule); padding-top: 1.2rem; }
  .imprint-links a { width: auto; margin-right: 1.4rem; }
  .datatable { display: block; overflow-x: auto; }
  .pullquote { padding-left: 2.6rem; }
  .pullquote::before { left: 0.4rem; }
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .forme-nav, .imprint-links, .regmark, .ticket-seal { display: none; }
  .presshead-lockup, .platen-head, .frontsheet-creed,
  .datatable, .faqblock, .ticket, .ticket-body { border-color: #000; box-shadow: none; }
  .slug { transform: none; }
  a { color: #000; text-decoration: none; }
  .ledegraf, .ticket-stub, .datatable th, .datatable tbody tr:nth-child(even) td { background: none; }
}
