/* ─── TWOCHAIRS — shared editorial design system (app-aligned palette) ─── */

:root {
    --paper:   #FAF0F1;   /* app sand.50  */
    --paper-2: #F4E8E9;   /* app sand.100 */
    --ink:     #0A0D12;   /* app neutral.950 */
    --ink-2:   #181D27;   /* app neutral.900 */
    --body:    #414651;   /* app neutral.700 */
    --faint:   #717680;   /* app neutral.500 */
    --line:    rgba(10, 13, 18, 0.13);
    --line-2:  rgba(10, 13, 18, 0.07);
    --ox:      #7B00FF;    /* app brand.500 — accent */
    --ox-deep: #6A02D9;    /* app brand.600 — links   */
    --dark:    #20033F;    /* app brand.950 — dark bg  */
    --maxw:    1180px;
    --gut:     clamp(22px, 5.5vw, 76px);
    --serif:   'Newsreader', Georgia, 'Times New Roman', serif;
    --sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans); background: var(--paper); color: var(--ink);
    font-size: 17px; line-height: 1.62; font-weight: 400;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: rgba(123, 0, 255, 0.18); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; border-radius: 2px; }

/* old-theme leftovers — never render */
.aurora, .cursor-glow { display: none !important; }

.skip-link {
    position: absolute; top: -200%; left: 20px; z-index: 200;
    background: var(--ink); color: var(--paper); padding: 12px 20px;
    font-size: 13px; font-weight: 600; border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.serif { font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
.kicker {
    font-family: var(--sans); font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--ox-deep);
    display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--ox-deep); opacity: 0.6; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); font-size: 14px; font-weight: 600;
    border-radius: 2px; padding: 14px 24px; cursor: pointer; border: 0; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--paper); transition: background 0.18s ease; }
.btn-primary:hover { background: var(--ox-deep); }
.btn-ghost {
    font-size: 13px; font-weight: 600; color: var(--ink); padding: 0 0 2px;
    border-bottom: 1.5px solid var(--ox); border-radius: 0; transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--ox-deep); }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 240, 241, 0.86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px var(--gut);
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 19px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--body); transition: color 0.15s ease; }
.nav-back svg { width: 15px; height: 15px; }
.nav-back:hover { color: var(--ink); }

/* Page hero (content pages) */
.page-hero { padding: clamp(78px, 14vh, 150px) 0 clamp(28px, 5vh, 48px); }
.page-hero .wrap > .kicker { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.0; letter-spacing: -0.025em; }
.page-hero .sub { margin-top: 22px; color: var(--body); font-size: clamp(16px, 2vw, 19px); max-width: 46ch; line-height: 1.55; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vh, 56px); }
.section-head .kicker { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 50px); letter-spacing: -0.02em; }
.section-head p { margin-top: 18px; color: var(--body); max-width: 48ch; }
.block { padding: clamp(40px, 7vh, 90px) 0; }

/* Legal / doc pages */
.doc { max-width: 768px; margin: 0 auto; padding: clamp(88px, 14vh, 150px) var(--gut) clamp(56px, 10vh, 108px); }
.doc-head { margin-bottom: 44px; }
.doc-head .kicker { margin-bottom: 20px; }
.doc-head h1 { font-size: clamp(34px, 5.5vw, 62px); letter-spacing: -0.02em; }
.doc-head .updated { margin-top: 14px; color: var(--faint); font-size: 13.5px; font-family: var(--sans); }
.doc > p { color: var(--body); margin-bottom: 15px; font-size: 16.5px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.6vw, 28px); margin: 42px 0 14px; letter-spacing: -0.01em; }
.doc ul { margin: 0 0 18px; padding-left: 20px; }
.doc li { color: var(--body); margin-bottom: 8px; font-size: 16px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ox-deep); border-bottom: 1px solid rgba(123, 0, 255, 0.3); transition: color 0.15s ease; }
.doc a:hover { color: var(--ox); }

/* Footer / colophon */
.footer { background: var(--paper); padding: clamp(48px, 8vh, 80px) 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-word { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.footer-slogan { color: var(--faint); font-size: 14px; margin-top: 8px; font-style: italic; font-family: var(--serif); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 72px); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--body); margin-bottom: 9px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ox); }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { color: var(--body); transition: color 0.15s ease; }
.footer-socials svg { width: 19px; height: 19px; }
.footer-socials a:hover { color: var(--ox); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 12.5px; color: var(--faint); }
.footer-bottom b, .fnext b { color: var(--ink); font-weight: 600; }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2,0.7,0.2,1), transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
