@font-face {
    font-family: "Pinar-VF";
    src: url("../../pinar-vf.woff2") format("woff2");
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #08080a;
    --fg: #f5f5f7;
    --muted: #7a7a80;
    --accent: #c9a962;
    --accent-light: #e8d4a0;
    --accent-glow: rgba(201, 169, 98, 0.25);
    --border: #252529;
    --card: #141418;
    --bg-card: #111113;
    --text-soft: rgba(245, 245, 247, 0.78);
    --text-subtle: rgba(245, 245, 247, 0.65);
    --surface-soft: rgba(245, 245, 247, 0.02);
    --surface-soft-strong: rgba(245, 245, 247, 0.04);
    --surface-panel: rgba(17, 17, 19, 0.9);
    --surface-panel-strong: rgba(20, 20, 24, 0.92);
    --surface-overlay: rgba(8, 8, 10, 0.4);
    --surface-nested: rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 8px 25px -8px rgba(0, 0, 0, 0.6);
    --bg-pattern-primary: rgba(201, 169, 98, 0.06);
    --bg-pattern-secondary: rgba(201, 169, 98, 0.04);
    --grid-line-color: rgba(201, 169, 98, 0.02);
    --grid-size: 72px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f3eb;
    --fg: #191714;
    --muted: #72695d;
    --accent: #a68035;
    --accent-light: #8b6824;
    --accent-glow: rgba(166, 128, 53, 0.2);
    --border: #ddd4c6;
    --card: #fffdf9;
    --bg-card: #fffdf9;
    --text-soft: rgba(25, 23, 20, 0.78);
    --text-subtle: rgba(25, 23, 20, 0.62);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --surface-soft-strong: rgba(255, 255, 255, 0.92);
    --surface-panel: rgba(255, 255, 255, 0.92);
    --surface-panel-strong: rgba(255, 251, 244, 0.98);
    --surface-overlay: rgba(255, 255, 255, 0.82);
    --surface-nested: rgba(166, 128, 53, 0.07);
    --shadow-soft: 0 10px 28px -14px rgba(79, 59, 20, 0.18);
    --bg-pattern-primary: rgba(166, 128, 53, 0.09);
    --bg-pattern-secondary: rgba(166, 128, 53, 0.05);
    --grid-line-color: rgba(166, 128, 53, 0.06);
}

html {
    background: var(--bg);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Pinar-VF", sans-serif;
    background: var(--bg);
    color: var(--fg);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.bg-pattern,
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-pattern {
    z-index: 0;
    background-image:
        radial-gradient(ellipse 100% 60% at 50% -30%, var(--bg-pattern-primary), transparent),
        radial-gradient(ellipse 50% 50% at 90% 100%, var(--bg-pattern-secondary), transparent);
}

.grid-overlay {
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.icon > svg {
    width: 100%;
    height: 100%;
}

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

.site-footer {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid var(--border);
}

.theme-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.theme-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    padding: 0.45rem 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.theme-option .icon {
    width: 15px;
    height: 15px;
}

.theme-option:hover,
.theme-option:focus-visible {
    border-color: var(--accent);
    color: var(--fg);
    transform: translateY(-1px);
}

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

.theme-option.is-active,
.theme-option[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #08080a;
    box-shadow: 0 10px 24px -14px var(--accent-glow);
}

.site-copyright {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.9;
}

.redirect-main {
    position: relative;
    z-index: 10;
    display: grid;
    min-height: calc(100vh - 7.5rem);
    max-width: 600px;
    margin-inline: auto;
    align-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem 3rem;
}

.redirect-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 1.25rem;
    text-align: center;
}

.redirect-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent-light);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.redirect-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.redirect-text a {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 1.5rem;
    }

    .theme-option {
        min-width: 0;
    }
}
