:root {
  --navy: #122b47;
  --navy-deep: #0d2038;
  --gold: #c9a227;
  --gold-soft: #e6c766;
  --cream: #faf6ec;
  --paper: #fffdf6;
  --ink: #232a36;
  --muted: #5b6470;
  --red: #b3392f;
  --shadow: 0 12px 40px rgba(13, 32, 56, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, 0.04) 0 2px, transparent 2px 22px),
    var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3, .cert-top, .press-meta {
  font-family: 'Libre Baskerville', Georgia, serif;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

section { margin: 4.5rem 0; }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.footnote { font-size: 0.78rem; color: var(--muted); font-style: italic; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(13, 32, 56, 0.94);
  backdrop-filter: blur(6px);
  color: var(--cream);
}

.brand {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.navlinks { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.navlinks a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.85;
}

.navlinks a:hover { opacity: 1; color: var(--gold-soft); }

.hero { padding: 4rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.gold { color: var(--gold); }

.hero-sub { font-size: 1.15rem; margin-bottom: 0.75rem; }

.hero-sub-note { color: var(--muted); }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }

.hero-fact { font-size: 0.9rem; color: var(--muted); }

.hero-photo { position: relative; }

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
  outline: 1px solid rgba(13, 32, 56, 0.1);
}

.hero-photo figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }

.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }

.btn-ghost:hover { background: rgba(18, 43, 71, 0.06); }

.btn-red { background: var(--red); color: #fff; }

.btn-red:hover { background: #c9493f; }

.btn.big { font-size: 1.1rem; padding: 1rem 2.2rem; }

.paper {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2.75rem;
  border: 1px solid rgba(13, 32, 56, 0.08);
}

.paper h2 { margin-top: 0; }

.press-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.endors p { margin-bottom: 0.9rem; }

.resolve { border-left: 3px solid var(--gold); padding-left: 1rem; }

.ordered { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.05rem; }

.ordered-note { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.stamp {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  transform: rotate(8deg);
  border: 3px solid var(--red);
  color: var(--red);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  opacity: 0.75;
  text-align: center;
  line-height: 1.35;
}

.stamp2 { top: auto; bottom: 1.4rem; right: 2.2rem; transform: rotate(-7deg); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 680px;
}

.compare th {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--navy);
  color: var(--cream);
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 1rem;
}

.compare td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(13, 32, 56, 0.08);
  vertical-align: top;
}

.compare tbody tr:nth-child(odd) { background: rgba(201, 162, 39, 0.05); }

.compare td.vs {
  width: 2.5rem;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
}

.compare thead th.vs { color: var(--gold-soft); }

.section-verdict {
  margin-top: 1rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  color: var(--navy);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.quote {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 4px solid var(--gold);
  transition: transform 0.15s ease;
}

.quote:hover { transform: translateY(-4px); }

.quote p { margin-bottom: 0.9rem; font-size: 0.98rem; }

.quote cite {
  font-size: 0.8rem;
  color: var(--navy);
  font-style: normal;
  font-family: 'Libre Baskerville', Georgia, serif;
}

.witness-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.award {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  cursor: default;
  transition: transform 0.15s ease;
}

.award:hover, .award:focus-visible { transform: translateY(-4px); }

.award strong {
  display: block;
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--gold-soft);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.award span { display: block; font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.75rem; }

.award p {
  font-size: 0.85rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease;
  color: var(--gold-soft);
  font-style: italic;
}

.award:hover p, .award:focus-visible p, .award:focus-within p {
  opacity: 1;
  max-height: 10rem;
}

@media (hover: none) {
  .award p { opacity: 1; max-height: 10rem; }
}

.case-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.case-form input {
  flex: 1;
  min-width: 260px;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--paper);
}

.case-form input:focus { outline: 3px solid rgba(201, 162, 39, 0.5); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.chips button {
  border: 1px solid rgba(18, 43, 71, 0.3);
  background: transparent;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chips button:hover { background: rgba(201, 162, 39, 0.18); border-color: var(--gold); }

.case-result {
  margin-top: 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 720px;
}

.case-cite {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.case-holding { font-style: italic; margin-bottom: 0.5rem; }

.case-note { font-size: 0.78rem; color: var(--muted); }

.inbox-section {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
}

.inbox-section h2 { color: var(--cream); }

.inbox-caption { color: rgba(250, 246, 236, 0.8); max-width: 560px; margin: 0 auto 1.5rem; }

.inbox-caption .footnote { color: rgba(250, 246, 236, 0.55); }

.counter {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 4px 24px rgba(179, 57, 47, 0.35);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.inbox-zero { font-size: 1.05rem; color: var(--gold-soft); opacity: 0; transition: opacity 0.8s ease; }

.inbox-zero.show { opacity: 1; }

#overruled { text-align: center; }

#overruled .section-lede { margin-left: auto; margin-right: auto; }

.stamp-anim {
  margin-top: 1.75rem;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-word {
  display: inline-block;
  border: 5px solid var(--red);
  color: var(--red);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transform: rotate(-6deg) scale(1);
  animation: stamp-in 0.35s cubic-bezier(0.2, 2.4, 0.4, 1);
  opacity: 0.9;
}

@keyframes stamp-in {
  0% { transform: rotate(-6deg) scale(3); opacity: 0; }
  100% { transform: rotate(-6deg) scale(1); opacity: 0.9; }
}

.overruled-note { margin-top: 0.75rem; font-style: italic; color: var(--navy); }

.overruled-note:empty { display: none; }

.overruled-disclaimer { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }

.cert-section { text-align: center; }

.cert-section .section-lede { margin-left: auto; margin-right: auto; }

.certificate { margin-top: 2rem; }

.cert-border {
  background: var(--paper);
  border: 10px double var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.cert-border::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  pointer-events: none;
}

.cert-top {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cert-border h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.cert-body { margin-bottom: 1rem; font-size: 0.95rem; }

.cert-body strong { color: var(--navy); }

.cert-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.cert-sig {
  font-family: 'Libre Baskerville', Georgia, serif;
  text-align: left;
  font-size: 0.9rem;
}

.seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold) 60%, #8a6d14);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(138, 109, 20, 0.4);
  flex-shrink: 0;
}

.cert-date { font-size: 0.8rem; color: var(--muted); text-align: left; }

.cert-actions { display: flex; justify-content: center; }

footer {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  margin-top: 4rem;
}

footer strong { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.2rem; }

.fine {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(250, 246, 236, 0.65);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.credit {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(250, 246, 236, 0.75);
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-soft);
  text-decoration: none;
}

.credit img { border-radius: 6px; vertical-align: middle; }

.credit a:hover strong { text-decoration: underline; }

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .paper { padding: 2rem 1.5rem; }
  .stamp { position: static; display: inline-block; margin-top: 1rem; }
  .stamp2 { display: none; }
  .cert-sign { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .quote, .award { transition: none; }
  .stamp-word { animation: none; }
}

@media print {
  body { background: #fff; }
  .topbar, .hero, section:not(#certificate), footer, #confetti, .cert-actions { display: none !important; }
  #certificate { display: block; margin: 0; }
  .certificate { margin: 0; }
  .cert-border { box-shadow: none; max-width: none; }
}
