:root {
    --bg: #050505;
    --bg-accent: #111111;
    --surface: rgba(18, 18, 20, 0.88);
    --surface-strong: rgba(25, 25, 28, 0.96);
    --surface-light: #f5f0e5;
    --surface-light-border: rgba(115, 88, 27, 0.18);
    --text: #f7f1e3;
    --text-muted: rgba(247, 241, 227, 0.72);
    --text-dark: #181512;
    --text-dark-muted: rgba(24, 21, 18, 0.72);
    --border: rgba(219, 176, 75, 0.16);
    --gold: #d7a639;
    --gold-strong: #f0c869;
    --button-text: #111111;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    --heading-font: "Didot", "Bodoni 72", "Iowan Old Style", "Times New Roman", serif;
    --body-font: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at top center, rgba(215, 166, 57, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(215, 166, 57, 0.10), transparent 24%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: var(--body-font);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.site-body {
    background: transparent;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 44px;
    filter: drop-shadow(0 10px 18px rgba(215, 166, 57, 0.22));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topnav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a[aria-current="page"] {
    background: rgba(215, 166, 57, 0.12);
    color: var(--gold-strong);
    outline: none;
}

.page-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 0 60px;
}

.hero-card,
.not-found-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(215, 166, 57, 0.08), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero-card::before,
.not-found-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(215, 166, 57, 0.14), transparent 34%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(280px, 1fr);
    gap: 32px;
    align-items: center;
    padding: 48px;
}

.hero-logo-panel {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(215, 166, 57, 0.09), transparent 54%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(215, 166, 57, 0.10);
}

.hero-logo-panel::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 22px;
    border: 1px solid rgba(215, 166, 57, 0.08);
}

.hero-logo {
    width: min(100%, 280px);
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.35));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-strong);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-title,
.not-found-title,
.legal-title {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.95;
}

.hero-copy {
    max-width: 560px;
}

.hero-description,
.hero-note,
.not-found-copy,
.legal-subtitle {
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-description {
    margin: 20px 0 16px;
    font-size: 1.08rem;
}

.hero-note {
    margin: 0 0 28px;
    font-size: 0.95rem;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button,
.button-secondary,
.text-size-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button-secondary:hover,
.text-size-toggle:hover {
    transform: translateY(-1px);
}

.button {
    color: var(--button-text);
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
    box-shadow: 0 12px 24px rgba(215, 166, 57, 0.22);
}

.button-secondary,
.text-size-toggle {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(215, 166, 57, 0.18);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 34px;
    background: rgba(5, 5, 5, 0.68);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    color: var(--gold-strong);
    outline: none;
}

.legal-main {
    flex: 1;
    padding: 40px 0 56px;
}

.legal-header {
    margin-bottom: 24px;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.04;
}

.legal-subtitle {
    margin: 12px 0 0;
    font-size: 1rem;
}

.legal-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.legal-card {
    border-radius: 30px;
    background: var(--surface-light);
    border: 1px solid var(--surface-light-border);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
    padding: 34px 32px;
    color: var(--text-dark);
}

.legal-prose {
    font-size: 1rem;
    line-height: 1.72;
}

.legal-prose p {
    margin: 0 0 1rem;
    color: var(--text-dark);
}

.legal-prose h1,
.legal-prose h2,
.legal-prose h3 {
    margin: 2rem 0 0.85rem;
    color: var(--text-dark);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    line-height: 1.18;
}

.legal-prose h1:first-child,
.legal-prose h2:first-child,
.legal-prose h3:first-child {
    margin-top: 0;
}

.legal-prose ol,
.legal-prose ul {
    margin: 0 0 1rem 1.3rem;
    padding: 0;
}

.legal-prose li {
    margin-bottom: 0.65rem;
}

.legal-prose blockquote {
    margin: 1rem 0;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--gold);
    background: rgba(215, 166, 57, 0.08);
}

.legal-text-large .legal-prose {
    font-size: 1.1rem;
}

.not-found-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 0 60px;
}

.not-found-card {
    padding: 48px;
    text-align: center;
}

.not-found-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 12px;
}

.not-found-copy {
    max-width: 540px;
    margin: 0 auto 28px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .hero-logo-panel {
        min-height: 280px;
    }

    .topbar-inner {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .topnav {
        justify-content: flex-start;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 28px));
    }

    .hero-grid,
    .not-found-card,
    .legal-card {
        padding: 24px 20px;
    }

    .page-main,
    .not-found-main,
    .legal-main {
        padding: 28px 0 40px;
    }

    .action-row {
        flex-direction: column;
    }

    .button,
    .button-secondary {
        width: 100%;
    }
}
