/* umpireclicker.com styles v2.3 (2026-10-04): prototype tag on Model C
   v2.2: Model A / Model B headings
   v2.1: copyright line, cookie banner
   v2.0: mobile menu, hero viewer, baseball details */
:root {
  --stitch: #c8243a;
  --paper: #f7f7f4;
  --panel: #ebeee8;
  --panel-soft: #dfe4dc;
  --ink: #14261f;
  --ink-soft: #53615a;
  --gold: #a97b14;
  --green: #1f5c46;
  --steel: #6b7a75;
  --clay: #9c3a26;
  --line: rgba(20, 38, 31, 0.15);
  --measure: 88ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 82%; }   /* two notches down, like Ctrl+- twice in the browser */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.06rem/1.65 "IBM Plex Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .stat-value, .nav a {
  font-family: "Barlow Condensed", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.02; margin: 0 0 0.4em; font-weight: 700; color: var(--green); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); line-height: 1.08; margin: 0 0 0.7em; color: var(--green); }
section.block h2::after { content: ""; display: block; width: 150px; height: 12px; margin-top: 0.35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='12'%3E%3Cpath d='M0 6H150' stroke='%2314261f' stroke-opacity='.25'/%3E%3Cpath d='M4 2l5 8M20 2l5 8M36 2l5 8M52 2l5 8M68 2l5 8M84 2l5 8M100 2l5 8M116 2l5 8M132 2l5 8' stroke='%23c8243a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
h3 { font-size: 1.35rem; margin: 2em 0 0.4em; color: var(--green); }
p { max-width: var(--measure); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: min(1280px, 94vw); margin-inline: auto; }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 247, 244, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 1.6rem; height: 72px; }
.nav .mark { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.06em; }
.nav .mark .word span { color: var(--gold); }
.nav .mark { display: inline-flex; align-items: center; gap: 0.5rem; }
/* the line under the logo (home pages): what the Umpire Clicker is */
.nav .mark-txt { display: inline-flex; flex-direction: column; line-height: 1.05; }
.nav .tagline { font: 500 0.84rem/1.2 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0.01em; color: var(--ink-soft); white-space: nowrap; margin-top: 2px; }
@media (max-width: 1250px) and (min-width: 901px) { .nav .tagline { display: none; } }
@media (max-width: 520px) { .nav .tagline { white-space: normal; max-width: 210px; font-size: 0.7rem; } }
.nav .ball { width: 1.5rem; height: 1.5rem; flex: none; }
.nav .ball circle { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.nav .ball path { fill: none; stroke: var(--stitch); stroke-width: 1.4; stroke-dasharray: 1.6 1.4; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 0.6rem; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav ul { display: flex; gap: 1.8rem; white-space: nowrap; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 1.35rem; }
.nav .mark { text-decoration: none; color: var(--ink); }
.nav .lang { margin-left: 1.4rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 1rem; }
.nav .lang:hover, .nav .lang:focus-visible { color: var(--gold); border-color: var(--gold); }
/* three languages: EN · FR · ES in one pill, the current one filled */
.nav .langs { margin-left: 1.4rem; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.nav .langs .lang { margin: 0; border: 0; padding: 0.15rem 0.7rem; font-size: 1.1rem; letter-spacing: .04em; }
.nav .langs .lang[aria-current] { background: var(--ink); color: var(--paper); }
.nav .langs .lang[aria-current]:hover { color: var(--paper); }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--gold); }
@media (max-width: 1320px) { .nav li.opt { display: none; } }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav .lang { margin-left: auto; }
  .nav .langs { margin-left: auto; } .nav .langs .lang { margin-left: 0; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 0.6rem 3vw 1.2rem;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(20, 38, 31, 0.08); }
  .nav.open ul { display: flex; }
  .nav ul li a { display: block; padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
  .nav ul li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 3rem; scroll-margin-top: 76px; border-bottom: 1px solid var(--line); }
.hero > .wrap { position: relative; }
.hero-ball { position: absolute; width: min(46vw, 560px); right: -9vw; top: -7vw; opacity: 0.09; pointer-events: none; }
.hero-ball circle { fill: none; stroke: var(--ink); stroke-width: 2; }
.hero-ball .seam { fill: none; stroke: var(--stitch); stroke-width: 2; }
.hero-ball .stitch { fill: none; stroke: var(--stitch); stroke-width: 2.4; stroke-linecap: round; }

/* hero picture viewer */
.viewer { max-width: 560px; margin: 1.4rem auto 0; }
.viewer-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0f1724;
  box-shadow: 0 18px 40px rgba(20, 38, 31, 0.22); touch-action: pan-y; }
.viewer-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.viewer-stage img.on { opacity: 1; }
.viewer-video { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.viewer-video.on { opacity: 1; pointer-events: auto; z-index: 1; }
.viewer-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.viewer-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.viewer-play { position: absolute; left: 0; right: 0; bottom: 9%; margin: 0 auto; width: 88px; height: 62px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); transition: transform .15s ease; }
.viewer-play svg { width: 100%; height: 100%; display: block; }
.viewer-play:hover, .viewer-play:focus-visible { transform: scale(1.08); }
.viewer-video.playing .viewer-play, .viewer-video.playing img { display: none; }
.viewer-arrow { z-index: 2; }
.viewer-thumbs .thumb-video { position: relative; }
.viewer-thumbs .thumb-video::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8%; margin: 0 auto; width: 26px; height: 18px; border-radius: 6px;
  background: #c8243a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 21'%3E%3Cpath d='M20 10.5 12 6v9z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(236, 234, 227, 0.35); background: rgba(15, 23, 36, 0.55); color: #ecEAE3; font-size: 1.9rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.viewer-arrow:hover, .viewer-arrow:focus-visible { background: rgba(15, 23, 36, 0.85); }
.viewer-arrow.prev { left: 10px; } .viewer-arrow.next { right: 10px; }
.viewer-caption { font-size: 0.95rem; color: var(--ink-soft); margin: 0.7rem 0 0; min-height: 3em; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 0.4rem; }
.viewer-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #0f1724; opacity: 0.6; }
.viewer-thumbs button[aria-current="true"] { border-color: var(--stitch); opacity: 1; }
.viewer-thumbs button:hover, .viewer-thumbs button:focus-visible { opacity: 1; }
.viewer-thumbs img { display: block; width: 100%; height: auto; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero .wrap > * { min-width: 0; }
.hero-shot { display: block; width: 100%; height: auto; max-width: 300px; margin: 2.4rem auto 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hero p.lede { font-size: 1.16rem; color: var(--ink); }
.hero p.signature { font-family: "Great Vibes", "Brush Script MT", "Segoe Script", cursive; font-size: 2.6rem; line-height: 1.1;
  color: var(--green); margin: 1.4rem 0 0; transform: rotate(-2deg); transform-origin: left center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.btn { display: inline-block; font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--paper); background: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 0.4rem 1.2rem; }
.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--paper); background: var(--green); }
.kicker { color: var(--steel); font-size: 1.02rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-shot { margin-top: 0; width: 100%; } }

/* ---------- stats strip ---------- */
.stats { border-block: 1px solid var(--line); padding: 1.6rem 0; margin-top: 3rem; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.stat-value { display: block; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section.block { padding: clamp(3.4rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 82px; }
section.block > .wrap { display: grid; grid-template-columns: 6rem 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.step-mark {
  font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: var(--panel-soft); padding-top: 0;
}
.step-mark::before { content: ""; display: block; width: 2.4rem; height: 2.4rem; margin-bottom: 0.7rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 4h32v18L20 36 4 22z' fill='%23fff' stroke='%231f5c46' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.step-mark small { display: block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; color: var(--steel); margin-top: 0.4rem; }
@media (max-width: 760px) { section.block > .wrap { grid-template-columns: 1fr; } .step-mark { display: flex; gap: 0.8rem; align-items: baseline; } .step-mark small { margin: 0; } }

figure { margin: 2rem 0 0; max-width: 420px; }
figure img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 10px; display: block; }
figcaption { font-size: 0.93rem; color: var(--ink-soft); margin-top: 0.6rem; max-width: var(--measure); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 640px; }
.two-up figure { max-width: none; }
figure.large { max-width: 860px; }
figure.large img { max-height: 860px; }
figure.field-fig { max-width: 860px; }
h3.model { font-size: 1.9rem; margin: 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); max-width: 860px; }
h3.model + figure { margin-top: 1rem; }
h3.model + p { margin-top: 1rem; }
p.note { margin-top: .6rem; max-width: 860px; font-size: .95rem; color: var(--ink-soft); font-style: italic; }
h3.model .tag { display: inline-block; vertical-align: middle; margin-left: .5rem; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stitch); border: 1px solid var(--stitch); border-radius: 999px; padding: .05rem .7rem; }
h3.model:has(.status) { display: flex; align-items: flex-start; flex-wrap: wrap; column-gap: .6rem; }
h3.model .status { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-top: .35rem; }
h3.model .status .tag { margin-left: 0; }
h3.model .tag.ok, h3.model .tag.next { text-transform: none; letter-spacing: .02em; font-size: .95rem; line-height: 1.35; }
h3.model .tag.ok { color: #fff; background: var(--green, #1f6b46); border-color: var(--green, #1f6b46); }
h3.model .tag.next { color: var(--ink-soft); border-color: var(--line); background: #fff; }
h3.model .status-next { display: flex; align-items: flex-start; gap: .2rem; padding-left: .55rem; }
h3.model .status-arrow { flex: none; width: 22px; height: 18px; margin-top: .1rem; fill: none; stroke: var(--ink-soft);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  h3.model .tag.ok, h3.model .tag.next { font-size: .85rem; border-radius: 12px; }
}
.field { display: block; width: 100%; height: auto; border-radius: 12px; background: #eef1ea; border: 1px solid var(--line); }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }

dl.specs { display: grid; grid-template-columns: 15rem 1fr; gap: 0.15rem 1.4rem; margin: 1.8rem 0 0; max-width: var(--measure); }
dl.specs dt { color: var(--steel); padding: 0.45rem 0; border-top: 1px solid var(--line); }
dl.specs dd { margin: 0; padding: 0.45rem 0; border-top: 1px solid var(--line); }
@media (max-width: 620px) { dl.specs { grid-template-columns: 1fr; } dl.specs dd { border-top: 0; padding-top: 0; } }

/* footnotes */
sup.ref { font-size: 0.8em; line-height: 0; margin-left: 0.12em; }
sup.ref a { text-decoration: none; font-weight: 500; }
ol.sources { margin: 2.4rem 0 0; padding: 1rem 0 0 1.2rem; border-top: 1px solid var(--line); max-width: var(--measure); font-size: 0.88rem; color: var(--ink-soft); }
ol.sources li { scroll-margin-top: 90px; }
sup.ref a, ol.sources a[href^="#"] { scroll-margin-top: 90px; }

ul.plain { padding-left: 1.15rem; max-width: var(--measure); }
ul.plain li { margin: 0.45rem 0; }

.callout { border-left: 3px solid var(--clay); background: var(--panel); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 2rem 0 0; max-width: var(--measure); }
.callout h3 { margin-top: 0; color: var(--clay); font-size: 1.1rem; }
.callout p { margin-bottom: 0; }

/* tools */
.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tools span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.95rem; color: var(--ink-soft); }

/* timeline */
ol.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); }
ol.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
ol.timeline b { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; color: var(--gold); font-weight: 600; }

footer { padding: 3.5rem 0 4.5rem; background: var(--panel); border-top: 1px solid var(--line); position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14'%3E%3Cpath d='M8 3l6 8' stroke='%23c8243a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x; }
footer .sign { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; }
footer p { color: var(--ink-soft); }
footer .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.linkish { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* cookie banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 3vw calc(1rem + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box { pointer-events: auto; max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--stitch); border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: 0 18px 50px rgba(20, 38, 31, 0.25); }
.consent h2 { font-size: 1.6rem; margin: 0 0 0.3rem; }
.consent h2::after { display: none; }
.consent p, .consent li { font-size: 0.95rem; color: var(--ink-soft); }
.consent p { margin: 0 0 0.6rem; }
.consent details { margin: 0 0 0.8rem; font-size: 0.95rem; }
.consent summary { cursor: pointer; color: var(--green); font-weight: 500; }
.consent ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.consent .btn { cursor: pointer; }

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

/* newsletter form (footer) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.newsletter { max-width: 560px; margin: 0 0 2.2rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.newsletter .nl-title { font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; margin: 0 0 .6rem; color: var(--ink); }
.newsletter .nl-row { display: flex; gap: .5rem; }
.newsletter input[type="email"] { flex: 1 1 auto; min-width: 0; font: inherit; padding: .6rem .8rem; border: 1px solid #b8c0b5; border-radius: 999px; background: var(--paper); color: var(--ink); }
.newsletter input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.newsletter .btn { flex: none; border: 0; cursor: pointer; }
.newsletter .btn:disabled { opacity: .6; cursor: wait; }
.newsletter .nl-msg { margin: .5rem 0 0; min-height: 1.4em; font-size: .95rem; }
.newsletter .nl-msg.good { color: var(--green); font-weight: 500; }
.newsletter .nl-msg.bad { color: var(--clay); }
.newsletter .nl-note { margin: .3rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.newsletter .nl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .newsletter .nl-row { flex-direction: column; } .newsletter .btn { width: 100%; } }
/* newsletter band, between the hero and the History section: one slim line */
.nl-band { padding: .9rem 0; border-bottom: 1px solid var(--line); background: var(--panel); scroll-margin-top: 82px; }
.nl-band .newsletter { margin: 0 auto; max-width: 860px; padding: 0; background: none; border: 0; border-radius: 0;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2rem; }
.nl-band .newsletter .nl-title { margin: 0; font-size: 1.35rem; white-space: nowrap; }
.nl-band .newsletter input[type="email"] { padding: .45rem .9rem; background: #fff; }
.nl-band .newsletter .btn { padding: .4rem 1.1rem; font-size: 1.1rem; }
.nl-band .newsletter .nl-msg { grid-column: 2; margin: .3rem 0 0; min-height: 0; font-size: .9rem; }
.nl-band .newsletter .nl-msg:empty { display: none; }
@media (max-width: 640px) {
  .nl-band .newsletter { grid-template-columns: 1fr; row-gap: .5rem; }
  .nl-band .newsletter .nl-msg { grid-column: 1; }
  .nl-band .newsletter .nl-row { flex-direction: row; }
  .nl-band .newsletter .btn { width: auto; }
}

/* robot trap link: never visible, never reachable with the keyboard */
.trap-link { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
