/* WickerTithe — self-contained styles. No external fonts or CDNs. */
:root {
  --bg: #0b0907;
  --bg-2: #14100b;
  --panel: #1a140e;
  --line: #3a2c1c;
  --straw: #c9a76a;
  --straw-dim: #8f7748;
  --bone: #e9dfc9;
  --text: #d9cdb4;
  --muted: #a8987a;
  --ember: #d8572a;
  --ember-hi: #f07a46;
  --radius: 10px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* woven wicker texture, pure CSS */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(216, 87, 42, .12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(201, 167, 106, .025) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(201, 167, 106, .025) 0 2px, transparent 2px 14px);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--straw); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--bone); line-height: 1.15; font-weight: 600; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
h3 { font-size: 1.25rem; margin: 0 0 .35rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--straw); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 9, 7, .88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; color: var(--bone); letter-spacing: .04em; }
.topbar ul { list-style: none; display: flex; gap: clamp(.75rem, 2.5vw, 1.75rem); margin: 0; padding: 0; }
.topbar nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.topbar nav a:hover { color: var(--bone); }
@media (max-width: 560px) { .topbar nav li:nth-child(n+3) { display: none; } }

main > section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.section-lede { color: var(--muted); margin: 0 0 2rem; font-size: 1.1rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); min-height: min(86vh, 760px); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--straw); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 1.25rem; }
.hero h1 span { color: var(--straw); font-style: italic; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38em; margin: 0 0 2rem; }
.hero-art { margin: 0; display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); filter: drop-shadow(0 0 40px rgba(216, 87, 42, .22)); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-6px) scale(1.015); filter: drop-shadow(0 0 60px rgba(216, 87, 42, .32)); } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: min(200px, 55vw); }
}

.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem;
  border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ember); color: #1a0d06; }
.btn-primary:hover { background: var(--ember-hi); color: #1a0d06; }
.btn-ghost { border-color: var(--straw-dim); color: var(--straw); background: transparent; }
.btn-ghost:hover { border-color: var(--bone); color: var(--bone); }


/* census */
.census { padding-top: 0 !important; padding-bottom: 0 !important; }
.census-label { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--straw); margin: 0 0 .6rem; }
.census-tick { color: var(--muted); letter-spacing: .05em; text-transform: none; margin-left: .4rem; }
.census-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.census-grid div { background: var(--panel); padding: 1rem; }
.census-grid dt { font-size: .8rem; color: var(--muted); }
.census-grid dd { margin: 0; font: 600 1.6rem var(--serif); color: var(--bone); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .census-grid { grid-template-columns: repeat(3, 1fr); } }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem; }
.steps p { margin: 0; color: var(--text); }
.step-n { display: block; font: italic 600 1.6rem var(--serif); color: var(--ember); margin-bottom: .4rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* watch */
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem;
  background: radial-gradient(ellipse at center, #22180f 0%, var(--bg) 75%);
  box-shadow: 0 30px 80px -40px rgba(216, 87, 42, .35);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: .35rem; }
.player-fallback img { opacity: .75; margin-bottom: .5rem; width: clamp(56px, 10vw, 96px); }
.fallback-title { font: 600 clamp(1.3rem, 3vw, 1.9rem) var(--serif); color: var(--bone); margin: 0; }
.fallback-sub, .fallback-note { color: var(--muted); margin: 0 0 .8rem; max-width: 32em; }
.fallback-note { font-size: .85rem; margin-top: .6rem; }
@media (max-width: 480px) { .player { aspect-ratio: 4 / 3.4; } }

/* rules */
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.rule-list li { border-left: 3px solid var(--ember); padding: .3rem 0 .3rem 1.2rem; }
.rule-list p { margin: 0; }
@media (max-width: 680px) { .rule-list { grid-template-columns: 1fr; } }

/* faq */
.faq details { max-width: 860px; }
.faq h2 { margin-bottom: 1.5rem; }
details { border-top: 1px solid var(--line); padding: .25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font: 600 1.15rem var(--serif); color: var(--bone); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; color: var(--straw); font: 400 1.5rem var(--sans); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 1.1rem; color: var(--text); max-width: 46em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem; text-align: center; background: var(--bg); }
.site-footer p { margin: 0 auto .6rem; max-width: 52em; }
.tagline { font: italic 1.15rem var(--serif); color: var(--bone); }
.small { font-size: .85rem; color: var(--muted); }
