:root {
    --text: #111;
    --bg: #fff;
    --muted: rgba(17, 17, 17, 0.7);

    --header-bg: rgba(245, 245, 245, 0.85);
    --border: rgba(0, 0, 0, 0.08);

    --radius: 16px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

    --container: 900px;
    --space: clamp(16px, 3vw, 28px);

    /* keep in sync with header height */
    --header-h: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;

    background: var(--header-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.nav {
    height: var(--header-h);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    border-radius: 999px;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.35);
    outline-offset: 2px;
}

/* Layout */
.page {
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--header-h) + var(--space)) var(--space) var(--space);
    display: grid;
    gap: var(--space);
}

.panel {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 4vw, 28px);
    box-shadow: var(--shadow);
    text-align: center;
}

/* Type */
.headline {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;

    /* responsive sizing for mobile/desktop */
    font-size: clamp(18px, 2.6vw, 26px);
    word-break: break-word;
}

.subtext {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(14px, 1.8vw, 16px);
}

.inline-link {
    color: inherit;
}

/* Button */
.button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
}

.button:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.35);
    outline-offset: 2px;
}

/* Accessibility helper */
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: #111;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 2000;
}

.skip-link:focus {
    left: 8px;
}