/* Discover Health — 2026 redesign
   Warm editorial palette: oat paper, deep pine ink, persimmon accent,
   with a soft tint for each of the eight NEWSTART principles. */

:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --card: #fffdf8;
  --ink: #1b2620;
  --ink-2: #4b5750;
  --ink-3: #75807a;
  --line: #ddd4c3;
  --accent: #c24b22;
  --accent-ink: #fff;
  --accent-soft: #f6d9c8;
  --pine: #24473a;
  --pine-ink: #f3efe4;
  --sun: #efb23c;
  --sage: #a9c3a6;
  --shadow: 0 1px 2px rgb(27 38 32 / .06), 0 8px 30px -12px rgb(27 38 32 / .18);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* NEWSTART tints: background / text */
  --c-nutrition: #f4cfae;  --t-nutrition: #74340f;
  --c-exercise: #f3d98f;   --t-exercise: #5e4300;
  --c-water: #c3dfe6;      --t-water: #18505e;
  --c-sunlight: #f8e3a4;   --t-sunlight: #6b4f00;
  --c-temperance: #dcd2ec; --t-temperance: #46356e;
  --c-air: #cfe4d3;        --t-air: #24533a;
  --c-rest: #cbd2ec;       --t-rest: #2b376b;
  --c-trust: #eecdcb;      --t-trust: #722a2a;
  --c-start: #f6d9c8;      --t-start: #8a3416;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121815; --paper-2: #18201c; --card: #1c2621; --ink: #eee8dc; --ink-2: #bfc5bd; --ink-3: #8d958f;
    --line: #2d3832; --accent: #ef7a4f; --accent-ink: #1a0f0a; --accent-soft: #3a2219; --pine: #2b5545; --pine-ink: #eef3ec;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
    --c-nutrition: #3d2a1d; --t-nutrition: #f4c39b; --c-exercise: #3a3118; --t-exercise: #f1d27b;
    --c-water: #1b343a; --t-water: #a6d6e2; --c-sunlight: #3b331a; --t-sunlight: #f5db8b;
    --c-temperance: #2d2840; --t-temperance: #cfc2ee; --c-air: #1f3326; --t-air: #b5dcbf;
    --c-rest: #232a42; --t-rest: #bcc6f0; --c-trust: #3c2524; --t-trust: #efbcb9; --c-start: #3a2219; --t-start: #f4b596;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121815; --paper-2: #18201c; --card: #1c2621; --ink: #eee8dc; --ink-2: #bfc5bd; --ink-3: #8d958f;
  --line: #2d3832; --accent: #ef7a4f; --accent-ink: #1a0f0a; --accent-soft: #3a2219; --pine: #2b5545; --pine-ink: #eef3ec;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
  --c-nutrition: #3d2a1d; --t-nutrition: #f4c39b; --c-exercise: #3a3118; --t-exercise: #f1d27b;
  --c-water: #1b343a; --t-water: #a6d6e2; --c-sunlight: #3b331a; --t-sunlight: #f5db8b;
  --c-temperance: #2d2840; --t-temperance: #cfc2ee; --c-air: #1f3326; --t-air: #b5dcbf;
  --c-rest: #232a42; --t-rest: #bcc6f0; --c-trust: #3c2524; --t-trust: #efbcb9; --c-start: #3a2219; --t-start: #f4b596;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.015em; font-variation-settings: "SOFT" 60, "opsz" 96; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: .95em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-light { background: var(--pine-ink); color: var(--pine); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: .45em; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: .55em .85em; border-radius: 999px; background: var(--c, var(--paper-2)); color: var(--t, var(--ink-2)); white-space: nowrap;
}
.chip b { font: 700 .85rem/1 var(--serif); letter-spacing: 0; }
[data-cat="start"]      { --c: var(--c-start);      --t: var(--t-start); }
[data-cat="nutrition"]  { --c: var(--c-nutrition);  --t: var(--t-nutrition); }
[data-cat="exercise"]   { --c: var(--c-exercise);   --t: var(--t-exercise); }
[data-cat="water"]      { --c: var(--c-water);      --t: var(--t-water); }
[data-cat="sunlight"]   { --c: var(--c-sunlight);   --t: var(--t-sunlight); }
[data-cat="temperance"] { --c: var(--c-temperance); --t: var(--t-temperance); }
[data-cat="air"]        { --c: var(--c-air);        --t: var(--t-air); }
[data-cat="rest"]       { --c: var(--c-rest);       --t: var(--t-rest); }
[data-cat="trust"]      { --c: var(--c-trust);      --t: var(--t-trust); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.3rem/1 var(--serif); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: .55em .85em; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav .btn { padding: .7em 1.1em; font-size: .92rem; margin-left: 8px; color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); background: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.menu-btn svg { margin: auto; }
@media (max-width: 880px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9em .6em; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); font-weight: 500; letter-spacing: -.035em; margin: 20px 0 24px; font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-3); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); }

.hero-art { position: relative; min-height: 520px; }
.hero-art .scene { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #f8dcc0 0%, #f4c9a3 45%, #ebb58e 100%); }
:root[data-theme="dark"] .hero-art .scene { background: linear-gradient(180deg, #2b2a3b 0%, #4a3548 50%, #6b4441 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art .scene { background: linear-gradient(180deg, #2b2a3b 0%, #4a3548 50%, #6b4441 100%); } }
.hero-art .scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun-disc { transform-origin: center; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(40px); opacity: .3; } to { transform: none; opacity: 1; } }

.week-card {
  position: absolute; left: clamp(14px, 6%, 36px); right: clamp(14px, 6%, 36px); bottom: clamp(14px, 6%, 36px);
  background: var(--card); border-radius: var(--radius); padding: 24px 26px 22px; box-shadow: var(--shadow);
  text-decoration: none; display: block; transition: transform .2s ease;
}
a.week-card:hover { transform: translateY(-3px); }
.week-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.week-card .issue { font: 600 .8rem/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.week-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 10px; }
.week-card p { color: var(--ink-2); font-size: .98rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.week-card .more { font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.week-card .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 0 rgb(63 166 107 / .6); animation: pulse 2.2s infinite; display: inline-block; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(63 166 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 166 107 / 0); } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; }
}
@media (max-width: 520px) { .hero-art { min-height: 400px; } .week-card { padding: 20px; } }

/* ---------- NEWSTART strip ---------- */
.principles { padding: 8px 0 clamp(56px, 8vw, 100px); }
.principles-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.principles-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18em; }
.principles-head p { color: var(--ink-2); max-width: 30em; margin: 0; }
.p-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.p-item {
  background: var(--c); color: var(--t); border-radius: 18px; padding: 18px 16px 16px; text-decoration: none;
  display: flex; flex-direction: column; gap: 22px; min-height: 150px; transition: transform .2s ease, box-shadow .2s ease; border: 0; cursor: pointer; text-align: left; font: inherit;
}
.p-item:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow); }
.p-item .l { font: 500 2.6rem/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; }
.p-item .n { font-weight: 700; font-size: .98rem; margin-top: auto; }
.p-item .d { font-size: .82rem; opacity: .85; line-height: 1.35; }
@media (max-width: 1080px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .p-grid { grid-template-columns: repeat(2, 1fr); } .p-item { min-height: 128px; } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 44rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 500; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { color: var(--ink-2); font-size: 1.12rem; margin: 0; }

/* ---------- Tools ---------- */
.tools { background: var(--pine); color: var(--pine-ink); border-radius: clamp(24px, 4vw, 44px); margin-inline: clamp(8px, 1.5vw, 20px); }
.tools .section-head p { color: color-mix(in srgb, var(--pine-ink) 78%, transparent); }
.tools .eyebrow { color: var(--sun); }
.tools .section-head h2 em { color: var(--sun); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.tool {
  background: color-mix(in srgb, var(--pine-ink) 7%, transparent); border: 1px solid color-mix(in srgb, var(--pine-ink) 14%, transparent);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 100%;
  transition: background-color .2s ease, transform .2s ease;
}
.tool:hover { background: color-mix(in srgb, var(--pine-ink) 11%, transparent); transform: translateY(-3px); }
.tool .step { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.tool h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 500; }
.tool p { color: color-mix(in srgb, var(--pine-ink) 80%, transparent); margin: 0; }
.tool .viz { height: 132px; display: grid; place-items: center; margin: 4px 0 6px; }
.tool .btn { margin-top: auto; align-self: flex-start; }
.tool ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; color: color-mix(in srgb, var(--pine-ink) 84%, transparent); }
.tool ul li { display: flex; gap: 10px; align-items: baseline; }
.tool ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); flex: none; transform: translateY(-2px); }
.tool.featured { background: var(--pine-ink); color: var(--pine); border-color: transparent; }
.tool.featured p, .tool.featured ul { color: color-mix(in srgb, var(--pine) 80%, transparent); }
.tool.featured .step { color: var(--accent); }
.tool.featured ul li::before { background: var(--accent); }
.weeks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: 100%; }
.weeks i { height: 54px; border-radius: 8px; background: color-mix(in srgb, var(--pine-ink) 16%, transparent); position: relative; overflow: hidden; }
.weeks i::after { content: ""; position: absolute; inset: auto 0 0; height: var(--h); background: var(--sun); border-radius: 8px; transition: height .8s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

/* ---------- The Weekly (library) ---------- */
.lib-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 600 .88rem/1 var(--sans); border: 1.5px solid var(--line); background: transparent; color: var(--ink-2);
  padding: .65em 1em; border-radius: 999px; cursor: pointer; transition: .15s ease;
}
.filters button:hover { border-color: var(--ink-3); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.next-drop { color: var(--ink-3); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.next-drop svg { width: 18px; height: 18px; color: var(--accent); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .cover { aspect-ratio: 16 / 10; background: var(--c, var(--paper-2)); position: relative; overflow: hidden; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .cover img { transform: scale(1.04); }
.post .cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t); font: 400 7rem/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1; opacity: .9; }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-3); }
.post h3 { font-size: 1.38rem; font-weight: 550; }
.post p { color: var(--ink-2); font-size: .96rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post.wide { grid-column: span 2; flex-direction: row; }
.post.wide .cover { aspect-ratio: auto; flex: 1.1; min-height: 300px; }
.post.wide .body { flex: 1; padding: 30px; justify-content: center; }
.post.wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .post.wide { grid-column: auto; flex-direction: column; } .post.wide .cover { min-height: 0; aspect-ratio: 16/10; } .post.wide .body { padding: 20px 22px 24px; } }

.empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: clamp(32px, 6vw, 64px); text-align: center; color: var(--ink-2);
  display: grid; justify-items: center; gap: 12px;
}
.empty h3 { font-size: 1.6rem; color: var(--ink); }
.empty p { max-width: 32em; margin: 0; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 320px; border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Watch & read ---------- */
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.media-side { display: grid; gap: 22px; }
.vid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vid .lite-yt { border-radius: 0; }
.vid .cap { padding: 16px 20px 18px; }
.vid .cap h3 { font-size: 1.15rem; font-weight: 550; }
.vid .cap span { font-size: .85rem; color: var(--ink-3); }
.vid.big .cap h3 { font-size: 1.5rem; }
.lite-yt { position: relative; aspect-ratio: 16 / 9; background: #111 center / cover no-repeat; border-radius: var(--radius-sm); overflow: hidden; }
.lite-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .35)); }
.lite-yt button { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border: 0; background: none; cursor: pointer; color: #c4302b; filter: drop-shadow(0 4px 12px rgb(0 0 0 / .4)); transition: transform .2s ease; }
.lite-yt:hover button { transform: scale(1.08); }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; } }

.book {
  margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  background: var(--accent-soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
}
.book img { width: clamp(110px, 16vw, 170px); border-radius: 6px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); transform: rotate(-3deg); }
.book h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 500; margin-bottom: 10px; }
.book p { color: var(--ink-2); }
.book .links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .book { grid-template-columns: 1fr; } .book img { margin: 0 auto; } }

/* ---------- Faith & health ---------- */
.faith { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faith blockquote { margin: 0; font: 400 clamp(1.6rem, 3.2vw, 2.5rem)/1.2 var(--serif); font-style: italic; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.faith blockquote cite { display: block; margin-top: 18px; font: 600 .9rem/1 var(--sans); font-style: normal; color: var(--ink-3); letter-spacing: .04em; }
.faith .intro { color: var(--ink-2); margin-top: 24px; }
.res-list { display: grid; gap: 10px; }
.res {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; text-decoration: none;
  padding: 16px 20px 16px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: .2s ease;
}
.res:hover { border-color: var(--ink-3); transform: translateX(4px); }
.res .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--c-trust); color: var(--t-trust); display: grid; place-items: center; }
.res .ic svg { width: 22px; height: 22px; }
.res .logo { width: 96px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px; overflow: hidden; }
.res .logo-dark { background: #000; border-color: #000; }
.res .logo img { display: block; width: auto; height: auto; max-width: 78px; max-height: 38px; }
@media (max-width: 420px) { .res { grid-template-columns: 72px 1fr auto; gap: 12px; } .res .logo { width: 72px; height: 48px; padding: 6px; } .res .logo img { max-width: 58px; max-height: 34px; } }
.res strong { display: block; font-weight: 650; }
.res span { font-size: .9rem; color: var(--ink-3); }
.res .go { color: var(--ink-3); }
@media (max-width: 900px) { .faith { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); border-radius: clamp(24px, 4vw, 44px); margin-inline: clamp(8px, 1.5vw, 20px); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: .85em 1em; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .9rem; color: var(--ink-3); }
.form-msg { padding: 14px 16px; border-radius: 14px; font-weight: 500; }
.form-msg.ok { background: var(--c-air); color: var(--t-air); }
.form-msg.err { background: var(--c-trust); color: var(--t-trust); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; color: var(--ink-2); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: var(--ink-3); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: .45em .9em; font: 500 .85rem/1 var(--sans); cursor: pointer; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Article page ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 60; }
.article-hero { padding: clamp(32px, 6vw, 72px) 0 28px; }
.article-hero .wrap { max-width: 860px; }
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; font-size: .9rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.article-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: 20px; font-variation-settings: "SOFT" 100, "opsz" 144; }
.article-hero .dek { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-2); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-3); font-size: .92rem; margin-top: 22px; }
.article-cover { width: min(100% - 2 * var(--gutter), 1100px); margin: 10px auto 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--c); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover.video { aspect-ratio: auto; background: none; }
.prose { max-width: 700px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 24px; font-size: 1.15rem; line-height: 1.75; box-sizing: content-box; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-child::first-letter { float: left; font: 500 4.4em/.82 var(--serif); margin: .06em .1em 0 0; color: var(--accent); font-variation-settings: "SOFT" 100, "opsz" 144; }
.prose h2 { font-size: 1.9rem; font-weight: 550; margin-top: 1.8em; }
.prose h3 { font-size: 1.4rem; font-weight: 600; margin-top: 1.6em; }
.prose h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; margin-top: 1.4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--accent); font: italic 400 1.4rem/1.45 var(--serif); color: var(--ink); }
.prose blockquote p { margin: 0; }
.callout { background: var(--c, var(--accent-soft)); color: var(--t, var(--ink)); border-radius: 18px; padding: 20px 22px; }
.callout strong { display: block; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.callout p { margin: 0; color: inherit; }
.article-end { max-width: 700px; margin: 0 auto; padding: 0 var(--gutter) 30px; box-sizing: content-box; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0; }
.share span { font-weight: 600; margin-right: 6px; }
.share .btn { padding: .65em 1em; font-size: .9rem; }
.cta-card { background: var(--pine); color: var(--pine-ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: grid; gap: 12px; }
.cta-card h3 { font-size: 1.6rem; font-weight: 500; }
.cta-card p { margin: 0; color: color-mix(in srgb, var(--pine-ink) 80%, transparent); }
.cta-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cta-card .btn-ghost { color: var(--pine-ink); border-color: color-mix(in srgb, var(--pine-ink) 35%, transparent); }

/* Hover lifts must beat .reveal.in's transform reset */
.p-grid .p-item.in:hover { transform: translateY(-4px) rotate(-.6deg); }
.post-grid .post.in:hover { transform: translateY(-4px); }
.steps .tool.in:hover { transform: translateY(-3px); }
.res-list.in .res:hover { transform: translateX(4px); }

/* ---------- Mailing list ---------- */
.hero-sub { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; color: var(--ink); text-decoration: none; padding: .6em 1em .6em .8em; border-radius: 999px; background: var(--accent-soft); transition: background-color .15s ease; }
.hero-sub:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%); }
.hero-sub svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero-sub + .hero-meta { margin-top: 22px; }

.subscribe-band { padding: 0 0 clamp(56px, 8vw, 110px); }
.sub-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  background: var(--accent-soft); border-radius: clamp(24px, 4vw, 40px); padding: clamp(24px, 5vw, 56px);
}
.sub-art svg { width: clamp(140px, 18vw, 220px); height: auto; }
.sub-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; margin: 14px 0 16px; }
.sub-copy h2 em { font-style: italic; color: var(--accent); }
.sub-perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; color: var(--ink-2); }
.sub-perks li { display: flex; gap: 10px; align-items: baseline; }
.sub-perks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.sub-form { display: grid; gap: 10px; }
.sub-fields { display: grid; grid-template-columns: .8fr 1.2fr auto; gap: 10px; }
.sub-fields input { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .9em 1.2em; width: 100%; min-width: 0; }
.sub-fields input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.sub-card .form-note { margin: 12px 0 0; }
@media (max-width: 820px) { .sub-card { grid-template-columns: 1fr; } .sub-art { display: none; } }
@media (max-width: 620px) { .sub-fields { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.check strong { display: block; font-weight: 650; }
.check small { color: var(--ink-2); font-size: .88rem; }

.sub-inline { background: var(--accent-soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); margin-bottom: 18px; display: grid; gap: 8px; }
.sub-inline h3 { font-size: 1.5rem; font-weight: 500; }
.sub-inline p { margin: 0 0 8px; color: var(--ink-2); }

.notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; background: var(--pine); color: var(--pine-ink); padding: 14px 18px 14px 20px; border-radius: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; width: max-content; max-width: calc(100% - 32px); }
.notice button { background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ---------- Calmer hero (v2) ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 120px); }
.hero .wrap { grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); }
.hero h1 { margin: 0 0 28px; }
.hero .lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 26em; margin-bottom: 40px; }
.hero .actions { align-items: center; gap: 22px; }
.btn-lg { padding: 1.1em 1.7em; font-size: 1.08rem; }
.text-link { color: var(--ink-2); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.text-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
.hero-art { min-height: 480px; }
.week-card { padding: 20px 24px; display: grid; gap: 6px; }
.week-card .issue { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.week-card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0; }
.week-card .more { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.btn-outline { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); background: transparent; }
.nav .btn-outline, .nav .btn-outline:hover { color: var(--ink); background: transparent; }
.nav .btn-outline:hover { border-color: var(--ink); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { min-height: 380px; } }
@media (max-width: 520px) { .hero .actions { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* Admin preview bar on article pages */
.preview-bar { position: sticky; top: 0; z-index: 70; background: var(--c-sunlight); color: var(--t-sunlight); border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: .95rem; }
.preview-bar.is-approved { background: var(--c-air); color: var(--t-air); }
.preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 10px 0; }
.preview-bar .pv-actions { display: flex; gap: 8px; }
.preview-bar .btn { padding: .6em 1.1em; font-size: .9rem; }
.preview-bar .btn-ghost { color: inherit; border-color: currentColor; }
.preview-bar ~ .site-header { top: 0; position: relative; }

/* Subscription thank-you page */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.thanks-card { width: min(100%, 560px); background: var(--card); border-radius: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); padding: clamp(28px, 6vw, 56px); text-align: center; display: grid; justify-items: center; gap: 18px; }
.thanks-art { width: 160px; height: 96px; flex: none; border-radius: 16px; background: linear-gradient(180deg, #f8dcc0, #f4c9a3); }
.thanks h1 { margin-top: 18px; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144; }
.thanks h1 { letter-spacing: 0; }
/* Italic letters lean right, so give the name room before the "!" */
.thanks h1 em { font-style: italic; color: var(--accent); padding-right: .06em; }
.thanks h1 .bang { margin-left: 0; }
.thanks p { font-size: 1.15rem; color: var(--ink-2); max-width: 26em; margin: 0 0 8px; }
