/* Shellati — site styles.
   Layout: a deep-green band holds the header and the hero (headline left, the ring of names right);
   the rest of the page sits on cool off-white paper, left-aligned, one column of reading width.
   Tokens: paper / ink / deep (band) / green (actions) / mint / gold (this month's turn). */
:root {
  --paper: #F6F8F6; --ink: #15201B; --muted: #5B6862; --faint: #96A39C; --rule: #DCE3DF; --soft: #ECF1EE;
  --green: #1B7F5A; --deep: #0E4A36; --deeper: #0A3828; --mint: #DCEFE4;
  --gold: #D9B35B; --gold-ink: #6A4D00; --gold-soft: #F6E9C3;
  --band-ink: #F2F7F3; --band-muted: #B7D1C3; --band-rule: rgba(242, 247, 243, 0.22);
  --measure: 1080px; --gutter: 20px;
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
  --scripts: "IBM Plex Sans Arabic", "Noto Sans Ethiopic", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans KR", "Noto Sans JP", "Noto Sans TC", "IBM Plex Sans", system-ui, "Segoe UI", "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F1613; --ink: #E9EFEB; --muted: #A5B3AC; --faint: #6B7A72; --rule: #263129; --soft: #172019; --mint: #173A2D; --gold-ink: #E7C76E; --gold-soft: #3A2E0E; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0F1613; --ink: #E9EFEB; --muted: #A5B3AC; --faint: #6B7A72; --rule: #263129; --soft: #172019; --mint: #173A2D; --gold-ink: #E7C76E; --gold-soft: #3A2E0E; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
body[dir="rtl"] { font-family: var(--font-ar); font-size: 18px; line-height: 1.85; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.2rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.hidden, [hidden] { display: none !important; }

/* ---------- header (on the band on the home page, on paper elsewhere) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; color: var(--deep); }
.brand span { color: var(--muted); font-size: 1rem; font-family: var(--font-ar); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; font-family: var(--font-ar); font-size: 0.9rem; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.lang:hover { border-color: var(--green); }
@media (max-width: 640px) { .nav a { display: none; } }

/* ---------- the band: header + hero */
.band { background: var(--deep); color: var(--band-ink); }
.band .brand strong { color: var(--band-ink); }
.band .brand span { color: var(--band-muted); }
.band .nav a { color: var(--band-muted); }
.band .nav a:hover { color: var(--band-ink); }
.band .lang { color: var(--band-ink); border-color: var(--band-rule); }
.band .lang:hover { border-color: var(--gold); }
.hero { padding-block: 36px 64px; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding-block: 56px 88px; } }
.hero h1 { color: var(--band-ink); max-width: 14ch; }
.hero .lede { color: var(--band-muted); font-size: 1.15rem; margin-top: 22px; max-width: 42ch; }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { color: var(--band-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--deeper); }
.btn-primary:hover { background: #E6C26C; color: var(--deeper); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--rule); }
.note { color: var(--muted); font-size: 0.95rem; }

/* ---------- the ring: the circle's names around the world, this month's turn at the top */
.ring-wrap { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1; }
.ring { width: 100%; height: 100%; overflow: visible; }
.ring-words text.cjk { font-size: 22px; }
.ring-words text { font-family: var(--scripts); font-size: 18px; font-weight: 500; fill: var(--band-ink); text-anchor: middle; letter-spacing: 0.01em; }
.ring-months text { font-family: var(--font); font-size: 11.5px; fill: var(--band-muted); text-anchor: middle; letter-spacing: 0.08em; }
.ring-track { fill: none; stroke: var(--band-rule); stroke-width: 1; }
.ring-tick { fill: var(--gold); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; padding: 24%; }
.ring-center b { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; color: var(--band-ink); line-height: 1.15; }
body[dir="rtl"] .ring-center b { font-family: var(--font-ar); }
.ring-now { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; }
.ring-line { color: var(--band-ink); font-size: 0.95rem; }
.ring-foot { color: var(--band-muted); font-size: 0.8rem; margin-top: 8px; }

/* ---------- sections */
.section { padding-block: 64px; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section h2 { max-width: 22ch; }
.section .intro { color: var(--muted); margin-top: 14px; max-width: 62ch; }

/* names: a flowing list, native script first */
.names { padding-block: 56px 48px; }
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--rule); min-width: 0; }
.chips b { font-family: var(--scripts); font-size: 1.3rem; font-weight: 500; line-height: 1.3; unicode-bidi: isolate; overflow-wrap: anywhere; }
.chips i { font-style: normal; color: var(--ink); font-size: 0.92rem; }
.chips span { color: var(--muted); font-size: 0.85rem; }

/* how: a real sequence, so the numbers mean something */
.steps { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: step; padding-top: 14px; border-top: 2px solid var(--green); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--deep); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

table.types { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 0.98rem; }
table.types th, table.types td { text-align: start; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--rule); }
table.types th { font-weight: 600; color: var(--ink); }
table.types thead th { font-family: var(--display); font-size: 1.15rem; color: var(--deep); border-bottom: 2px solid var(--green); }
body[dir="rtl"] table.types thead th { font-family: var(--font-ar); }
table.types td { color: var(--muted); }
table.types td:first-child, table.types th:first-child { padding-inline-start: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  table.types thead { display: none; }
  table.types tr { display: grid; grid-template-columns: 1fr; padding-block: 10px; border-bottom: 1px solid var(--rule); }
  table.types td, table.types th { border: 0; padding: 2px 0; }
  table.types td::before { content: attr(data-k) ": "; color: var(--faint); }
}

.trust { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 880px) { .trust { grid-template-columns: 1fr 1fr; gap: 56px; } }
.trust h3 { margin-bottom: 8px; }
.trust p { color: var(--muted); }
.vote { margin-top: 20px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 14px; padding: 16px 18px; font-size: 0.98rem; max-width: 420px; }
.vote b { display: block; margin-bottom: 4px; }
.vote .ans { display: flex; gap: 8px; margin-top: 10px; }
.vote .ans span { border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }

.stamp { margin-top: 8px; padding: 32px; border: 2px solid var(--green); border-radius: 22px; max-width: 70ch; }
.stamp h2 { color: var(--deep); font-size: clamp(1.5rem, 2.8vw, 2rem); }
.stamp p { margin-top: 12px; color: var(--muted); }
.stamp ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--muted); }
.stamp li + li { margin-top: 4px; }

.faq { margin-top: 28px; max-width: 70ch; }
.faq details { border-top: 1px solid var(--rule); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 8px; }

.video { margin-top: 28px; aspect-ratio: 16 / 9; width: 100%; max-width: 760px; height: auto; background: var(--deep); border-radius: 16px; display: block; }
#video + .note { margin-top: 10px; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; }

footer { padding-block: 40px 56px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.92rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 8px; }
footer a { color: var(--muted); }

/* ---------- legal pages */
.legal { padding-block: 32px 64px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal .meta { color: var(--muted); margin-top: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink); max-width: 70ch; }
.legal p { margin-top: 10px; }
.legal ul { padding-inline-start: 20px; margin-top: 8px; }
.legal table { border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; max-width: 70ch; }
.legal th, .legal td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal th { font-weight: 600; }
.draft { background: var(--gold-soft); color: var(--gold-ink); padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; margin-top: 16px; max-width: 70ch; }

/* ---------- invite landing */
.invite { min-height: 70vh; display: grid; place-items: center; padding-block: 48px; }
.invite .card { max-width: 440px; width: 100%; text-align: center; display: grid; gap: 16px; }
.invite .mark { width: 72px; height: 72px; border-radius: 36px; background: var(--mint); color: var(--deep); display: grid; place-items: center; margin-inline: auto; font-weight: 700; font-size: 1.6rem; }
.invite .btn-primary { background: var(--green); color: #fff; }
.invite p { color: var(--muted); }
