/* Finery Cast — public website. System fonts only; nothing loaded from other sites. */
:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --soft: #f4f1ec;
  --line: #e6e1d9;
  --text: #171b24;
  --muted: #5d6573;
  --ink: #141821;
  --ink2: #1e2430;
  --brand: #b3660c;
  --brand-hi: #e8973a;
  --brand-soft: #fbeed9;
  --ok: #1f8a5b;
  --wait: #9a6b00;
  --danger: #b23a2b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 33, .06), 0 8px 24px rgba(20, 24, 33, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141b; --panel: #181c25; --soft: #1d222c; --line: #2a303c;
    --text: #e9ebef; --muted: #a2a9b6; --brand: #e8973a; --brand-soft: #2a2117;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    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(--bg); color: var(--text); font: 16px/1.65 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: .88em var(--mono); background: var(--soft); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--brand-hi); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--brand); margin-bottom: .8em; }

/* Header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.18rem; font-weight: 650; letter-spacing: -.01em; }
.brand b { color: var(--brand-hi); font-weight: 800; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #cfd4dd; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: .94rem; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 640px) {
  .top { position: static; }
  .top-in { padding-top: 10px; padding-bottom: 8px; }
  .top nav { width: 100%; margin: 0 -12px; }
  .top nav a { padding: 6px 12px; font-size: .9rem; }
}

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font: 650 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #9c5809; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 85% -10%, #3a2a17 0%, transparent 60%), var(--ink); color: #fff; padding: 72px 0 84px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand-hi); }
.hero .eyebrow { color: var(--brand-hi); }
.lead { font-size: 1.15rem; color: #c9ced8; max-width: 38em; }
.doc .lead { color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.note { font-size: .9rem; color: #9aa2b1; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero illustration */
.hero-art { position: relative; }
.post-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: 300px; transform: rotate(-2deg); }
.pc-media { aspect-ratio: 16/10; border-radius: 12px; background: linear-gradient(135deg, #f6c27c, #b3660c 60%, #5a3306); display: grid; place-items: center; }
.play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); position: relative; }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.pc-lines { margin: 12px 4px 8px; display: grid; gap: 7px; }
.pc-lines i { display: block; height: 8px; border-radius: 4px; background: #e9e5de; }
.pc-lines i.short { width: 60%; }
.pc-meta { font-size: .78rem; color: #5d6573; display: flex; align-items: center; gap: 7px; padding: 0 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dests { list-style: none; margin: -14px 0 0 auto; padding: 0; display: grid; gap: 10px; max-width: 290px; position: relative; }
.dests li { display: flex; align-items: center; gap: 10px; background: var(--ink2); border: 1px solid #2d3443; border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.dests em { margin-left: auto; font-style: normal; font-size: .76rem; font-weight: 700; color: #7fd8ac; background: rgba(31,138,91,.18); padding: 3px 9px; border-radius: 99px; }
.dests em.wait { color: #f3cf73; background: rgba(154,107,0,.22); }
.ch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.ch-yt { background: #e3342f; } .ch-fb { background: #3b6fe0; } .ch-ig { background: linear-gradient(135deg, #f8a432, #d62f78 55%, #7d3bd0); } .ch-tt { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
@media (max-width: 860px) { .post-card { margin: 0 auto; } .dests { margin: -28px auto 0; } }

/* Sections */
.band { padding: 72px 0; background: var(--soft); border-block: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; border: 0; }
.band-ink p { color: #c9ced8; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; } }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 30px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.ticks li::before { content: "✓"; background: rgba(31,138,91,.13); color: var(--ok); }
.crosses li::before { content: "✕"; background: rgba(178,58,43,.11); color: var(--danger); }
.card-soft { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card-soft p:last-child { margin: 0; }
.doc .card-soft h2 { margin-top: 0; font-size: 1.2rem; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-strip p { margin: 0; }

/* Documents (policies) */
.doc { max-width: 820px; padding-top: 56px; padding-bottom: 80px; }
.doc-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc h2 { margin-top: 2em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { font-size: .86rem; text-decoration: none; padding: 5px 11px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--text); }
.toc a:hover { border-color: var(--brand); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: 0 10px 10px 0; font-weight: 550; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.opts section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.opts h3 { margin-top: 0; }
.opts p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .opts { grid-template-columns: 1fr; } }
.status-box { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; border: 1px solid var(--line); background: var(--panel); }
.status-box h2 { margin: 0 0 .3em; font-size: 1.2rem; }
.status-box p { margin: 0; }
.status-box.is-done { border-color: rgba(31,138,91,.4); background: rgba(31,138,91,.07); }
.status-box.is-pending { border-color: rgba(154,107,0,.4); background: rgba(154,107,0,.07); }
.status-box.is-missing { border-color: rgba(178,58,43,.35); background: rgba(178,58,43,.06); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 6px; }
.form label { font-weight: 650; font-size: .94rem; margin-top: 10px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.form [aria-invalid="true"] { border-color: var(--danger); }
.form .btn { margin-top: 16px; justify-self: start; }
.err { color: var(--danger); font-size: .88rem; }
.err-box { background: rgba(178,58,43,.08); color: var(--danger); padding: 10px 14px; border-radius: 10px; margin: 0; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { background: var(--ink); color: #aab1bd; padding: 44px 0 26px; font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-in > div { max-width: 460px; }
.foot .brand { color: #fff; margin-bottom: 10px; }
.brand-sm { font-size: 1.02rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.foot nav a { color: #d6dae2; text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid #262c38; font-size: .8rem; color: #858d9b; }

/* Header sign-in button */
.top nav a.nav-signin { color: var(--ink); background: var(--brand-hi); font-weight: 650; margin-left: 6px; }
.top nav a.nav-signin:hover { background: #f3b061; color: var(--ink); }

/* Small buttons, badges, flashes */
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn-quiet { background: var(--soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--line); }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; color: #cfd4dd; font: inherit; font-size: .94rem; padding: 7px 12px; cursor: pointer; border-radius: 8px; }
.linkish:hover { color: #fff; background: rgba(255,255,255,.08); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); vertical-align: middle; }
.badge-ok { background: rgba(31,138,91,.12); color: var(--ok); border-color: rgba(31,138,91,.3); }
.badge-wait { background: rgba(154,107,0,.12); color: var(--wait); border-color: rgba(154,107,0,.3); }
.badge-bad { background: rgba(178,58,43,.1); color: var(--danger); border-color: rgba(178,58,43,.3); }
.pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--brand-hi); color: var(--ink); font-size: .72rem; font-weight: 800; text-align: center; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 20px; font-weight: 550; }
.flash-ok { background: rgba(31,138,91,.1); color: var(--ok); }
.flash-err { background: rgba(178,58,43,.09); color: var(--danger); }

/* Sign-in / setup pages */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(900px 420px at 80% -10%, #3a2a17 0%, transparent 60%), var(--ink); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); color: var(--text); border-radius: 18px; padding: 30px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.auth-card h1 { font-size: 1.6rem; margin-top: 18px; }
.auth-brand { color: var(--text); }
.auth-card .form .btn { width: 100%; justify-self: stretch; }
.code-input { font: 600 1.5rem var(--mono) !important; letter-spacing: .3em; text-align: center; }
.setup-steps { padding-left: 1.2em; margin: 0 0 8px; }
.setup-steps li { margin-bottom: 6px; }
.qr { display: grid; place-items: center; margin: 10px 0; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.mono-key { font: 600 1rem var(--mono); letter-spacing: .06em; background: var(--soft); padding: 10px 12px; border-radius: 8px; word-break: break-all; }
details summary { cursor: pointer; color: var(--brand); }

/* Admin */
.admin-body { background: var(--bg); }
.wsbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.wsbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; font-size: .92rem; }
.ws-pick { display: flex; align-items: center; gap: 10px; }
.ws-pick label { font-weight: 650; }
.ws-pick select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin-head { margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .2em; }
.admin-section { margin-bottom: 18px; }
.admin-section h2 { font-size: 1.15rem; margin: 0; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.acc-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.acc-card h2 { font-size: 1.08rem; margin: 0; }
.acc-card p { font-size: .93rem; margin-bottom: 12px; }
.acc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.row-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.row-form input { flex: 1 1 220px; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { word-break: break-all; }
.admin-section .form { max-width: 560px; }
.pre { white-space: pre-wrap; }
.msg.is-done { opacity: .65; }
