@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --black: #050505;
    --white: #f1f0eb;
    --muted: #8b8b87;
    --line: rgba(241, 240, 235, .18);
    --red: #e33b32;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--black);
    color: var(--white);
    font-family: 'Space Grotesk', Arial, sans-serif;
}
a { color: inherit; }

/* Auth intentionally stays within the viewport: the full-bleed image is the page. */
.login-page {
    height: 100vh;
    overflow: hidden;
    background: #111 url('/static/images/login-bg.webp') center center / cover no-repeat;
}
.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 100vh;
    padding: 24px;
}
.auth-card {
    width: min(420px, 100%);
    padding: 42px 44px 38px;
    background: var(--black);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 22px 80px rgba(0,0,0,.42);
}
.eyebrow {
    margin: 0 0 17px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
h1, p { margin-top: 0; }
.auth-card h1 { margin-bottom: 9px; font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.auth-subtitle { margin-bottom: 30px; color: #bbb; font-size: 13px; line-height: 1.5; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 8px; color: #c6c6c2; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.auth-form input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    outline: none;
    background: rgba(255,255,255,.05);
    color: var(--white);
    font: inherit;
}
.auth-form input:focus { border-color: var(--white); background: rgba(255,255,255,.09); }
.auth-form button {
    height: 48px;
    margin-top: 18px;
    border: 1px solid var(--white);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font: 600 12px 'DM Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: .2s ease;
}
.auth-form button:hover { background: transparent; color: var(--white); }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a, .text-link { text-decoration: underline; text-underline-offset: 4px; }
.auth-switch a:hover, .text-link:hover { color: var(--red); }

.flash-stack { position: fixed; z-index: 5; top: 84px; right: 28px; width: min(340px, calc(100% - 56px)); }
.auth-flashes { margin: -8px 0 18px; }
.flash { padding: 11px 13px; border: 1px solid var(--line); background: #111; color: #ddd; font-size: 12px; line-height: 1.4; }
.flash + .flash { margin-top: 6px; }
.flash.error { border-color: rgba(227,59,50,.7); color: #ffaaa5; }
.flash.success { border-color: rgba(155,209,155,.65); color: #bce2bc; }

.site-page { min-height: 100vh; background: var(--black); }
.navbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 76px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--muted);
    font: 11px 'DM Mono', monospace;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.profile-button { justify-self: end; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }
.profile-button:hover { border-color: var(--white); }
.profile-button svg, .large-avatar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.3; }
.page-content { width: min(1160px, calc(100% - 68px)); margin: 0 auto; }

.hero-panel {
    display: grid;
    min-height: calc(100vh - 76px);
    place-items: center;
    padding: 40px 0;
}
.hero-panel h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -.06em;
    text-align: center;
}
.text-link { font-size: 12px; }
.text-link span { margin-left: 8px; text-decoration: none; }

.content-panel { padding: 82px 0 100px; }
.section-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 42px;
    padding-bottom: 26px;
    text-align: center;
}
.section-heading h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: .9; letter-spacing: -.07em; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.archive-tile { margin: 0; background: #181818; }
.archive-tile img { width: 100%; height: auto; display: block; }

.manifesto-panel { max-width: 940px; padding-top: 100px; }
.manifesto-panel blockquote {
    margin: 0;
    padding: 0;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
}
.profile-panel { max-width: 700px; padding: clamp(100px, 17vh, 180px) 0; }
.profile-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 48px; }
.profile-heading h1 { margin: 0; font-size: clamp(30px, 5vw, 58px); letter-spacing: -.06em; }
.large-avatar { display: grid; flex: 0 0 74px; place-items: center; width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 50%; }
.large-avatar svg { width: 32px; height: 32px; }
.profile-details { display: grid; grid-template-columns: 120px 1fr; gap: 17px 24px; margin-bottom: 44px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-details span { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.profile-details strong { font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }

@media (max-width: 680px) {
    .navbar { padding: 0 18px; }
    .nav-links { gap: 16px; }
    .page-content { width: min(100% - 36px, 1160px); }
    .image-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .section-heading { display: block; }
    .section-heading h1 { margin-bottom: 20px; }
    .auth-card { padding: 32px 25px 29px; }
}
