:root {
    --ink: #151515;
    --paper: #f7f1e7;
    --card: #fffdf8;
    --red: #d62d20;
    --red-dark: #9f1912;
    --gold: #efbf25;
    --gold-dark: #c7960d;
    --muted: #6c645b;
    --line: #1f1f1f;
    --shadow: 8px 8px 0 #151515;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(214,45,32,.08), transparent 35%),
        var(--paper);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--red-dark); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -.04em;
}
.site-brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: .68rem;
    line-height: 1;
    font-weight: 1000;
}
.site-nav { display: flex; gap: 20px; font-size: .9rem; font-weight: 700; }
.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: currentColor; }

.site-main { min-height: calc(100vh - 210px); }
.hero {
    width: min(820px, calc(100% - 32px));
    margin: 22px auto 42px;
    text-align: center;
}
.fail-button {
    width: 152px;
    height: 152px;
    border: 6px solid var(--ink);
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(-5deg);
    transition: transform .15s ease, box-shadow .15s ease;
}
.fail-button:hover { transform: translate(3px, 3px) rotate(-3deg); box-shadow: 6px 6px 0 var(--ink); }
.fail-button:active { transform: translate(8px, 8px) rotate(-1deg); box-shadow: 2px 2px 0 var(--ink); }
.fail-button span { display: block; font-size: 2.25rem; font-weight: 1000; letter-spacing: -.08em; }
.eyebrow { margin: 28px 0 8px; color: var(--red-dark); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .content-page h1 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(3rem, 10vw, 7.2rem);
    line-height: .9;
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.hero__intro { max-width: 670px; margin: 22px auto 0; font-size: clamp(1rem, 2.5vw, 1.2rem); }

.story-stage { width: min(1180px, calc(100% - 32px)); margin: 0 auto 72px; }
.story-stage--single { padding-top: 8vh; }
.story-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 24px;
    align-items: center;
}
.story-stack { min-width: 0; }
.story-card {
    position: relative;
    padding: clamp(28px, 5vw, 58px);
    border: 4px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.story-card.is-loading { opacity: .45; transform: translateY(2px); }
.story-card__type {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 10px;
    border: 2px solid var(--ink);
    background: #fff;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}
.story-card__quote {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 750;
    line-height: 1.42;
    overflow-wrap: anywhere;
}
.story-card__quote p { margin: 0 0 1em; }
.story-card__quote p:last-child { margin-bottom: 0; }
.story-card__name { margin: 26px 0 0; color: var(--muted); font-weight: 800; }
.is-hidden { display: none !important; }
.story-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 3px solid var(--ink);
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { color: inherit; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button--primary { background: var(--red); color: #fff; }
.button--secondary { background: #fff; color: var(--ink); }
.button--wide { width: 100%; }
.action-message { min-height: 1.5em; margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }

.side-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 132px;
    padding: 18px 14px;
    text-decoration: none;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--ink);
    text-align: center;
}
.side-tile__icon {
    font-size: 2rem;
    line-height: 1;
}
.side-tile__label {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}
.side-tile--beer {
    background: linear-gradient(180deg, #f6d66c 0%, var(--gold) 100%);
    border-color: var(--gold-dark);
}
.side-tile--ad {
    background: #fffdf8;
}

.content-page {
    width: min(760px, calc(100% - 32px));
    margin: 58px auto 92px;
}
.content-page h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 34px; }
.content-page p { font-size: 1.05rem; }
.content-page h2 { margin-top: 38px; font-size: 1.35rem; }
.content-page--form { width: min(830px, calc(100% - 32px)); }
.content-page--form > p { max-width: 700px; }
.story-form { margin-top: 36px; padding: clamp(22px, 5vw, 42px); border: 4px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.story-form label { display: block; margin-top: 22px; }
.story-form input[type="text"], .story-form input[type="email"], .story-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 3px solid var(--ink);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}
.story-form textarea { resize: vertical; min-height: 260px; }
.story-form input:focus, .story-form textarea:focus { outline: 4px solid rgba(214,45,32,.2); outline-offset: 1px; }
.story-form fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.story-form legend { margin-bottom: 10px; font-size: 1.05rem; font-weight: 900; }
.choice-card { display: flex !important; align-items: flex-start; gap: 12px; margin-top: 10px !important; padding: 14px; border: 3px solid var(--ink); border-radius: 8px; background: #fff; }
.choice-card input { margin-top: 5px; accent-color: var(--red); }
.choice-card span { display: grid; gap: 2px; }
.choice-card small, .field-help, .story-form label span { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.permission-row { display: flex !important; align-items: flex-start; gap: 10px; margin: 26px 0 !important; }
.permission-row input { margin-top: 4px; accent-color: var(--red); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin: 24px 0; padding: 14px 16px; border: 3px solid var(--ink); border-radius: 8px; }
.notice--success { background: #e9f7e7; }
.notice--error { background: #ffe6e3; }
.empty-state { text-align: center; }
.empty-state h2 { font-size: 2rem; }
.legal-copy h1 { margin-bottom: 46px; }

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 38px;
    border-top: 3px solid var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .82rem;
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; gap: 10px; }

@media (max-width: 860px) {
    .story-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .story-stack { order: 1; }
    .side-tile--beer { order: 2; }
    .side-tile--ad { order: 3; }
    .story-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #another-story {
        grid-column: 1 / -1;
    }
    .side-tile {
        min-height: 56px;
        padding: 12px 14px;
        flex-direction: row;
        justify-content: center;
    }
    .side-tile__icon { font-size: 1.35rem; }
}

@media (max-width: 700px) {
    .site-header { align-items: flex-start; }
    .site-nav { gap: 10px; flex-direction: column; text-align: right; }
    .hero { margin-top: 8px; }
    .fail-button { width: 116px; height: 116px; }
    .fail-button span { font-size: 1.8rem; }
    .story-stage { width: min(100%, calc(100% - 20px)); margin-bottom: 56px; }
    .story-card { padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
    .story-card__quote { font-size: clamp(1.1rem, 4.8vw, 1.35rem); }
    .story-actions { gap: 10px; }
    .button { min-height: 50px; font-size: .95rem; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
