/* The Axonis Ledger — front-page & section-front layout.
   Pairs with axonis.css (palette, fonts, full-width chrome). This file styles only the
   md_in_html scaffolding emitted by build_spec_site._homepage / _section_page: a masthead,
   a lead story, ranked headline columns with standfirsts, and a Latest Builds rail.
   White stock / black ink / blackletter nameplate — consistent with the rest of the site. */

.gz-paper {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

/* ── masthead / nameplate ─────────────────────────────────────────────────── */
.gz-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ax-rule-strong);
}
.gz-title {
  font-family: var(--ax-name);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0.01em;
}
.gz-ear {
  font-family: var(--ax-kicker);
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--md-default-fg-color--light);
  padding-bottom: 0.5rem;
}
.gz-ear-r { text-align: right; }

.gz-masthead-sub { grid-template-columns: 1fr; }
.gz-masthead-sub .gz-title { font-size: 2.8rem; }

/* ── dateline rule ────────────────────────────────────────────────────────── */
.gz-dateline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.28rem 0;
  margin-bottom: 1.1rem;
  border-top: 1px solid var(--ax-rule-strong);
  border-bottom: 3px double var(--ax-rule-strong);
  font-family: var(--ax-kicker);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--md-default-fg-color--light);
}
.gz-dateline .gz-motto {
  font-family: var(--ax-body);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--md-default-fg-color);
}

/* ── lead story (above the fold) ──────────────────────────────────────────── */
.gz-lead {
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 3px double var(--ax-rule-strong);
  text-align: center;
}
.gz-lead .gz-headline {
  font-size: 3.2rem;
  line-height: 1.04;
  margin: 0.1rem auto 0.4rem !important;
  max-width: 30ch;
}
.gz-lead .gz-deck {
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 auto 0.6rem;
  text-align: center;
}
.gz-lead .gz-kicker { justify-content: center; }

/* ── shared story atoms ───────────────────────────────────────────────────── */
.gz-kicker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--ax-kicker);
  font-weight: 700;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--md-accent-fg-color);
  margin: 0 0 0.15rem;
}
.gz-headline {
  font-family: var(--ax-head) !important;
  font-weight: 900;
  letter-spacing: -0.008em;
  line-height: 1.12;
  margin: 0 0 0.25rem !important;
  padding: 0 !important;
  border: none !important;
}
.gz-headline a { color: var(--md-default-fg-color) !important; text-decoration: none; }
.gz-headline a:hover { color: var(--md-accent-fg-color) !important; }
.gz-deck {
  font-family: var(--ax-body);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
  margin: 0;
  text-align: left;
}
.gz-readmore, .gz-more {
  font-family: var(--ax-kicker);
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}
.gz-readmore a, .gz-more a { color: var(--md-accent-fg-color); text-decoration: none; }
.gz-readmore a:hover, .gz-more a:hover { text-decoration: underline; }
.gz-backtop { margin: 0 0 1rem; }

/* ── the column block: tiers side by side, ruled like a broadsheet ────────── */
.gz-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
}
.gz-section {
  padding: 0 1.3rem;
  border-left: 1px solid var(--ax-rule);
}
.gz-section:first-child { padding-left: 0; border-left: none; }
.gz-section-head {
  font-family: var(--ax-head) !important;
  font-weight: 900;
  font-size: 1.5rem !important;
  margin: 0 0 0.1rem !important;
  padding: 0 0 0.3rem !important;
  border: none !important;
  border-bottom: 2px solid var(--ax-rule-strong) !important;
}
.gz-section-head a { color: var(--md-default-fg-color) !important; text-decoration: none; }
.gz-section-head a:hover { color: var(--md-accent-fg-color) !important; }
.gz-count {
  font-family: var(--ax-body);
  font-style: italic;
  font-size: 0.66rem;
  color: var(--md-default-fg-color--lighter);
  margin: 0.25rem 0 0.8rem;
}
.gz-story {
  padding: 0.7rem 0;
  border-top: 1px solid var(--ax-rule);
}
.gz-story:first-of-type { border-top: none; padding-top: 0.2rem; }

/* ── Latest Builds rail — agate set, the paper's "breaking" column ────────── */
.gz-builds .gz-section-head { border-bottom-color: var(--md-accent-fg-color) !important; }
.gz-builds ul { list-style: none; margin: 0; padding: 0; }
.gz-builds li {
  font-family: var(--ax-body);
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 0.4rem 0;
  border-top: 1px dotted var(--ax-rule);
  color: var(--md-default-fg-color--light);
}
.gz-builds li code {
  font-size: 0.62rem;
  color: var(--md-default-fg-color--lighter);
}

/* ── section front page: every story, flowing newspaper columns ───────────── */
.gz-section-paper .gz-feed {
  column-width: 19rem;
  column-gap: 2.4rem;
  column-rule: 1px solid var(--ax-rule);
}
.gz-section-paper .gz-story {
  break-inside: avoid;
  padding: 0.8rem 0;
}
.gz-section-paper .gz-headline { font-size: 1.15rem; }

/* keep the front page readable when the screen narrows */
@media (max-width: 50rem) {
  .gz-title { font-size: 2.8rem; }
  .gz-lead .gz-headline { font-size: 2.2rem; }
  .gz-section { border-left: none; padding: 0; }
  .gz-section + .gz-section { border-top: 1px solid var(--ax-rule); padding-top: 1rem; margin-top: 1rem; }
}
