/* The Neighbourhood Gazette — broadsheet stylesheet.
   Minimal baseline so templates render; full styling lands later. */

@font-face {
  font-family: "Lay Grotesk";
  src: url("/fonts/laygrotesk-trial-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("/fonts/laygrotesk-trial-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lay Grotesk";
  src: url("/fonts/laygrotesk-trial-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fafaf7;
  --rule: #222;
  --muted: #666;
  --accent: #a3331e;
  --serif: "Lay Grotesk", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lay Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.masthead {
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

header.masthead .title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

header.masthead .coordinates {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.35rem;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3em; }
h3 { font-size: 1.15rem; }

p, li { max-width: var(--measure); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2em 0 0.2em 1em;
  margin: 1.2em 0;
  color: var(--muted);
  font-style: italic;
}

code, pre {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(0,0,0,0.04);
}

pre {
  padding: 1em;
  overflow-x: auto;
  border-left: 3px solid var(--rule);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25em 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

th { border-bottom: 2px solid var(--rule); }

.byline, .dateline, .folio {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.theme, .run-sheet, .calendar {
  margin: 2rem 0;
}

@media (max-width: 640px) {
  body { padding: 1.5rem 1rem 3rem; font-size: 17px; }
  header.masthead .title { font-size: 1.8rem; }
}

/* ── Archive ledger (homepage) ─────────────────────────────── */
.archive-motto {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0.5rem 0 2.5rem;
}

.edition-list { margin: 2rem 0; }

.edition {
  display: block;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.edition:last-child { border-bottom: 1px solid var(--rule); }
.edition:hover { background: rgba(0, 0, 0, 0.02); }

.edition .quarter {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.edition .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.15em 0 0.25em;
}
.edition .meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}
.edition .dispatches {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.empty-state {
  text-align: center;
  margin: 4rem auto;
  max-width: 46ch;
}
.empty-state .fleuron {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.empty-state p { margin: 0 auto; color: var(--muted); }

footer.colophon {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 4px double var(--rule);
  text-align: center;
}
