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

:root {
    --bg: #f8f7f5;
    --bg-elevated: #ffffff;
    --bg-subtle: #f0eeeb;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-soft: #fff7ed;
    --accent-ring: rgba(234, 88, 12, 0.25);
    --focus-ring: 2px solid var(--accent);
    --focus-offset: 2px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --layout-inline: clamp(var(--space-4), 3vw, var(--space-8));
    --content-max: 720px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-lg: clamp(1.375rem, 3.5vw, 1.625rem);
}

html {
    height: 100%;
    font-size: 100%;
}

body {
    height: 100%;
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--space-6) var(--layout-inline) var(--space-8);
}

.content-column {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
}

main.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.header-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-2);
    margin: calc(var(--space-2) * -1);
    border-radius: var(--radius-sm);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-5);
    min-height: 0;
    padding-block: var(--space-4);
}

.hero h1 {
    user-select: none;
    -webkit-user-select: none;
}

h1 {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 22ch;
    line-height: 1.2;
}

.lead {
    color: var(--text-muted);
    max-width: 34rem;
    width: 100%;
    line-height: 1.55;
    font-size: var(--text-sm);
}

.lead strong {
    color: var(--text);
    font-weight: 600;
}

.inline-code {
    font-size: 0.88em;
    background: var(--bg-subtle);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.landing-note {
    width: 100%;
    max-width: 34rem;
    text-align: left;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.55;
}

.landing-note strong {
    color: var(--text);
    font-weight: 600;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 34rem;
}

.landing-actions .btn-primary {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    text-align: center;
    justify-content: center;
}

.landing-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 34rem;
    line-height: 1.55;
}

.site-footer {
    padding-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-site {
    margin-bottom: var(--space-2);
}

.footer-copy {
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.text-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-ring);
}

.text-link:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    min-height: 44px;
    padding: var(--space-2) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    font-family: var(--font);
    text-decoration: none;
}

.btn:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

@media (max-width: 560px) {
    .landing-actions {
        flex-direction: column;
    }

    .landing-actions .btn-primary {
        width: 100%;
        min-width: 0;
    }
}
