/* Goliath-Shield public site. Navy and gold come from the product mark;
   the page is court paper: flat, ruled, set in a book face and a forms face. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #0b1f4b;
  --navy-deep: #071535;
  --gold: #e3a62b;
  --gold-ink: #8a5d07;
  --paper: #f3f5f9;
  --sheet: #ffffff;
  --ink: #0a1630;
  --ink-soft: #46526b;
  --rule: #c9d1df;
  --stamp: #b3261e;
  --ok: #1d6b45;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

/* Header */
.top { background: var(--navy-deep); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 42px; height: 41px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top nav a { color: #dbe3f3; text-decoration: none; font-size: 0.97rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-block; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border: 2px solid var(--navy); border-radius: 4px; background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: #f0b740; color: var(--navy-deep); }
.btn.quiet { background: transparent; color: var(--navy); }
.btn.quiet:hover { background: #e4e9f2; color: var(--navy); }
.on-navy .btn.quiet { color: #fff; border-color: #6f82ad; }
.on-navy .btn.quiet:hover { background: #142a5e; color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.fine { font-size: 0.9rem; color: var(--ink-soft); }
.on-navy .fine { color: #b9c5de; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 64px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: end; }
.hero h1 { color: #fff; }
.hero .lede { color: #cfd9ee; margin-top: 20px; }
.hero-copy { padding-bottom: 64px; }

/* The served paper: the thing the visitor is holding when they arrive. */
.paper {
  background: #fffef9; color: #1b1b1b; font-family: var(--serif); font-size: 0.95rem; line-height: 1.45;
  padding: 30px 30px 0; border: 1px solid #d8d4c4; border-bottom: 0; position: relative;
  transform: rotate(-1.4deg) translateY(10px); transform-origin: bottom left;
  box-shadow: 0 -2px 0 #e9e5d6, 18px 0 40px rgba(3, 10, 30, 0.45);
}
.paper .court { text-align: center; font-weight: 600; letter-spacing: 0.02em; }
.paper .caption { display: grid; grid-template-columns: 1fr auto; gap: 14px; border-top: 1px solid #1b1b1b; border-bottom: 1px solid #1b1b1b; margin: 14px 0; padding: 10px 0; }
.paper .caption div:last-child { border-left: 1px solid #1b1b1b; padding-left: 14px; }
.paper h2 { font-size: 1.25rem; text-align: center; margin: 4px 0 10px; letter-spacing: 0.08em; }
.paper p { max-width: none; margin-bottom: 0.7em; }
.paper mark { background: #ffe9a8; padding: 0 2px; }
.paper .cut { height: 46px; background: linear-gradient(#fffef9, rgba(255, 254, 249, 0)); }
.stamp {
  position: absolute; right: 26px; top: 172px; transform: rotate(9deg);
  border: 3px solid var(--stamp); color: var(--stamp); font: 700 0.86rem var(--sans); letter-spacing: 0.06em;
  padding: 6px 10px; border-radius: 3px; background: rgba(255, 254, 249, 0.85); text-align: center;
}
.found { background: var(--sheet); color: var(--ink); font-family: var(--sans); font-size: 0.9rem; border-left: 5px solid var(--gold); padding: 14px 16px; margin: 6px -30px 0; box-shadow: 0 -8px 24px rgba(3, 10, 30, 0.18); position: relative; }
.found strong { display: block; font-size: 0.82rem; color: var(--gold-ink); margin-bottom: 6px; }
.found ul { list-style: none; margin: 0; padding: 0; }
.found li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid #e6eaf1; }
.found li span:last-child { color: var(--ink-soft); white-space: nowrap; }

/* Sections */
section { padding: 76px 0; }
section.sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.navy { background: var(--navy); color: #fff; }
section.navy h2, section.navy h3 { color: #fff; }
section.navy p { color: #cfd9ee; }
.head { margin-bottom: 38px; }
.head p { margin-top: 14px; }

/* Steps: a real sequence, so they are numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.steps li { counter-increment: s; padding: 22px 24px 6px 0; border-right: 1px solid var(--rule); margin-right: 24px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li::before { content: counter(s); font: 600 2.6rem/1 var(--serif); color: var(--gold-ink); display: block; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); margin-top: 8px; }

/* Free / paid ledger */
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); background: var(--sheet); }
.ledger > div { padding: 30px; }
.ledger > div + div { border-left: 1px solid var(--rule); }
.ledger h3 { margin-bottom: 4px; }
.ledger .tag { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 28px; border-top: 1px solid #e6eaf1; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
section.navy .ticks li { border-top-color: #24397a; }
section.navy .ticks li::before { border-color: var(--gold); }

/* Two-up media rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.row + .row { margin-top: 64px; }
.row h2 { margin-bottom: 14px; }
.row.flip > :first-child { order: 2; }
.shot { border: 1px solid var(--rule); background: #000; }
.shot img, .shot video { width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; }
section.navy figcaption { color: #b9c5de; }

/* Plain two-column facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.facts > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.facts p { color: var(--ink-soft); margin: 6px 0 0; }
section.navy .facts > div { border-top-color: #24397a; }
section.navy .facts p { color: #cfd9ee; }

/* Chess projection strip (attorney page) */
.moves { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #24397a; }
.moves li { counter-increment: m; padding: 14px; border-right: 1px solid #24397a; border-bottom: 1px solid #24397a; font-size: 0.9rem; color: #dbe3f3; min-height: 108px; }
.moves li:nth-child(5n) { border-right: 0; }
.moves li:nth-child(n+6) { border-bottom: 0; }
.moves li::before { content: "Step " counter(m); display: block; font: 600 0.8rem var(--sans); color: var(--gold); margin-bottom: 6px; }
.moves .k { display: block; font-size: 0.78rem; color: #9fb0d6; margin-top: 6px; }

/* Notices */
.note { border-left: 5px solid var(--gold); background: #fff8e6; padding: 16px 18px; margin: 22px 0; }
.note p:last-child { margin-bottom: 0; }
.note.red { border-left-color: var(--stamp); background: #fdeeed; }

/* Long-form pages */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc ul, .doc ol { padding-left: 22px; max-width: 66ch; }
.doc li { margin-bottom: 8px; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: #e7ebf3; padding: 1px 5px; border-radius: 3px; }
.sha { word-break: break-all; }

/* Footer */
footer { background: var(--navy-deep); color: #b9c5de; padding: 44px 0; font-size: 0.93rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer a { color: #dbe3f3; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer p { max-width: 46ch; }
footer strong { color: #fff; font-weight: 600; display: block; margin-bottom: 8px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero .wrap, .row, .ledger, .facts, footer .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 36px; }
  .row { gap: 24px; } .row.flip > :first-child { order: 0; }
  .ledger > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .moves { grid-template-columns: repeat(2, 1fr); }
  .moves li, .moves li:nth-child(5n) { border-right: 1px solid #24397a; border-bottom: 1px solid #24397a; }
  .moves li:nth-child(2n) { border-right: 0; }
  section { padding: 52px 0; }
  .top nav { margin-left: 0; gap: 16px; padding-bottom: 12px; }
  .paper { padding: 22px 20px 0; } .found { margin: 6px -20px 0; }
  .stamp { top: 150px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
