
:root {
    --bar-color: #1e0042;
    --bar-text-color: #ffffff;
    --bg: #f5f3f8;
    --text: #201a33;
    --header-height: 116px;
    font-size: 16px;
}

html.font-large {
    font-size: 19px;
    --header-height: 132px;
}

html.font-extra-large {
    font-size: 22px;
    --header-height: 148px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.sidebar-open { overflow: hidden; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    min-height: var(--header-height);
    padding: calc(17px + env(safe-area-inset-top))
             16px 17px;
    background: var(--bar-color);
    color: var(--bar-text-color);
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,.18);
}

.topbar {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 52px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}

.hamburger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: var(--bar-text-color);
    font-size: 1.75rem;
    cursor: pointer;
}

.logo {
    min-width: 0;
    color: var(--bar-text-color);
    text-decoration: none;
    font-size: clamp(1.2rem, 5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: .10em;
    line-height: 1.2;
}

.tagline {
    margin-top: 9px;
    font-size: clamp(.85rem, 3vw, 1.19rem);
    font-weight: 600;
    letter-spacing: .05em;
    opacity: .88;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: min(310px, 88vw);
    height: 100dvh;
    padding: calc(24px + env(safe-area-inset-top))
             22px 24px;
    background: #171427;
    color: white;
    overflow-y: auto;
    transition: transform .22s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,.28);
}

.sidebar.hidden {
    transform: translateX(-105%);
    visibility: hidden;
}

.sidebar h3 {
    margin: 38px 0 4px;
    font-size: 1.2rem;
}

.sidebar p {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}

.color-control {
    display: block;
    margin-top: 22px;
    font-weight: bold;
}

.color-control span {
    display: block;
    margin-bottom: 8px;
}

.color-control input {
    width: 100%;
    height: 54px;
    padding: 4px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
}

.sidebar-button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.sidebar-button:hover {
    background: rgba(255,255,255,.14);
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    transition: opacity .2s ease;
}

.backdrop.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 32px) 24px 48px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #b59cff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar, .backdrop {
        transition: none;
    }
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.social-links a:hover {
    background-color: rgba(128, 128, 128, 0.12);
    transform: translateY(-2px);
}