/* zerdastudio.com: one stylesheet for the whole site. No JavaScript, no external requests. */

@font-face {
  font-family: "Zerda Schola";
  src: url("/assets/fonts/zerda-schola.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --surface: #111111;
  --line: #3a3127;
  --gold: #cc9440;
  --gold-soft: #8a6430;
  --text: #ede6da;
  --muted: #b5ab9c;
  --serif: "Zerda Schola", "Century Schoolbook", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { left: var(--gutter); top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 1rem + 2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }

p { margin: 0 0 1em; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-fox { width: auto; height: 32px; }
.brand-fox-wide { display: none; }
.brand-name { width: auto; height: 18px; }
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; padding: 8px 0; }
.site-nav a:hover { text-decoration: underline; }

/* Buttons */

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 4px;
}
.button:hover { background: var(--text); color: var(--black); }

/* Opening */

.opening { position: relative; max-width: 1600px; margin: 0 auto; background: var(--black); }
.opening-picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 100% 50%;
}
.opening-text { padding: 8px 0 48px; }
.opening-text p { color: var(--text); font-size: 1.125rem; max-width: 34em; }
.opening-text .button { margin-top: 8px; }

/* Sections */

.section { padding: 64px 0; border-top: 1px solid var(--line); }

.proof-grid { display: grid; gap: 32px; }
.proof-lead { max-width: 40em; }

.bars { margin: 0; padding: 0; list-style: none; }
.bars li { margin: 0 0 20px; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.bar-count { font-family: var(--serif); color: var(--gold); font-size: 1.5rem; line-height: 1; }
.bar-track { height: 14px; background: var(--surface); border: 1px solid var(--line); }
.bar-fill { height: 100%; background: var(--gold); }
.bar-fill.notes { background: var(--gold-soft); }
.bar-fill.back { background: var(--muted); }
/* Shares of 476 verdicts: 190, 220, 66. Change these with the numbers. */
.w-190 { width: 39.9%; }
.w-220 { width: 46.2%; }
.w-66 { width: 13.9%; }
.bars-total { color: var(--muted); font-size: 0.95rem; margin: 0; }

.limit {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 0;
  color: var(--text);
}
.limit-title { font-weight: 600; color: var(--gold); margin-bottom: 0.4em; }
.limit p:last-child { margin-bottom: 0; }

.who-grid { display: grid; gap: 24px; align-items: center; }
.who-fox { width: 96px; height: auto; }
.who-grid p { max-width: 38em; margin: 0; }

.diagnosis p { max-width: 40em; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 16px; padding: 0; list-style: none; }
.site-footer p { color: var(--muted); margin: 0 0 6px; }

/* Wider screens */

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .brand-fox { display: none; }
  .brand-fox-wide { display: block; height: 40px; width: auto; }
  .brand-name { height: 24px; }
  .site-header .wrap { min-height: 76px; }
  .proof-grid { grid-template-columns: 3fr 2fr; align-items: start; gap: 48px; }
  .who-grid { grid-template-columns: 140px 1fr; gap: 40px; }
  .who-fox { width: 120px; }
}

@media (min-width: 960px) {
  .opening-picture img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
  .opening-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
  }
  .opening-text .wrap > div { max-width: 44%; }
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
