/* ============================================================
   FIERI — long-form document layout for the legal pages.
   Tokens, base, and site chrome come from fieri.css; this file
   only shapes the masthead and the reading column.
   ============================================================ */

:root {
  --surface: var(--onyx-raised);
  --surface-high: color-mix(in srgb, var(--ink) 8%, var(--onyx-raised));
  --paper: var(--ink);
  --muted: var(--ink-2);
  --faint: var(--ink-3);
  --champagne: var(--ember-hi);
  --divider: var(--border-2);
  --measure: 74ch;
}

/* Long-form reading size; every rem below keys off it. */
html {
  font-size: 17px;
  line-height: 1.65;
}

/* Top-centre glow echoing the home hero's centred ember light. */
body {
  background:
    radial-gradient(
      ellipse 64rem 30rem at 50% -8rem,
      color-mix(in srgb, var(--ember) 13%, transparent),
      transparent
    ),
    var(--onyx);
}

main {
  margin: 0 auto;
  max-width: 76rem;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.1rem, 4vw, 3rem) 5rem;
  scroll-margin-top: 74px;
}

/* The reading column sits on the same centre axis as the home page. */
.masthead,
article {
  margin-inline: auto;
  max-width: var(--measure);
}

main a {
  color: var(--champagne);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--champagne) 50%, transparent);
  text-underline-offset: 0.2em;
}

main a:hover {
  color: var(--paper);
}

.masthead {
  border-bottom: 1px solid var(--divider);
  margin-bottom: 2.75rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.updated,
.kicker,
th {
  font-family: var(--sans);
  letter-spacing: 0.055em;
}

.eyebrow {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  margin: 0 auto;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 400;
  margin: 3.5rem 0 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 0.65rem;
}

.updated {
  color: var(--faint);
  font-size: 0.72rem;
  margin: 1.4rem 0 0;
  text-transform: uppercase;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

p,
li,
td {
  color: var(--muted);
}

.lede {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-optical-sizing: auto;
  line-height: 1.45;
  margin-bottom: 2.5rem;
}

strong {
  color: var(--paper);
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.65rem;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-row);
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
}

.notice p:first-child,
.notice h2:first-child,
.notice h3:first-child {
  margin-top: 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  color: var(--paper);
  display: block;
  min-height: 10.5rem;
  padding: 1.25rem;
  text-decoration: none;
}

.card:hover {
  background: var(--surface-high);
  border-color: var(--ember);
}

.card .kicker {
  color: var(--ember);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.2;
}

.card span:last-child {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 0.7rem;
}

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--divider);
  padding: 0.9rem 1rem 0.9rem 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--paper);
  font-size: 0.7rem;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  main {
    padding-top: 3.5rem;
    scroll-margin-top: 66px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}

@media print {
  :root {
    --onyx: #ffffff;
    --onyx-raised: #ffffff;
    --ink: #18130f;
    --ink-2: #3f3932;
    --ink-3: #5f574e;
    --ember: #7a421d;
    --ember-hi: #653719;
    --ember-lo: #6f3d1b;
    --border: #d8d0c5;
    --border-2: #cbc3b8;
  }

  body {
    background: #ffffff;
  }

  .site-header nav,
  .skip-link,
  footer nav {
    display: none;
  }

  main {
    padding-top: 2rem;
  }

  .site-header {
    position: static;
  }

  a {
    color: inherit;
  }
}
