/* epoch11.app front page, privacy and terms (homepage/, v2 2026-10-29: country index map, contact form; v3 2026-11-02: globe banner,
   About, Data and Use cases pages; a new file name so browsers fetch it fresh; v4 2026-11-03: accessibility fixes for WCAG 2.1 AA,
   see docs/accessibility_review_2026-11-03.md and the block at the end). Same colours and type as the map (src/styles.css). */
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(space-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(space-mono-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(inter-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg: #0C1117;
  --raised: #121A23;
  --line: rgba(255, 255, 255, 0.10);
  --text: #d6dde5;
  --muted: #9aa5b1;
  --head: #ffffff;
  --cyan: #00F0FF;
  --amber: #FFB300;
  --land: #1f2a36;
  --land-line: #0C1117;
  --static: #38BDF8;
  --restricted: #A78BFA;
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8FAFC;
    --raised: #FFFFFF;
    --line: #E2E8F0;
    --text: #1E293B;
    --muted: #64748B;
    --head: #0F172A;
    --cyan: #0E7490;
    --amber: #B45309;
    --land: #dbe2ea;
    --land-line: #F8FAFC;
    --static: #0369A1; /* v4: was #0284C7, 4.1:1 on white; text needs 4.5:1 */
    --restricted: #7C3AED;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--cyan); overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--head); font-family: var(--mono); line-height: 1.25; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 18px 16px; }
.brand { color: var(--head); font: 700 17px var(--mono); letter-spacing: 4px; text-decoration: none; }
.brand b { color: var(--amber); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--head); }

/* The banner (Bailey 2026-11-02, after a photo of Europe at night from orbit): North America from orbit at night, where
   the lights are the oil and gas wells on the map (scripts/build_home_banner_globe_v1.py). The text sits on the starry sky. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #03060d; }
.hero::before { content: ''; position: absolute; inset: 0; background: #03060d url(banner_globe_gold_v3.jpg) 70% 60% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,6,13,.55) 0%, rgba(3,6,13,0) 45%), linear-gradient(90deg, rgba(3,6,13,.7) 0%, rgba(3,6,13,.35) 40%, rgba(3,6,13,0) 65%); }
.hero-inner { min-height: clamp(360px, 46vw, 560px); }
.hero.slim .hero-inner { min-height: 0; padding: 40px 16px 44px; }
.hero.slim::before { background-position: 62% 92%; opacity: .75; }
.hero .top nav a[aria-current] { color: #FFB300; }
.hero > * { position: relative; z-index: 1; }
.hero .top .brand, .hero .top nav a { color: #fff; }
.hero .top .brand b { color: #FFB300; }
.hero-inner { max-width: 1040px; margin: 0 auto; padding: 56px 16px 64px; color: #e6ecf2; }
.hero h1 { max-width: 760px; margin: 0 0 16px; color: #fff; font-size: clamp(28px, 5vw, 46px); }
.hero p { max-width: 640px; margin: 0 0 28px; font-size: 18px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 26px; background: #FFB300; color: #0C1117; font: 700 15px var(--mono); letter-spacing: 1.5px; text-decoration: none; }
.btn:hover { background: #ffc94d; }
.hero .sub { margin: 14px 0 0; color: #b9c2cd; font-size: 14px; }

.month { max-width: 1040px; margin: 0 auto; padding: 28px 16px 0; }
.month h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: .5px; }
.month h2 span { display: block; margin-top: 2px; color: var(--muted); font: 400 13px var(--sans); letter-spacing: 0; }
.month .note { margin: 10px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.stat strong { display: block; color: var(--head); font: 700 21px var(--mono); white-space: nowrap; }
.stat span { color: var(--muted); font-size: 13.5px; }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 48px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 32px; }
main h2 { margin: 36px 0 10px; font-size: 18px; letter-spacing: .5px; }
main ul { padding-left: 20px; }
main li { margin: 4px 0; }
.note { color: var(--muted); font-size: 14px; }

/* Privacy and terms */
.doc { max-width: 760px; }
.doc h1 { margin: 20px 0 6px; font-size: 26px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 16px; }
.doc .short { padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.doc .caps { font-size: 14px; }

footer { border-top: 1px solid var(--line); }
footer div { max-width: 1040px; margin: 0 auto; padding: 20px 16px 32px; color: var(--muted); font-size: 13.5px; }
footer a { color: var(--muted); }

/* Where we have data: the country index map and its card */
.countries h2 { margin-top: 36px; margin-bottom: 6px; }
.totals { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.totals strong { color: var(--head); font-family: var(--mono); }
.world-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
@media (max-width: 760px) { .world-wrap { grid-template-columns: 1fr; } }
.world-map { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.world { display: block; width: 100%; height: auto; }
.world path { stroke: var(--land-line); stroke-width: .5; stroke-linejoin: round; cursor: pointer; }
.world path:hover, .world path.picked { stroke: var(--head); stroke-width: 1.2; }
.c-none { fill: var(--land); }
.c-monthly { fill: var(--amber); fill-opacity: .85; }
.c-static { fill: var(--static); fill-opacity: .7; }
.c-restricted { fill: var(--restricted); fill-opacity: .45; }
.world-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.wc-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.wc-key i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.k-monthly { background: var(--amber); } .k-static { background: var(--static); } .k-restricted { background: var(--restricted); opacity: .7; } .k-none { background: var(--land); border: 1px solid var(--line); }
.world-card h3 { margin: 4px 0 2px; font-size: 17px; }
.wc-status { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.wc-status.s-monthly { color: var(--amber); } .wc-status.s-static { color: var(--static); } .wc-status.s-restricted { color: var(--restricted); }
.world-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 8px; font-size: 14.5px; }
.world-card dd { margin: 0; color: var(--head); font: 700 14.5px var(--mono); text-align: right; }

/* Get in touch */
.contact { max-width: 620px; }
.contact form { display: grid; gap: 12px; }
.contact label { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.contact input, .contact textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text); font: 15px var(--sans); }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.contact .btn { justify-self: start; border: 0; cursor: pointer; }
.contact .gotcha { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 14px; }
/* Shown after a form post without scripts: the worker sends the browser back to #contact-sent. */
.sent-note { display: none; margin: 0; font-size: 14px; }
.sent-note:target { display: block; }

/* About, Data and Use cases pages (2026-11-02) */
.page { max-width: 1040px; }
.page > p, .page > .person, .page > .callout, .page > section > p { max-width: 820px; }
.page h2 { margin-top: 44px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--head); max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: #FFB300; font: 700 12px var(--mono); letter-spacing: 3px; text-transform: uppercase; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; margin-top: 28px; }
@media (max-width: 620px) { .person { grid-template-columns: 1fr; } }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.person h2 { margin: 0 0 2px; }
.person .role { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 14px; }
.card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: .3px; }
.card p { margin: 0; font-size: 14.5px; }
.callout { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--raised); }
.callout ol { margin: 8px 0 0; padding-left: 20px; }
.callout li { margin: 6px 0; }
code { font: 13.5px var(--mono); }
.dl-group { margin-top: 28px; }
.dl-group h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .5px; }
.dl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dl th { padding: 6px 10px; color: var(--muted); font: 400 12.5px var(--sans); text-align: right; border-bottom: 1px solid var(--line); }
.dl th:first-child, .dl td:first-child { text-align: left; }
.dl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl td:first-child { white-space: normal; color: var(--head); }
.dl td.none { color: var(--muted); }
.dl a.get { display: inline-block; padding: 4px 12px; border: 1px solid var(--amber); border-radius: 14px; color: var(--amber); font: 700 12px var(--mono); letter-spacing: 1px; text-decoration: none; }
.dl a.get:hover { background: var(--amber); color: #0C1117; }
@media (prefers-color-scheme: light) { .dl a.get:hover { color: #fff; } } /* v4: dark text on the light-mode amber was 3.8:1 */
.table-wrap { overflow-x: auto; }
.links-list { columns: 2 260px; column-gap: 28px; padding-left: 18px; font-size: 14.5px; }
.links-list li { break-inside: avoid; }
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }
.case figure { margin: 0; }
.case img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.case figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 16px 0; }
.facts div strong { display: block; color: var(--head); font: 700 22px var(--mono); }
.facts div span { color: var(--muted); font-size: 13.5px; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); font: 400 12px var(--sans); vertical-align: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 620px) {
  .brand { white-space: nowrap; }
  .top { align-items: flex-start; }
  .top nav { gap: 4px 12px; font-size: 13px; }
  .hero::before { background-position: 78% 100%; }
  .hero::after { background: linear-gradient(180deg, rgba(3,6,13,.82) 0%, rgba(3,6,13,.6) 55%, rgba(3,6,13,.15) 100%); }
}
details.dl-group { border-bottom: 1px solid var(--line); margin-top: 0; }
details.dl-group > summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 2px; cursor: pointer; list-style: none; }
details.dl-group > summary::-webkit-details-marker { display: none; }
details.dl-group > summary::before { content: '▸'; color: var(--amber); width: 12px; }
details.dl-group[open] > summary::before { content: '▾'; }
.dl-country { color: var(--head); font: 700 15px var(--mono); letter-spacing: .5px; }
.dl-count { color: var(--muted); font-size: 13.5px; }
details.dl-group .table-wrap { padding-bottom: 14px; }

/* Accessibility (v4, 2026-11-03, WCAG 2.1 AA review) */
/* Skip link: the first thing a keyboard user reaches; hidden until focused. */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: #FFB300; color: #0C1117; font: 700 14px var(--mono); text-decoration: none; }
.skip:focus { top: 8px; }
/* A clear focus ring on everything you can tab to. The banner is always dark, so it uses amber there. */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hero :focus-visible { outline-color: #FFB300; }
.btn:focus-visible { outline-offset: 3px; }
/* The page you are on is underlined in the menu, not shown by colour alone. */
.top nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
/* Form field edges need 3:1 against the page (they were 1.3:1). */
.contact input, .contact textarea { border-color: #6b7785; }
@media (prefers-color-scheme: light) { .contact input, .contact textarea { border-color: #8494a7; } }
.contact .req { color: var(--muted); font-size: 13px; }
/* Banner text sits partly over the bright well lights: a dark halo and a darker left side keep it readable. */
.hero-inner { text-shadow: 0 0 2px #03060d, 0 0 6px #03060d, 0 0 14px #03060d; }
.hero-inner .btn { text-shadow: none; }
.hero:not(.slim) .hero-inner > p { width: fit-content; margin-left: -12px; padding: 8px 12px; border-radius: 10px; background: rgba(3,6,13,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hero:not(.slim)::after { background: linear-gradient(180deg, rgba(3,6,13,.55) 0%, rgba(3,6,13,0) 45%), linear-gradient(90deg, rgba(3,6,13,.82) 0%, rgba(3,6,13,.6) 45%, rgba(3,6,13,0) 72%); }
@media (max-width: 620px) { .hero:not(.slim)::after { background: linear-gradient(180deg, rgba(3,6,13,.85) 0%, rgba(3,6,13,.7) 60%, rgba(3,6,13,.35) 100%); } }
/* Keyboard and screen reader way into the country map: a plain list to choose from. */
.wc-pick[hidden] { display: none; }
.wc-pick { display: grid; gap: 4px; margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.wc-pick select { width: 100%; padding: 7px 10px; border: 1px solid #6b7785; border-radius: 8px; background: var(--raised); color: var(--text); font: 14px var(--sans); }
@media (prefers-color-scheme: light) { .wc-pick select { border-color: #8494a7; } }
/* Nothing on the site moves today (the globe banner is a still picture); this keeps it that way for people who ask
   their device for less motion, if anything animated is added later. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
