/* ==========================================================================
   Arizona State Roleplay - verification
   Light only. No gradients, no glass, no glow. Paper surfaces, hairline
   rules, one ink colour and one accent. Type is self-hosted Geist.
   ========================================================================== */

@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/source-serif-latin.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Geist';
    src: url('/fonts/geist-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* paper and ink */
    --paper:      #FCF9F7;
    --card:       #FFFFFF;
    --sunk:       #F5F1EE;

    --ink:        #17181A;
    --ink-soft:   #5C5F66;
    --ink-faint:  #8A8D94;

    /* one hairline weight, used everywhere */
    --rule:       #EDE8E4;
    --rule-firm:  #DED7D1;

    /* single accent, desaturated */
    --accent:     #B4622A;
    --accent-sunk:#F7EFE8;

    --ok:         #3F7D57;
    --bad:        #A8443C;

    --serif: 'Source Serif 4', ui-serif, Georgia, Cambria, serif;
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);

    --r-sm: 10px;
    --r:    14px;
    --r-lg: 24px;
    --pill: 999px;

    /* Craft-style: depth from stacked low-opacity shadows, not borders */
    --lift: 0 20px 40px rgba(38, 26, 18, .04),
            0 6px 16px rgba(38, 26, 18, .04),
            0 2px 5px rgba(38, 26, 18, .05);
    --lift-sm: 0 2px 6px rgba(38, 26, 18, .05),
               0 1px 2px rgba(38, 26, 18, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    font-feature-settings: 'ss01', 'cv01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

::selection { background: var(--accent-sunk); }

.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* --------------------------------------------------------------------------
   Navigation - a plain bar, not a floating pill
   -------------------------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 40;
    padding: 16px 20px 0;
    background: none;
}
.nav-inner {
    display: flex; align-items: center; gap: 24px;
    width: 100%; max-width: 940px; margin: 0 auto;
    height: 54px; padding: 0 10px 0 18px;
    background: var(--card);
    border-radius: var(--pill);
    box-shadow: var(--lift);
}
.nav-logo {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none; color: var(--ink);
    font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
    margin-right: auto;
}
/* the mark is white artwork, so it inverts to black on paper */
.nav-logo img { width: 21px; height: 21px; filter: invert(1); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 7px 12px; border-radius: var(--pill);
    font-size: 14px; color: var(--ink-soft); text-decoration: none;
    transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-links a.nav-cta {
    margin-left: 6px; padding: 8px 16px;
    background: #030302; color: #fff; font-weight: 500;
    border-radius: var(--pill);
}
.nav-links a.nav-cta:hover { background: #000; color: #fff; }

/* signed-in chip, injected by nav.js */
.nav-user {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 13px 5px 6px; border: 1px solid var(--rule);
    border-radius: var(--pill); text-decoration: none; color: var(--ink);
    font-size: 13.5px;
    transition: border-color .18s var(--ease);
}
.nav-user:hover { border-color: var(--rule-firm); }
.nav-user img { width: 22px; height: 22px; border-radius: 50%; }
.nav-user .nu-name { font-weight: 500; }

.burger {
    display: none; position: relative;
    width: 36px; height: 36px; padding: 0;
    background: var(--sunk); border: 0; border-radius: var(--pill);
    cursor: pointer; color: var(--ink);
}
.burger i {
    position: absolute; left: 10px; width: 14px; height: 1.5px;
    background: currentColor; border-radius: 1px;
    transition: transform .28s var(--ease);
}
.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 20px; }
.burger.open i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.open i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.sheet-menu {
    position: fixed; inset: 82px 20px auto; z-index: 39;
    display: grid; gap: 2px;
    padding: 12px;
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: var(--lift);
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.sheet-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.sheet-menu a {
    padding: 11px 10px; border-radius: var(--r-sm);
    font-size: 16px; color: var(--ink); text-decoration: none;
}
.sheet-menu a:hover { background: var(--sunk); }

/* --------------------------------------------------------------------------
   Buttons - flat fills, small radius, honest press
   -------------------------------------------------------------------------- */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 11px 16px;
    border: 1px solid transparent; border-radius: var(--pill);
    font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    background: #030302; color: #fff;
    transition: background .18s var(--ease), border-color .18s var(--ease), transform .1s var(--ease);
}
.btn + .btn { margin-top: 9px; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4954D8; }

.btn-roblox { background: var(--accent); color: #fff; }
.btn-roblox:hover { background: #9E5424; }

.btn-ghost {
    background: var(--card); color: var(--ink);
    border-color: var(--rule-firm);
}
.btn-ghost:hover { background: var(--sunk); }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Cookie consent, injected by nav.js
   -------------------------------------------------------------------------- */
.ck-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(23, 24, 26, .34);
}
.ck-modal {
    width: 100%; max-width: 468px;
    padding: 30px;
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 70px rgba(38, 26, 18, .18), 0 8px 20px rgba(38, 26, 18, .10);
}
.ck-logo { width: 26px; margin-bottom: 16px; filter: invert(1); }
.ck-modal h2 {
    margin: 0 0 8px;
    font-size: 19px; font-weight: 600; letter-spacing: -.015em;
}
.ck-modal p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.ck-modal p b { color: var(--ink); font-weight: 500; }
.ck-list { display: grid; gap: 9px; margin: 0 0 18px; }
.ck-item {
    display: flex; gap: 9px; align-items: flex-start;
    font-size: 13.5px; color: var(--ink-soft);
}
.ck-item svg { flex: none; margin-top: 3px; color: var(--ok); }
.ck-item b { color: var(--ink); font-weight: 500; }
.ck-warn { color: var(--bad); }
.ck-loss {
    padding: 13px 15px; margin: 0 0 16px;
    background: var(--sunk); border-radius: var(--r);
    font-size: 13.5px; color: var(--ink-soft);
}
.ck-accept {
    display: block; width: 100%; padding: 12px 16px;
    background: #030302; color: #fff;
    border: 1px solid transparent; border-radius: var(--pill);
    font-family: inherit; font-size: 14.5px; font-weight: 500;
    cursor: pointer;
    transition: background .18s var(--ease);
}
.ck-accept:hover { background: #000; }
.ck-reject {
    display: block; width: 100%; margin-top: 10px; padding: 6px;
    background: none; border: 0;
    font-family: inherit; font-size: 12.5px; color: var(--ink-faint);
    text-decoration: underline; text-underline-offset: 2px;
    cursor: pointer;
}
.ck-reject:hover { color: var(--ink-soft); }
.ck-fine { margin: 14px 0 0; font-size: 12px; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.mini-footer { border-top: 1px solid var(--rule); padding: 22px 0 30px; }
.mini-footer .shell {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.mini-footer .mf-brand {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 500;
}
.mini-footer .mf-brand img { width: 18px; height: 18px; filter: invert(1); }
.mini-footer .mf-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mini-footer a.mf-link {
    font-size: 13px; color: var(--ink-soft); text-decoration: none;
    transition: color .18s var(--ease);
}
.mini-footer a.mf-link:hover { color: var(--ink); }
.mini-footer .mf-fine { font-size: 12.5px; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Long-form documents (terms, privacy)
   -------------------------------------------------------------------------- */
.doc-head { padding: 64px 0 0; }
.doc-head h1 {
    margin: 0 0 7px;
    font-family: var(--serif); font-weight: 400;
    font-size: 42px; letter-spacing: -.022em; line-height: 1.08;
}
.doc-head .updated { margin: 0; font-size: 13.5px; color: var(--ink-faint); }

.doc {
    max-width: 62ch;
    padding: 32px 0 72px;
}
.doc h2 {
    margin: 34px 0 9px;
    font-family: var(--serif); font-weight: 600;
    font-size: 19px; letter-spacing: -.012em;
}
.doc > h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.72; color: var(--ink-soft); }
.doc p { margin: 0 0 12px; }
.doc p b, .doc li b { color: var(--ink); font-weight: 500; }
.doc ul { margin: 0 0 12px; padding-left: 18px; }
.doc li { margin-bottom: 5px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-firm); }
.doc a:hover { text-decoration-color: var(--ink); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .shell { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .nav-links { display: none; }
    .burger { display: block; }
    .mini-footer .shell { flex-direction: column; align-items: flex-start; gap: 14px; }
    .doc-head { padding: 40px 0 0; }
}
