/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light dark; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: #0e1525;
    background: #0b1220;
}

:focus-visible { outline: 3px solid #7cc4ff; outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -999px; top: -999px;
    background: #fff; color: #000; padding: .5rem .75rem; border-radius: .5rem; z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { max-width: 1100px; margin-inline: auto; padding: 0 1rem; }
.small { font-size: .875rem; opacity: .8; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    flex: 0 0 auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(11,18,32,0.9), rgba(11,18,32,0.5));
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 0;
}

.site-title {
    margin: 0;
    padding: 0.25rem 0;
    color: #f5f7ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'DM Serif Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    background-color: #0b1220;
    background-position: center;
    background-size: cover;
    transition: background-image 400ms ease-out;
}

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(8,12,24,0.28),
            rgba(8,12,24,0.40) 60%,
            rgba(8,12,24,0.50) 100%
    );
}

/* =========================================================
   QUOTE CARD
   ========================================================= */
.quote-card {
    position: relative; z-index: 1;
    width: min(90vw, 800px);
    padding: clamp(1rem, 2vw + .5rem, 2rem);
    border-radius: 20px;
    background: rgba(15,17,27,0.55);
    color: #f7f9ff;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    margin: 0;
}

.quote {
    margin: 0 0 1rem 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.2rem);
    line-height: 1.4;
}
.quote p { margin: 0 0 .75rem; }
.quote__footer { font-style: italic; color: #dfe7ff; opacity: .95; }

/* =========================================================
   CONTROLS
   ========================================================= */
.controls { display: flex; flex-wrap: wrap; gap: .5rem; }

.btn {
    --btn-bg: #ffffff; --btn-fg: #0b1220; --btn-border: rgba(0,0,0,.15);
    appearance: none;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    padding: .6rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: translateY(1px); }

.hint { margin: .75rem 0 0; font-size: .9rem; color: #cbd7ff; }
kbd {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    padding: .1rem .3rem;
    border-radius: .35rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    flex: 0 0 auto;
    background: #0a1020;
    color: #e8eeff;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0;
    font-size: 0.75rem;
    font-family: 'Spectral', serif;
}

.site-footer .container {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer p {
    margin: 0;
    color: #e8eeff;
}

.site-footer a {
    color: #bcd2ff;
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* =========================================================
   CONTENT PAGES (About / Privacy)
   ========================================================= */
.page {
    flex: 1 1 auto;
    background: #0b1220;
}

.page .container {
    max-width: 820px;
    padding: 2.25rem 1.25rem 3rem;
}

.page h1,
.page h2,
.page h3 {
    color: #f5f7ff;
    margin: 0 0 .75rem;
    line-height: 1.25;
}
.page h1 { font-size: clamp(1.4rem, 1rem + 2vw, 2rem); font-weight: 800; letter-spacing: .5px; }
.page h2 { font-size: clamp(1.15rem, 0.95rem + 1vw, 1.5rem); margin-top: 1.75rem; font-weight: 700; }
.page h3 { font-size: 1.05rem; margin-top: 1.25rem; font-weight: 700; }

.page p,
.page li {
    color: #cfd9ff;
    font-size: 1rem;
}
.page p { margin: 0 0 1rem; }
.page .lead {
    color: #e6ebff;
    font-size: 1.05rem;
    opacity: .95;
}

.page a {
    color: #bcd2ff;
    text-decoration: underline dotted rgba(188,210,255,.6);
    text-underline-offset: 2px;
}
.page a:hover { text-decoration-style: solid; }

.page ul, .page ol { padding-left: 1.25rem; margin: .25rem 0 1rem; }
.page hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    margin: 2rem 0;
}

.page .card {
    background: rgba(15,17,27,.55);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    padding: 1.25rem 1.25rem;
    margin: 1rem 0 1.25rem;
}

.page .muted { color: #aebcf7; opacity: .85; }
.page code, .page kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .95em;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .35rem;
    padding: .1rem .3rem;
}
.page pre {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 1rem;
    overflow-x: auto;
    color: #e8eeff;
}

.page .page-header {
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #dfe7ff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
    .site-title { font-size: 1.1rem; }
    .hint { font-size: 0.85rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .hero { transition: none; }
}
