:root {
    --ink: #0a0a0a;
    --paper: #ece9e2;
    --paper-light: #f4f2ee;
    --muted: #4a4741;
}

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

html, body { margin: 0; }

body {
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 "IBM Plex Mono", ui-monospace, monospace;
}

a { color: var(--ink); }
a:hover { color: #444; }

.paper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(90deg, rgba(0,0,0,.06), transparent 2%, transparent 98%, rgba(0,0,0,.06));
}

.stack {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---------- Wordmark ---------- */
.wordmark {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0 .22em;
    font-size: clamp(44px, 11vw, 104px);
    font-weight: 400;
    transform: rotate(-3deg);
}
.word { display: inline-flex; white-space: nowrap; }
.wm, .wm-dark {
    display: inline-block;
    font-family: "Bowlby One", "Arial Black", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
}
.wm {
    color: var(--paper-light);
    -webkit-text-stroke: .09em var(--ink);
    paint-order: stroke fill;
    text-shadow: .07em .07em 0 var(--ink);
}

.tagline {
    margin: 28px 0 0;
    font-family: "Special Elite", monospace;
    font-size: clamp(18px, 3.6vw, 24px);
}

/* ---------- Coffee pot ---------- */
.pot { margin: 40px 0 0; }
.pot svg {
    width: clamp(170px, 40vw, 240px);
    height: auto;
    filter: drop-shadow(8px 8px 0 var(--ink));
    overflow: visible;
}
.steam path { animation: steam 2.8s ease-in-out infinite; }
.steam .s2 { animation-delay: .5s; }
.steam .s3 { animation-delay: 1s; }
@keyframes steam {
    0%   { opacity: 0; transform: translateY(10px); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
    .steam path { animation: none; }
}

.brewing {
    margin: 36px 0 0;
    font-family: Anton, Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 10vw, 84px);
    line-height: 1;
    text-transform: uppercase;
    transform: rotate(-1deg);
}
.sub {
    margin: 14px 0 0;
    font-family: "Special Elite", monospace;
    font-size: 18px;
    max-width: 36ch;
}

/* ---------- Signup ---------- */
.signup {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 48px 0 0;
    padding: 40px 28px 28px;
    background: #f7f5f0;
    border: 4px solid var(--ink);
    transform: rotate(.6deg);
}
/* staples */
.signup::before, .signup::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 36px;
    height: 5px;
    background: linear-gradient(#b0b0b0, #4a4a4a);
}
.signup::before { left: 22px; transform: rotate(-9deg); }
.signup::after  { right: 26px; transform: rotate(6deg); }

.marker {
    margin: 0 0 20px;
    font-family: "Rock Salt", cursive;
    font-size: clamp(20px, 4.4vw, 28px);
    line-height: 1.3;
    transform: rotate(-2deg);
}

.form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.form input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    background: var(--paper-light);
    border: 3px solid var(--ink);
    border-radius: 0;
}
.form input[type="email"]:focus-visible,
.form button:focus-visible,
.social a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
.form button {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 26px;
    font-family: Anton, Impact, sans-serif;
    font-size: 22px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--paper-light);
    background: var(--ink);
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.form button:hover { background: #333; }

.error {
    margin: 14px 0 0;
    padding: 8px 12px;
    font-weight: 600;
    background: var(--ink);
    color: var(--paper-light);
}
.thanks {
    margin: 0;
    padding: 14px 16px;
    font-family: "Special Elite", monospace;
    font-size: 20px;
    background: var(--ink);
    color: var(--paper-light);
}
.fineprint {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* honeypot: off-screen for people, visible to naive bots */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Social ---------- */
.social {
    margin: 40px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.social a {
    display: inline-block;
    min-height: 48px;
    padding: 10px 22px;
    font-family: Anton, Impact, sans-serif;
    font-size: 22px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-solid { background: var(--ink); color: var(--paper-light) !important; transform: rotate(-1.5deg); }
.btn-line  { border: 3px solid var(--ink); transform: rotate(1.5deg); }

/* ---------- Footer ---------- */
.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 32px;
    padding: 28px 24px;
    background: var(--ink);
    color: var(--paper-light);
    font-family: "Special Elite", monospace;
    font-size: 14px;
}
.wm-dark {
    font-size: 26px;
    color: var(--paper-light);
    text-shadow: .06em .06em 0 #6b6862;
    transform: rotate(-2deg);
}

@media (max-width: 520px) {
    .form button { flex-basis: 100%; }
    .signup { padding: 40px 20px 24px; }
}
