:root {
    --ink: #252c3a;
    --paper: #f5f5f1;
    --line: #dfe3dc;
    --muted: #5f6763;
    --red: #b3261e;
    --party: #2d5f8b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 17px/1.5 'Source Sans 3', Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #235bba; outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; line-height: 1.05; margin: 0; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px max(36px, calc((100vw - 1208px) / 2));
}

.brand { font-size: 23px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; white-space: nowrap; }

.mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
}

.satire {
    border: 2px solid var(--red);
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 10px;
    transform: rotate(-4deg);
}

main { max-width: 1280px; margin: auto; padding: 0 36px; }

.intro { padding: 48px 0 32px; border-bottom: 2px solid var(--ink); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.7px; color: var(--red); }
h1 { font-size: 72px; font-weight: 700; letter-spacing: -1px; margin: 14px 0 18px; }
h1 em { font-style: normal; color: var(--red); }
.intro p { max-width: 760px; font-size: 19px; color: var(--muted); margin: 0; }

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    padding: 34px 0 40px;
}

.controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.controls label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }

select {
    min-width: 220px;
    background: #fff;
    border: 1px solid #c6cec5;
    border-radius: 3px;
    padding: 11px 13px;
    color: var(--ink);
}

.primary {
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 3px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 18px;
}

.primary:hover { background: #8f1d17; }

.poster {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 10px solid var(--party);
    padding: 30px 34px 26px;
    min-height: 380px;
}

.poster.fresh { animation: pop .35s ease-out; }

@keyframes pop {
    from { transform: scale(.97); opacity: .4; }
    to { transform: none; opacity: 1; }
}

.poster-top { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 86px;
    padding: 0 14px;
    border-radius: 43px;
    background: var(--party);
    color: #fff;
    font: 800 30px 'Barlow Condensed', sans-serif;
    letter-spacing: .5px;
}

.list { font-size: 14px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.list b { font: 700 30px 'Barlow Condensed', sans-serif; color: var(--ink); }

.poster h2 { font-size: 58px; font-weight: 800; margin: 22px 0 6px;  overflow-wrap: anywhere; }
.footnote { font-size: 13px; color: var(--muted); margin: 0; }
.slogan { font-size: 23px; font-style: italic; margin: 14px 0 22px;  }

.stamp {
    margin: 0 auto 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 210px;
    border: 4px double var(--red);
    color: var(--red);
    padding: 6px 14px;
    transform: rotate(-12deg);
    text-align: center;
    background: #fffc;
}

.stamp small { font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.stamp span { font: 800 26px/1.05 'Barlow Condensed', sans-serif; }
.poster.fresh .stamp { animation: stamp .45s .2s both cubic-bezier(.2, 1.6, .5, 1); }

@keyframes stamp {
    from { transform: rotate(-12deg) scale(2.2); opacity: 0; }
    to { transform: rotate(-12deg) scale(1); opacity: 1; }
}

.truth { max-width: 420px; }
.truth-label { display: flex; justify-content: space-between; font-size: 13px; }
.truth-bar { height: 10px; background: #eceee8; border-radius: 5px; margin-top: 5px; overflow: hidden; }
.truth-bar span { display: block; height: 100%; background: var(--red); border-radius: 5px; transition: width .5s; }

.inspired { font-size: 13px; color: var(--muted); margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }

.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.share button { background: #fff; border: 1px solid #adb5ab; border-radius: 3px; padding: 9px 14px; }
.share button:hover { border-color: var(--ink); }
#share-status { font-size: 13px; color: var(--muted); }

.counter { align-self: start; background: #fff; border: 1px solid var(--line); padding: 22px 20px; }
.counter h3 { font-size: 28px; }
.counter svg { width: 100%; display: block; margin: 12px 0; }
.head { fill: #d9a86c; stroke: #8a5a2b; stroke-width: 3; }
.eye { fill: var(--ink); }
.mouth { fill: none; stroke: #8a5a2b; stroke-width: 3; stroke-linecap: round; }
.nose-shape { fill: #c48a4b; stroke: #8a5a2b; stroke-width: 3; transition: width .4s cubic-bezier(.2, 1.4, .5, 1); }
.counter p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }

.explainer { border-top: 2px solid var(--ink); padding: 30px 0 45px; max-width: 820px; }
.explainer h3 { font-size: 30px; margin-bottom: 8px; }
.explainer p { color: var(--muted); font-size: 16px; }

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--ink);
    color: #fff;
    padding: 28px max(36px, calc((100vw - 1208px) / 2));
    font-size: 13px;
}

@media (max-width: 900px) {
    .workspace { grid-template-columns: 1fr; }
    .counter { display: grid; grid-template-columns: 160px 1fr; gap: 0 18px; align-items: center; }
    .counter h3 { grid-column: 1 / -1; }
    .counter svg { grid-row: span 2; }
}

@media (max-width: 640px) {
    main { padding: 0 16px; }
    header { padding: 14px 16px; }
    .brand { font-size: 17px; }
    .mark { width: 34px; height: 34px; }
    h1 { font-size: 46px; }
    .intro { padding-top: 28px; }
    .intro p { font-size: 16px; }
    .controls { flex-direction: column; align-items: stretch; }
    select { min-width: 0; width: 100%; }
    .poster { padding: 22px 18px 20px; min-height: 0; }
    .logo { min-width: 64px; height: 64px; font-size: 22px; }
    .poster h2 { font-size: 40px; max-width: none; }
    .slogan { font-size: 19px; max-width: none; }
    .poster-top { flex-wrap: wrap; }
    .stamp { order: 3; margin: 16px 0 0 4px; padding: 4px 10px; }
    .stamp span { font-size: 19px; }
    .counter { grid-template-columns: 110px 1fr; }
    footer { flex-direction: column; padding: 24px 16px; }
}
