/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* inter-latin-ext-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Shared layout for both sites. Colours and fonts come from each site's theme.css.
   Written for older readers: large type, high contrast, big tap targets, nothing that moves. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.25rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--heading); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin: 0.3em 0 0.4em; }
h2 { font-size: 1.65rem; margin: 2em 0 0.6em; }
h3 { font-size: 1.3rem; margin: 1.5em 0 0.5em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
blockquote { margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; border-left: 4px solid var(--accent); font-style: italic; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.wrap-text { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 4px solid var(--accent); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--header-ink); text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; font-weight: 650; min-height: 48px; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.main-nav, .lang-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; }
.main-nav a, .lang-nav a, .lang-current { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.6rem; color: var(--header-ink); font-size: 1.05rem; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"], .main-nav a:hover { text-decoration: underline; }
.lang-nav { border-left: 1px solid var(--header-rule); padding-left: 0.6rem; }
.lang-current { font-weight: 700; }

/* Hero on home and root pages */
.hero { background: var(--hero-image) center / cover no-repeat, var(--header-bg); padding: 3.5rem 0; }
.hero-panel { background: var(--panel); color: var(--panel-ink); padding: 1.6rem 1.8rem; border-radius: 10px; max-width: 40rem; }
.hero-panel h1 { color: var(--panel-ink); margin-top: 0; }
.tagline { font-size: 1.3rem; margin: 0; }
.home-intro { padding-top: 1.5rem; }

/* Story cards */
.stories h2 { margin-top: 1.2em; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.card a { display: block; height: 100%; background: var(--card-bg); color: var(--ink); text-decoration: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); }
.card a:hover .card-title { text-decoration: underline; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-text { display: block; padding: 1rem 1.1rem 1.2rem; }
.card-title { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 650; line-height: 1.25; margin-bottom: 0.4rem; color: var(--heading); }
.card-desc { display: block; font-size: 1.05rem; }

/* Articles */
.article { padding-top: 1.5rem; padding-bottom: 2rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--muted); margin: 0; }
.lede { font-size: 1.4rem; line-height: 1.5; }
.meta { color: var(--muted); font-size: 1.05rem; }
figure { margin: 1.8em 0; }
figure img { width: 100%; border-radius: 8px; }
figcaption { font-size: 1rem; color: var(--muted); margin-top: 0.5em; }
.img-credit { white-space: nowrap; }
sup.cite { line-height: 0; }
sup.cite a { display: inline-block; padding: 0.15em 0.25em; font-size: 0.8em; font-weight: 600; text-decoration: none; }
sup.cite a::before { content: "["; } sup.cite a::after { content: "]"; }
.box { background: var(--card-bg); border: 2px solid var(--accent); border-radius: 10px; padding: 1rem 1.3rem; margin: 1.8em 0; }
.box-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--heading); margin: 0.2em 0 0.6em; }
.box > :last-child { margin-bottom: 0; }
.box-checklist ul { list-style: none; padding-left: 0; }
.box-checklist li { position: relative; padding-left: 2.1rem; }
.box-checklist li::before { content: ""; position: absolute; left: 0; top: 0.25em; width: 1.25rem; height: 1.25rem; border: 2px solid var(--ink); border-radius: 3px; background: var(--bg); }

/* Video facade: nothing loads from YouTube until the reader presses play */
.video { margin: 1.8em 0; }
.video-frame { aspect-ratio: 16 / 9; position: relative; width: 100%; background: #000; border-radius: 8px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: #fff; font: inherit; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-facade .play { position: absolute; left: 50%; top: 45%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgba(0, 0, 0, 0.72); border: 3px solid #fff; }
.video-facade .play::after { content: ""; position: absolute; left: 38px; top: 27px; border-style: solid; border-width: 21px 0 21px 32px; border-color: transparent transparent transparent #fff; }
.video-facade .play-label { position: absolute; left: 50%; top: calc(45% + 64px); transform: translateX(-50%); background: rgba(0, 0, 0, 0.72); padding: 0.3em 0.8em; border-radius: 6px; font-size: 1.1rem; white-space: nowrap; }
.video-facade:hover .play, .video-facade:focus-visible .play { background: var(--accent-strong); }
.video-note { font-size: 1rem; color: var(--muted); margin-top: 0.6em; }

/* Sources */
.sources { border-top: 2px solid var(--rule); margin-top: 3rem; }
.sources ol { padding-left: 1.6em; font-size: 1.02rem; }
.sources li { overflow-wrap: anywhere; margin-bottom: 0.7em; }
.sources li:target { background: var(--highlight); }
.how-made { font-size: 1rem; color: var(--muted); }
.related ul { padding-left: 1.2em; }

/* Ads: only rendered once AdSense is approved; always below the first screen, never moving */
.ad-slot { margin: 2.5em 0; padding: 0.5em 0 1em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.4em; }

/* Buttons and forms */
.button, .print-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.4em 1.4em; background: var(--button-bg); color: var(--button-ink); border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.print-btn { background: transparent; color: var(--link); border: 2px solid var(--rule); font-size: 1.05rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3em; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; font: inherit; padding: 0.6em 0.7em; border: 2px solid var(--muted); border-radius: 6px; background: #fff; color: #1d1d1d; }
.contact-form .hp { display: none; }
.form-privacy { font-size: 1rem; color: var(--muted); }
.h-captcha { margin: 1em 0; min-height: 78px; }

/* Root language chooser */
.lang-chooser { display: grid; gap: 1rem; padding-top: 2rem; padding-bottom: 3rem; }
.lang-choice { flex-direction: column; font-size: 1.35rem; padding: 0.8em 1em; }
.lang-choice small { font-weight: 400; font-size: 1rem; }

/* Footer */
.site-footer { background: var(--header-bg); color: var(--header-ink); margin-top: 3rem; padding: 1.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: var(--header-ink); display: inline-flex; min-height: 44px; align-items: center; margin-right: 1.2rem; }
.footer-ai { max-width: 44rem; }

@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .lang-nav { border-left: 0; padding-left: 0; }
  .hero { padding: 1.5rem 0; }
  .hero-panel { padding: 1.2rem; border-radius: 0; }
  .video-facade .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .video-facade .play::after { left: 27px; top: 19px; border-width: 16px 0 16px 24px; }
  .video-facade .play-label { top: calc(45% + 46px); font-size: 1rem; }
}

@media print {
  .site-header, .site-footer, .video, .ad-slot, .print-line, .related, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
  .article-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  figure { break-inside: avoid; }
  .box { break-inside: avoid; border-color: #000; }
}
.sources a.back { display: inline-block; min-width: 2em; text-align: center; text-decoration: none; }

/* The Unburdened Home: calm sage on soft off-white (from the video theme). */
:root {
  --font: "Inter Variable", "Segoe UI", Arial, sans-serif;
  --font-head: var(--font);
  --bg: #f6f4ec; --ink: #2f3a2f; --heading: #263026; --muted: #55605a;
  --link: #35603b; --accent: #7c9a7e; --accent-strong: #4f7552; --focus: #35603b;
  --header-bg: #fbfaf5; --header-ink: #2f3a2f; --header-rule: #c9d3c5;
  --panel: rgba(246, 244, 236, 0.93); --panel-ink: #2f3a2f; --hero-image: url(/assets/banner.webp);
  --card-bg: #ffffff; --rule: #d6dccf; --highlight: #e3ecd9;
  --button-bg: #35603b; --button-ink: #ffffff;
}
.site-footer { border-top: 4px solid var(--accent); }
