/* Honor & Balance. One stylesheet for every page.
   Navy, cream and gold from the brand identity. Light pages for reading, the brand navy in dark mode.
   Body text 19px, line height 1.6, one column, buttons at least 52px tall, nothing moves on its own. */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #1F2D45;
  --cream: #F5EFE4;
  --gold: #C9A464;

  --bg: #FBF8F2;
  --bg-2: #F3ECDF;
  --card: #FFFFFF;
  --ink: #1F2D45;
  --ink-2: #3D4A5F;
  --line: #DCD2C0;
  --link: #1F2D45;
  --focus: #1F5F8B;
  --health-bg: #EEF1EA;
  --health-line: #8FA58F;
  --urgent: #8A1F1F;

  --gut: #8E3B22;    --gut-ink: #FFFFFF;    --gut-soft: #F6E6DE;
  --eyes: #1B5A6E;   --eyes-ink: #FFFFFF;   --eyes-soft: #DEEDF1;
  --joints: #355E46; --joints-ink: #FFFFFF; --joints-soft: #E1ECE3;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wide: 68rem;
  --read: 42rem;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F2D45; --bg-2: #18243A; --card: #263753; --ink: #F5EFE4; --ink-2: #D9D0C2; --line: #3C4E6C;
    --link: #F5EFE4; --focus: #9FD0F0; --health-bg: #22344D; --health-line: #7F9C86; --urgent: #FFB4A8;
    --gut: #EBA98E; --gut-ink: #1F2D45; --gut-soft: #33354A;
    --eyes: #90D1E0; --eyes-ink: #1F2D45; --eyes-soft: #20394F;
    --joints: #AFD1B1; --joints-ink: #1F2D45; --joints-soft: #243C45;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1F2D45; --bg-2: #18243A; --card: #263753; --ink: #F5EFE4; --ink-2: #D9D0C2; --line: #3C4E6C;
  --link: #F5EFE4; --focus: #9FD0F0; --health-bg: #22344D; --health-line: #7F9C86; --urgent: #FFB4A8;
  --gut: #EBA98E; --gut-ink: #1F2D45; --gut-soft: #33354A;
  --eyes: #90D1E0; --eyes-ink: #1F2D45; --eyes-soft: #20394F;
  --joints: #AFD1B1; --joints-ink: #1F2D45; --joints-soft: #243C45;
  color-scheme: dark;
}

/* every page has an accent. The home page uses navy; channels use their own color. */
:root { --home: var(--navy); --home-ink: var(--cream); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --home: var(--gold); --home-ink: var(--navy); } }
:root[data-theme="dark"] { --home: var(--gold); --home-ink: var(--navy); }
body { --accent: var(--home); --accent-ink: var(--home-ink); --accent-soft: var(--bg-2); }
.c-gut { --accent: var(--gut); --accent-ink: var(--gut-ink); --accent-soft: var(--gut-soft); }
.c-eyes { --accent: var(--eyes); --accent-ink: var(--eyes-ink); --accent-soft: var(--eyes-soft); }
.c-joints { --accent: var(--joints); --accent-ink: var(--joints-ink); --accent-soft: var(--joints-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.2rem); margin-top: .2em; }
h3 { font-size: 1.45rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.top { background: var(--navy); color: var(--cream); border-bottom: 3px solid var(--gold); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; min-height: 52px; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 1.6rem; letter-spacing: .01em; white-space: nowrap; }
.brand-name .amp, .mono .amp { color: var(--gold); font-style: italic; }
.mono {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold);
  font-family: var(--serif); font-weight: 650; font-size: 1.15rem; color: var(--cream); letter-spacing: -.02em;
}
.mono .amp { margin: 0 -1px; position: relative; top: 1px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.menu li { margin: 0; }
.menu a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  color: var(--cream); text-decoration: none; font-size: 1.02rem; font-weight: 500; border-radius: 8px;
}
.menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .3em; }
@media (max-width: 699px) {
  .menu { width: 100%; }
  .menu ul { margin-left: -8px; }
  .menu a { min-height: 48px; padding: 0 8px; font-size: 1rem; }
  .brand-name { font-size: 1.45rem; }
}

/* channel band under the header */
.band { background: var(--accent); color: var(--accent-ink); }
.band .wrap { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 1.02rem; }
.band a { color: inherit; }
.band svg { width: 26px; height: 26px; flex: none; }

/* ---------- sections ---------- */
main { display: block; }
.hero { padding: 36px 0 28px; }
.hero .kicker, .kicker { font-size: 1.02rem; font-weight: 600; color: var(--ink-2); margin-bottom: .6em; }
.hero .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 40rem; }
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--line); }
.soft { background: var(--bg-2); }
.updated { font-size: 1rem; color: var(--ink-2); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1.12rem; line-height: 1.25;
  text-decoration: none; cursor: pointer; font-family: var(--sans);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.small { font-size: 1rem; color: var(--ink-2); }

/* topic choice on the home page */
.choose { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 12px; }
@media (min-width: 760px) { .choose { grid-template-columns: repeat(3, 1fr); } }
.choose li { margin: 0; }
.choose a {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650; font-size: 1.15rem;
}
.choose a:hover { filter: brightness(1.08); }
.choose svg { width: 30px; height: 30px; flex: none; }

/* how we work */
.three { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three li { margin: 0; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 18px; }
.three h3 { margin-bottom: .3em; }
.three p { margin: 0; }

/* channel cards */
.cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards > li { margin: 0; }
.card {
  height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 20px;
}
.card .icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 6px; }
.card h3 { font-size: 1.7rem; }
.card .series { font-size: 1rem; color: var(--ink-2); }
.card .actions { margin-top: auto; padding-top: 10px; }

.coming { font-size: 1.05rem; color: var(--ink-2); }

/* start here / topic lists */
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.list li { margin: 0; }
.item {
  display: block; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 16px 18px;
}
.item:hover { border-color: var(--accent); }
.item .t { display: block; font-family: var(--serif); font-weight: 650; font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.item .d { display: block; color: var(--ink-2); }
.item .m { display: block; font-size: .98rem; color: var(--ink-2); margin-top: 6px; font-weight: 600; }

/* recognition lines */
.recognize { list-style: none; padding: 0; margin: 0 0 1em; }
.recognize li { padding-left: 1.3em; position: relative; }
.recognize li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); }

/* on this page */
.toc { margin: 18px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.toc p { margin: 0 0 6px; font-weight: 600; }
.toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 0; }

/* article blocks */
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.sources-label { margin: 1em 0 .3em; font-size: 1rem; font-weight: 650; color: var(--ink-2); }
.sources { font-size: 1rem; color: var(--ink-2); padding-left: 1.2em; }
.sources li { margin-bottom: .35em; }
.sources a { color: var(--ink-2); }
.callout { border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; font-weight: 600; }
.health {
  background: var(--health-bg); border: 1px solid var(--health-line); border-left: 6px solid var(--health-line);
  border-radius: var(--radius); padding: 18px;
}
.health .urgent, .emergencia { color: var(--urgent); font-weight: 650; }
.questions { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.questions ol { padding-left: 1.4em; margin-bottom: 0; }

/* guide box and form */
.guide { background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.guide h2 { margin-top: 0; }
.guide ul { padding-left: 1.2em; }
.form { display: grid; gap: 10px; margin: 16px 0 6px; max-width: 30rem; }
.form label { font-weight: 650; }
.form input[type="email"] {
  width: 100%; min-height: 54px; padding: 10px 14px; font-size: 1.15rem; font-family: var(--sans);
  border: 2px solid var(--ink-2); border-radius: 10px; background: var(--card); color: var(--ink);
}
.form input[type="email"]:focus { border-color: var(--focus); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 1rem; color: var(--ink-2); }

.notice { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }

/* video embed placeholder (no autoplay, loads only on click) */
.video { aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--cream); margin-top: 32px; padding: 28px 0 36px; border-top: 3px solid var(--gold); font-size: 1rem; }
.foot a { color: var(--cream); }
.foot p { margin: 0 0 .9em; max-width: 52rem; }
.foot strong { color: var(--cream); }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; padding: 0; margin: 14px 0; }
.foot .links li { margin: 0; }
.foot .links a { display: inline-flex; min-height: 48px; align-items: center; }
.foot .brand-line { font-family: var(--serif); font-size: 1.35rem; font-weight: 650; }

@media print {
  .top .menu, .foot .links, .actions, .form, .skip { display: none !important; }
  body { font-size: 12pt; background: #fff; color: #000; }
}

.destaque { border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; font-weight: 600; }
.mt { margin-top: 16px; }
.stack > * + * { margin-top: 24px; }
