* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f3ef;
    --surface: #ffffff;
    --surface-muted: #f1ede6;
    --text: #1f2933;
    --text-muted: #5c6773;
    --accent: #0f766e;
    --accent-strong: #0b5f58;
    --accent-soft: rgba(15, 118, 110, 0.14);
    --accent-soft-2: rgba(15, 118, 110, 0.06);
    --border: #e2e2e2;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --max-width: 920px;
    --transition: 180ms ease;
    --glass: rgba(245, 243, 239, 0.85);
}

[data-theme="dark"] {
    --bg: #0b1216;
    --surface: #0f1720;
    --surface-muted: #131c24;
    --text: #e6edf3;
    --text-muted: #9fb0bf;
    --accent: #5eead4;
    --accent-strong: #2dd4bf;
    --accent-soft: rgba(94, 234, 212, 0.16);
    --accent-soft-2: rgba(94, 234, 212, 0.06);
    --border: #1f2a35;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    --glass: rgba(10, 15, 20, 0.85);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%, var(--accent-soft) 0%, transparent 45%),
        radial-gradient(circle at 88% 12%, var(--accent-soft-2) 0%, transparent 38%),
        radial-gradient(circle at 20% 80%, var(--accent-soft-2) 0%, transparent 40%);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
}

img,
svg {
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-strong);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    z-index: 20;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.brand-name {
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-icons svg {
    width: 18px;
    height: 18px;
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.container {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 96px 24px 64px;
    display: grid;
    gap: 32px;
}

.hero {
    padding-top: 8px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 600;
    margin: 14px 0 8px;
    text-wrap: balance;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.lead,
.section,
.about-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow);
}

.intro {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.intro strong {
    color: var(--text);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.section-title {
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.section p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section p strong {
    color: var(--text);
}

.subsection {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    transition: border-color var(--transition), background-color var(--transition);
}

.subsection:hover {
    border-color: var(--accent);
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.subsection p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.subsection ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.subsection li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
}

.subsection li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 8px 0;
}

.about-title {
    font-family: "Fraunces", serif;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.about-section p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-section p strong {
    color: var(--text);
}

.disclaimer {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    background: var(--surface-muted);
}

.disclaimer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer {
    text-align: center;
    padding: 24px 16px 48px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

main > section:nth-of-type(1) {
    --delay: 0s;
}

main > section:nth-of-type(2) {
    --delay: 0.05s;
}

main > section:nth-of-type(3) {
    --delay: 0.1s;
}

main > section:nth-of-type(4) {
    --delay: 0.15s;
}

main > section:nth-of-type(5) {
    --delay: 0.2s;
}

main > section:nth-of-type(6) {
    --delay: 0.25s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .container {
        padding: 88px 18px 56px;
    }

    .title {
        font-size: clamp(1.9rem, 6vw, 2.5rem);
    }

    .section-number {
        width: 34px;
        height: 34px;
    }
}

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

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
