:root {
    color-scheme: dark;
    --ink: #f5efe3;
    --muted: #b8afa0;
    --night: #13110e;
    --panel: #1d1914;
    --panel-light: #272119;
    --line: rgba(226, 194, 132, .2);
    --gold: #d7ae65;
    --gold-light: #efd59b;
    --wine: #5a1f2b;
    --sage: #93a58b;
    --radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--night); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(circle at 15% 10%, rgba(215,174,101,.18), transparent 28%), radial-gradient(circle at 85% 85%, rgba(90,31,43,.22), transparent 30%); }
a { color: inherit; }
button, input { font: inherit; }
button, .button-link { cursor: pointer; }

.eyebrow, .kicker { margin: 0 0 .7rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { max-width: 38rem; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.65; }

.login-shell { position: relative; display: grid; min-height: 100vh; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding: clamp(1.5rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 28rem); }
.login-intro h1 { max-width: 9ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 8vw, 7.2rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.ornament { display: flex; width: min(22rem, 80%); align-items: center; gap: 1rem; margin-top: 2rem; color: var(--gold); }
.ornament span { height: 1px; flex: 1; background: var(--line); }
.login-card { position: relative; padding: clamp(2rem, 5vw, 3.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(29,25,20,.88); box-shadow: 0 28px 80px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.seal { display: grid; width: 3.4rem; height: 3.4rem; margin: -4.85rem auto 1.5rem; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--night); background: var(--gold); font-family: Georgia, serif; font-size: 1.6rem; box-shadow: 0 0 0 7px var(--night); }
.login-card h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; text-align: center; }
.login-card > p { text-align: center; }
.stack { display: grid; gap: 1.15rem; margin-top: 2rem; }
label span { display: block; margin-bottom: .5rem; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
input { width: 100%; min-height: 3.5rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: rgba(0,0,0,.22); }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,174,101,.12); }
.stack button, .button-link { display: flex; min-height: 3.55rem; align-items: center; justify-content: center; gap: .7rem; border: 0; border-radius: 10px; color: #17120b; background: var(--gold); font-weight: 800; text-decoration: none; }
.stack button:hover, .button-link:hover { background: var(--gold-light); }
.privacy-note { margin: 1.5rem 0 0; color: #8f877b; font-size: .78rem; line-height: 1.55; }
.alert { padding: .9rem 1rem; margin-top: 1.4rem; border: 1px solid rgba(221,113,113,.35); border-radius: 10px; color: #ffd5d5; background: rgba(109,31,42,.34); font-size: .9rem; }

.role-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem max(1.1rem, calc((100vw - 1100px) / 2)); border-bottom: 1px solid var(--line); background: rgba(19,17,14,.92); backdrop-filter: blur(16px); }
.role-header .eyebrow { margin: 0 0 .2rem; }
.phase { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); font-size: .78rem; }
.phase span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(147,165,139,.1); }
.text-button { border: 0; color: var(--muted); background: transparent; }
.text-button:hover { color: var(--ink); }
.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .6rem; background: var(--gold); color: #111; }
.skip-link:focus { top: 1rem; }

.role-shell { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 6rem; }
.role-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 3rem; border-bottom: 1px solid var(--line); }
.role-hero h1 { max-width: 13ch; margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.role-description { max-width: 42rem; margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.event-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin: 2.5rem 0 0; }
.event-facts div { display: grid; gap: .3rem; }
.event-facts dt { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-facts dd { margin: 0; }
.section-nav { display: flex; gap: 1.8rem; overflow-x: auto; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.section-nav a { flex: none; padding: .45rem 0; color: var(--muted); font-size: .86rem; text-decoration: none; }
.section-nav a.active { color: var(--ink); border-bottom: 1px solid var(--gold); }
.welcome-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(110deg, rgba(90,31,43,.28), rgba(39,33,25,.62)); }
.welcome-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.welcome-panel p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.icon-box { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.profile-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.profile-grid article, .content-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.profile-grid h2, .content-section h2 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.profile-grid article > p:last-child, .content-card > p:last-child { color: var(--muted); line-height: 1.65; }
.secret-card { background: linear-gradient(145deg, rgba(90,31,43,.38), var(--panel)) !important; }
.content-section { padding-top: 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.2rem; }
.count-badge { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #17120b; background: var(--gold); font-size: .8rem; font-weight: 800; }
.content-list { display: grid; gap: 1rem; }
.content-card { position: relative; overflow: hidden; }
.content-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); }
.content-card.secret::before { background: #a9576a; }
.content-card.task::before { background: var(--sage); }
.content-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.content-label { color: var(--gold); font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.content-label.secret { color: #dc8799; }
.content-label.task { color: #b3c5ab; }
.error-page { display: grid; min-height: 100vh; place-content: center; padding: 2rem; text-align: center; }
.error-page h1 { max-width: 15ch; margin: 0 0 2rem; font-family: Georgia, serif; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 400; line-height: 1; }

@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; align-content: center; padding-top: 4rem; }
    .login-intro { text-align: center; }
    .login-intro h1 { margin-inline: auto; font-size: clamp(3.4rem, 17vw, 5rem); }
    .lead { margin-inline: auto; }
    .ornament { margin-inline: auto; }
    .login-card { margin-top: 1rem; }
    .profile-grid { grid-template-columns: 1fr; }
    .welcome-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

