/* Xmas Sambo Club. One stylesheet; every colour is a token below. Never hardcode a hex in a
   template or script: the drawn sandwich takes its colours from these too, so dark mode reaches it. */

/* Fonts are served by the app itself (static/fonts, SIL Open Font License): no third-party requests. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }

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

:root {
    --color-bg: #fbf8f1;            /* off-white */
    --color-surface: #ffffff;
    --color-surface-muted: #f1ece0;
    --color-text: #173d28;          /* holly green ink */
    --color-text-muted: #4a5e51;
    --color-border: #d9d2c2;
    --color-primary: #a3153a;       /* cranberry */
    --color-primary-dark: #7f0f2c;
    --color-on-primary: #ffffff;
    --color-success: #1d6b3d;
    --color-danger: #b3261e;
    --color-focus: #1f5fbf;
    --color-note: #fde68a;          /* sticky-note yellow */
    --color-note-text: #3b2f05;
    --color-caveat-bg: #fff4d6;
    --color-caveat-text: #6b4b00;
    --color-overlay: rgba(23, 61, 40, 0.92);
    --color-overlay-text: #fffbea;

    /* The drawing */
    --color-crust: #d9a441;         /* crust gold */
    --color-crust-edge: #a8772a;
    --color-meat: #c4876a;
    --color-gloss: #ffffff;
    --color-gravy: #6b3f1d;         /* gravy brown */
    --color-soaked: #8b5a2b;
    --color-cranberry: #b3243c;
    --color-stuffing: #7f6a3a;
    --color-brie: #f2e3b3;
    --color-shadow: rgba(23, 61, 40, 0.15);

    /* The About page's bands */
    --color-band: #173d28;          /* holly green */
    --color-on-band: #fbf8f1;
    --color-band-accent: #ffc9d6;   /* cranberry, lit for the dark band */
    --color-band-muted: #c9dccf;

    /* Tiers: background / text pairs, each AA */
    --tier-1-bg: #a3153a; --tier-1-text: #ffffff;
    --tier-2-bg: #1d6b3d; --tier-2-text: #ffffff;
    --tier-3-bg: #dcebd9; --tier-3-text: #173d28;
    --tier-4-bg: #efe7d2; --tier-4-text: #4a3d1a;
    --tier-5-bg: #f8dcc4; --tier-5-text: #6b2c00;
    --tier-6-bg: #e7e1d6; --tier-6-text: #4a4a4a;

    --font-display: 'Bricolage Grotesque', 'Atkinson Hyperlegible', system-ui, sans-serif;
    --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(23, 61, 40, 0.12);
    --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f1a14;
        --color-surface: #16261d;
        --color-surface-muted: #1e3226;
        --color-text: #e8f2ea;
        --color-text-muted: #a8bdae;
        --color-border: #2e4637;
        --color-primary: #ff8fa8;
        --color-primary-dark: #ffb3c4;
        --color-on-primary: #2b0710;
        --color-success: #7fd39b;
        --color-danger: #ff9b8f;
        --color-focus: #8ab8ff;
        --color-note: #e8cf6a;
        --color-note-text: #2a2205;
        --color-caveat-bg: #3a2f10;
        --color-caveat-text: #f5dc94;
        --color-overlay: rgba(15, 26, 20, 0.94);
        --color-overlay-text: #fff1c2;
        --color-crust: #d39a3a;
        --color-crust-edge: #8a5f1c;
        --color-meat: #b97b60;
        --color-gloss: #fff6e8;
        --color-gravy: #8a5428;
        --color-soaked: #9c6634;
        --color-cranberry: #d0405a;
        --color-stuffing: #93804c;
        --color-brie: #e6d7a5;
        --color-shadow: rgba(0, 0, 0, 0.4);
        --color-band: #0a2416;
        --color-on-band: #e8f2ea;
        --color-band-accent: #ff8fa8;
        --color-band-muted: #a8bdae;
        --tier-1-bg: #ff8fa8; --tier-1-text: #2b0710;
        --tier-2-bg: #7fd39b; --tier-2-text: #0c2616;
        --tier-3-bg: #2a4a35; --tier-3-text: #e8f2ea;
        --tier-4-bg: #3b3420; --tier-4-text: #f1e4bd;
        --tier-5-bg: #4a2a14; --tier-5-text: #ffd7b8;
        --tier-6-bg: #2e2e2a; --tier-6-text: #d7d3c8;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, .brand, .score { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; margin: 0.4em 0; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 1.6em 0 0.6em; }
a { color: var(--color-primary); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: var(--gutter); }

/* === Header === */
.site-header {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--color-text); text-decoration: none; margin-right: auto; }
.tabs { display: flex; gap: 4px; order: 3; width: 100%; }
.tab {
    flex: 1; text-align: center; padding: 8px 12px; border-radius: 999px;
    color: var(--color-text); text-decoration: none; font-weight: 700;
}
.tab.active { background: var(--color-text); color: var(--color-bg); }
.account { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.account-name { color: var(--color-text-muted); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.link-button {
    background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700;
    color: var(--color-primary); cursor: pointer; text-decoration: none;
}
.link-button:hover { text-decoration: underline; }

/* Fixed to the top only where it's one row: on a phone it's two rows, and kept on screen it covers
   the top of every page as you scroll. */
@media (min-width: 700px) {
    .site-header { position: sticky; top: 0; z-index: 5; }
    .tabs { order: 0; width: auto; }
    .tab { flex: none; }
}

/* === Page === */
.page { max-width: 960px; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.page-narrow { max-width: 480px; }
.site-footer { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; padding: 24px var(--gutter); }
.lede { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 0; }
.back-link { text-decoration: none; font-weight: 700; }

.card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px;
}
fieldset.card { min-width: 0; }
legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 0 4px; }

.empty-state { text-align: center; color: var(--color-text-muted); padding: 32px 0; font-size: 1.1rem; }

.alert { border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-weight: 700; }
.alert ul { margin: 4px 0 0; padding-left: 20px; font-weight: 400; }
.alert p { margin: 0; }
.alert-success { background: var(--tier-3-bg); color: var(--tier-3-text); }
.alert-error { background: var(--color-caveat-bg); color: var(--color-caveat-text); border-left: 4px solid var(--color-danger); }

/* === Buttons & forms === */
.btn {
    display: inline-block; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
    min-height: 44px;
}
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-danger { background: transparent; color: var(--color-danger); border-color: var(--color-danger); }
.btn-sm { padding: 4px 14px; min-height: 36px; font-size: 0.9rem; }
.btn-full { width: 100%; margin-top: 8px; }

.form-group { margin-bottom: 14px; }
.form-group label, .slider-head label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=password], textarea, input[type=file] {
    width: 100%; font: inherit; color: var(--color-text); background: var(--color-bg);
    border: 2px solid var(--color-border); border-radius: 8px; padding: 10px 12px;
}
input[aria-invalid=true] { border-color: var(--color-danger); }
.hint { color: var(--color-text-muted); font-size: 0.9rem; margin: 4px 0 0; }
.field-error { color: var(--color-danger); font-weight: 700; margin: 4px 0 0; font-size: 0.95rem; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px;
    border: 2px solid var(--color-border); border-radius: 999px; cursor: pointer; margin: 4px 0;
}
.toggle input, .absent input { width: 20px; height: 20px; accent-color: var(--color-primary); }

/* === Rate form === */
.rate-layout { display: grid; gap: 0 16px; }
.slider { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.slider:last-child { border-bottom: 0; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-head output { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; min-width: 2ch; text-align: right; }
.slider .hint { margin: 0 0 6px; }
input[type=range] { width: 100%; height: 32px; accent-color: var(--color-primary); }
input[type=range]:disabled { opacity: 0.35; }
.absent { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--color-text-muted); margin-top: 4px; min-height: 32px; }
.preview { text-align: center; align-self: start; }
.preview h2 { margin-top: 0; }
.preview .tier { min-height: 1.5em; }

@media (min-width: 760px) {
    .rate-layout { grid-template-columns: 3fr 2fr; }
    .preview { position: sticky; top: 90px; }
}

/* === Hero === */
.hero { display: grid; gap: 8px; align-items: center; padding: 12px 0 4px; position: relative; }
.hero-art { position: relative; justify-self: center; max-width: 320px; width: 100%; }
.hero-sandwich {
    background: none; border: 0; padding: 0; cursor: pointer; width: 100%; display: block;
    border-radius: var(--radius);
}
.hero-sandwich[data-bites="1"] .sandwich { -webkit-mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px); mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px); }
.hero-sandwich[data-bites="2"] .sandwich { -webkit-mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px), radial-gradient(circle at 74% 14%, transparent 20px, #000 21px); mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px), radial-gradient(circle at 74% 14%, transparent 20px, #000 21px); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-sandwich[data-bites="3"] .sandwich { -webkit-mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px), radial-gradient(circle at 74% 14%, transparent 20px, #000 21px), radial-gradient(circle at 92% 46%, transparent 18px, #000 19px); mask-image: radial-gradient(circle at 88% 22%, transparent 22px, #000 23px), radial-gradient(circle at 74% 14%, transparent 20px, #000 21px), radial-gradient(circle at 92% 46%, transparent 18px, #000 19px); -webkit-mask-composite: source-in; mask-composite: intersect; }
.sticky-note {
    position: absolute; right: -4px; top: -10px; transform: rotate(4deg);
    background: var(--color-note); color: var(--color-note-text); padding: 8px 10px; max-width: 150px;
    font-weight: 700; font-size: 0.8rem; line-height: 1.25; box-shadow: var(--shadow); margin: 0;
}
.my-sandwich {
    position: fixed; inset: 0; display: none; place-items: center; margin: 0; z-index: 20; pointer-events: none;
    background: var(--color-overlay); color: var(--color-overlay-text);
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 14vw, 7rem); text-align: center;
}
.my-sandwich.shouting { display: grid; animation: shake 0.5s linear 2; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-12px) rotate(-2deg); }
    40% { transform: translateX(12px) rotate(2deg); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}
@media (min-width: 700px) {
    .hero { grid-template-columns: 1.3fr 1fr; }
}

/* === Filters === */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.filter {
    flex: none; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--color-border);
    color: var(--color-text); text-decoration: none; font-weight: 700; font-size: 0.95rem; min-height: 40px;
}
.filter.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }

/* === Leaderboard === */
.board { list-style: none; margin: 0; padding: 0; }
.board-row { margin-bottom: 10px; }
.board-link {
    display: grid; grid-template-columns: 2.2ch 64px 1fr auto; gap: 10px; align-items: center;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 10px 12px; color: var(--color-text); text-decoration: none;
}
.board-link:hover .board-title { text-decoration: underline; }
.position { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--color-text-muted); text-align: right; }
.thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--color-surface-muted); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .sandwich { width: 100%; }
.board-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.board-title { font-weight: 700; overflow-wrap: anywhere; }
.board-meta { color: var(--color-text-muted); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.board-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.score { font-weight: 800; font-size: 1.5rem; }
.score-big { font-size: 3rem; margin: 0; }
.count { color: var(--color-text-muted); font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 420px) {
    .board-link { grid-template-columns: 2ch 52px 1fr; }
    .thumb { width: 52px; height: 52px; }
    .board-score { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
}

.tags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 0.78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--color-surface-muted); color: var(--color-text); }
.tag-mm { background: var(--color-gravy); color: var(--color-overlay-text); }
.tag-caveat { background: var(--color-caveat-bg); color: var(--color-caveat-text); }

.tier { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tier-my-sandwich { background: var(--tier-1-bg); color: var(--tier-1-text); }
.tier-worth-shouting { background: var(--tier-2-bg); color: var(--tier-2-text); }
.tier-solid { background: var(--tier-3-bg); color: var(--tier-3-text); }
.tier-fridge-filler { background: var(--tier-4-bg); color: var(--tier-4-text); }
.tier-bit-dry { background: var(--tier-5-bg); color: var(--tier-5-text); }
.tier-someone-else { background: var(--tier-6-bg); color: var(--tier-6-text); }

/* === Feed and rating cards === */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rating-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rating-card p { margin: 0; }
.card-link { color: var(--color-text); text-decoration: none; font-weight: 700; display: flex; flex-direction: column; gap: 8px; }
.card-link:hover .card-title { text-decoration: underline; }
.card-art { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--color-surface-muted); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art .sandwich { width: 100%; height: 100%; }
.card-score { display: flex; align-items: center; gap: 8px; }
.verdict { font-style: italic; overflow-wrap: anywhere; }
.byline { color: var(--color-text-muted); font-size: 0.9rem; }
.rating-photo { border-radius: 8px; width: 100%; }

/* === Sambo page === */
.sambo-header h1 { margin-bottom: 4px; }
.sambo-score { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.metric-label { color: var(--color-text-muted); margin: 0; font-size: 0.9rem; }
.sambo-facts { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 20px; margin: 0; }
.sambo-facts dt { color: var(--color-text-muted); font-size: 0.85rem; }
.sambo-facts dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.bars { list-style: none; padding: 0; margin: 0; }
.bar { display: grid; grid-template-columns: 9ch 1fr 3ch; align-items: center; gap: 10px; padding: 6px 0; }
.bar meter { width: 100%; height: 14px; }
.bar-value { font-weight: 700; text-align: right; }
.bar-none { grid-column: 2 / -1; color: var(--color-text-muted); font-style: italic; }

/* === The drawn sandwich === */
.sandwich { display: block; width: 100%; height: auto; }
.sw-bread { fill: var(--color-crust); stroke: var(--color-crust-edge); stroke-width: 1.5; }
.sw-meat { fill: var(--color-meat); }
.sw-gloss { fill: var(--color-gloss); }
.sw-gravy { fill: var(--color-gravy); }
.sw-soaked { fill: var(--color-soaked); }
.sw-cranberry { fill: var(--color-cranberry); }
.sw-stuffing { fill: var(--color-stuffing); }
.sw-brie { fill: var(--color-brie); }
.sw-shadow { fill: var(--color-shadow); }

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

/* The feed is twelve cards: compact rows on a phone, a grid of tiles from tablet up. */
.feed .card-link { flex-direction: row; align-items: center; gap: 12px; }
.feed .card-art { flex: none; width: 72px; aspect-ratio: 1; }
@media (min-width: 700px) {
    .feed .card-link { flex-direction: column; align-items: stretch; }
    .feed .card-art { width: auto; aspect-ratio: 4 / 3; }
}
.card > h2:first-child { margin-top: 0; }
#preview-drawing { max-width: 260px; margin: 0 auto; }

/* === Sharing and the review page === */
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-surface-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.actions form { margin: 0; }
.share-status { color: var(--color-success); font-weight: 700; font-size: 0.95rem; }
.rating-card:target { outline: 3px solid var(--color-primary); }
.review-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-top: 0; }
.review-art { border-radius: 10px; overflow: hidden; background: var(--color-surface-muted); margin: 12px 0; }
.review-art img { display: block; width: 100%; }
.review-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px 16px; margin: 12px 0; }
.review-scores dt { color: var(--color-text-muted); font-size: 0.85rem; }
.review-scores dd { margin: 0; font-weight: 700; }


/* === About: the page people land on from Slack === */
.about { overflow-x: clip; }
.mm-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.mm-center { text-align: center; }
.mm-section { padding: 56px 0; }
.mm-tinted { background: var(--color-surface-muted); }
.mm-section h2, .mm-bonus h2, .mm-cta h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 800; margin: 0 0 12px; }
.mm-sub { color: var(--color-text-muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 28px; }
.mm-small { color: var(--color-text-muted); margin-top: 24px; }

.mm-btn { font-size: 1.1rem; padding: 14px 26px; min-height: 52px; border-width: 3px; }
.mm-btn-hot { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 4px 0 var(--color-primary-dark); }
.mm-btn-hot:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--color-primary-dark); }
.mm-btn-hot:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--color-primary-dark); }
.mm-btn-ghost { color: var(--color-on-band); border-color: var(--color-on-band); background: transparent; }
.mm-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.mm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.mm-ctas-center { justify-content: center; }

/* Hero */
.mm-hero { background: var(--color-band); color: var(--color-on-band); padding: 48px 0 64px; position: relative; }
.mm-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
    background: radial-gradient(circle at 14px 0, var(--color-band) 13px, transparent 14px) 0 0 / 28px 28px repeat-x;
}
.mm-hero-grid { display: grid; gap: 32px; align-items: center; }
.mm-kicker {
    display: inline-block; background: var(--color-band-accent); color: var(--color-band);
    font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; transform: rotate(-2deg);
}
.mm-hero h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 0.98; margin: 0; letter-spacing: -0.02em; }
.mm-hero h1 span { color: var(--color-band-accent); }
.mm-lede { font-size: 1.2rem; color: var(--color-band-muted); max-width: 40ch; margin: 20px 0 0; }
.mm-hero-art { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.mm-sandwich { animation: mm-bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.3)); }
.mm-note {
    position: absolute; top: -6px; right: -4px; transform: rotate(6deg); margin: 0;
    background: var(--color-note); color: var(--color-note-text); font-weight: 800; font-size: 0.95rem;
    line-height: 1.2; padding: 12px 14px; max-width: 170px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
@keyframes mm-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (min-width: 800px) { .mm-hero-grid { grid-template-columns: 1.15fr 1fr; } .mm-hero { padding: 80px 0 96px; } }

/* Legend */
.mm-legend { display: grid; gap: 24px; align-items: center; }
.mm-quote {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 12vw, 4.8rem); line-height: 0.95;
    color: var(--color-primary); transform: rotate(-4deg); text-align: center; hyphens: manual;
}
.mm-legend p { font-size: 1.1rem; max-width: 56ch; }
@media (min-width: 800px) { .mm-legend { grid-template-columns: 1fr 1.4fr; } }

/* Steps */
.mm-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.mm-steps li {
    background: var(--color-surface); border: 3px solid var(--color-text); border-radius: 18px; padding: 24px;
    box-shadow: 6px 6px 0 var(--color-text); position: relative;
}
.mm-steps li:nth-child(2) { transform: rotate(1deg); }
.mm-steps li:nth-child(3) { transform: rotate(-1deg); }
.mm-steps h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.mm-steps p { margin: 0; color: var(--color-text-muted); }
.mm-step-n {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-primary); color: var(--color-on-primary);
    font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
}
@media (min-width: 760px) { .mm-steps { grid-template-columns: repeat(3, 1fr); } }

/* Ingredients */
.mm-ingredients { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.mm-ingredient {
    display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
    background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 16px; padding: 16px;
}
.mm-ingredient.mm-heavy { border-color: var(--color-primary); border-width: 3px; }
.mm-swatch { width: 40px; height: 40px; border-radius: 10px; grid-row: span 2; border: 2px solid rgba(0, 0, 0, 0.15); }
.mm-swatch-bread { background: var(--color-crust); }
.mm-swatch-moisture { background: linear-gradient(160deg, var(--color-gloss) 0 22%, var(--color-meat) 23%); }
.mm-swatch-meat { background: var(--color-meat); }
.mm-swatch-gravy { background: var(--color-gravy); }
.mm-swatch-cranberry { background: var(--color-cranberry); }
.mm-swatch-stuffing { background: var(--color-stuffing); }
.mm-swatch-brie { background: var(--color-brie); }
.mm-ing-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.mm-weight {
    font-family: var(--font-display); font-weight: 800; background: var(--color-surface-muted);
    border-radius: 999px; padding: 2px 10px;
}
.mm-heavy .mm-weight { background: var(--color-primary); color: var(--color-on-primary); }
.mm-ing-prompt { grid-column: 2 / -1; color: var(--color-text-muted); font-size: 0.95rem; }
.mm-optional { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); }

/* Bonus */
.mm-bonus { background: var(--color-gravy); color: var(--color-overlay-text); padding: 48px 0; }
.mm-bonus-grid { display: grid; gap: 8px 32px; align-items: center; }
.mm-bonus .mm-bonus-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 0.9; margin: 0; }
.mm-bonus p { font-size: 1.15rem; max-width: 50ch; }
@media (min-width: 700px) { .mm-bonus-grid { grid-template-columns: auto 1fr; } }

/* Tier ladder: widest at the top */
.mm-ladder { list-style: none; padding: 0; margin: 28px auto 0; max-width: 640px; display: grid; gap: 8px; }
.mm-ladder li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: 12px; font-weight: 800;
    width: calc(100% - var(--rung) * 2.5%); margin: 0 auto;
}
@media (min-width: 700px) { .mm-ladder li { width: calc(100% - var(--rung) * 6%); } }
.mm-rung-range { font-family: var(--font-display); font-size: 1.2rem; }
.mm-rung-label { font-size: 1rem; }

/* Versus */
.mm-versus { display: grid; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto; }
.mm-vs-card { background: var(--color-surface); border: 3px solid var(--color-border); border-radius: 18px; padding: 24px; text-align: center; }
.mm-vs-win { border-color: var(--color-success); box-shadow: 6px 6px 0 var(--color-success); transform: rotate(1deg); }
.mm-vs-who { font-weight: 700; margin: 0; }
.mm-vs-score { font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 1; margin: 8px 0; }
.mm-vs-win .mm-vs-score { color: var(--color-success); }
.mm-vs-note { margin: 0; color: var(--color-text-muted); }
.mm-vs { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-align: center; margin: 0; color: var(--color-primary); }
@media (min-width: 700px) { .mm-versus { grid-template-columns: 1fr auto 1fr; } }

/* House rules on sticky notes */
.mm-notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.mm-notes li {
    background: var(--color-note); color: var(--color-note-text); padding: 22px 18px 26px; line-height: 1.4;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12); transform: rotate(-2deg); transition: transform 0.2s;
}
.mm-notes li:nth-child(even) { transform: rotate(2deg); }
.mm-notes li:hover { transform: rotate(0) scale(1.03); }
.mm-notes strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }

/* Closing call to action */
.mm-cta { background: var(--color-band); color: var(--color-on-band); padding: 64px 0; }
.mm-cta p { color: var(--color-band-muted); font-size: 1.15rem; }
.mm-cta .share { color: var(--color-on-band); border-color: var(--color-on-band); font-size: 1.1rem; padding: 14px 26px; min-height: 52px; border-width: 3px; }
.mm-cta .share-status { color: var(--color-band-accent); }
.about + .site-footer { padding-top: 32px; }
.mm-cta .share:hover { background: rgba(255, 255, 255, 0.1); }

/* Reviews keep the line breaks people typed; the feed shows the first four lines of a long one. */
.verdict { white-space: pre-line; }
.verdict-clipped { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-weight: 700; font-size: 0.9rem; text-decoration: none; }
