/* Budget Rhythm Roulette design system — shared by the entry page and the
   Budget Rhythm Roulette page. */

:root {
    --ink: #3a2a1a;
    --paper: #f3e9d8;
    --sand: #cbb89f;
    --panel: #ece0cc;
    --accent: #b5451f;
    --accent-dark: #7a2f12;
    --muted: #8a745c;
    --font-body: 'Archivo', sans-serif;
    --font-display: 'Archivo Black', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:hover { color: var(--accent-dark); }

p { text-wrap: pretty; }

/* --- layout --- */

.page {
    padding: 56px 24px 90px;
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 760px;
    background: var(--paper);
    color: var(--ink);
    padding: 54px 50px 48px;
    border: 3px solid var(--ink);
    box-shadow: 12px 12px 0 rgba(58, 42, 26, 0.8);
}

@media (max-width: 480px) {
    .card {
        padding: 36px 24px 32px;
    }
}

/* --- shared type --- */

.tag {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.title {
    font-family: var(--font-display);
    font-size: clamp(36px, 11vw, 68px);
    line-height: 0.92;
    margin: 18px 0 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.accent { color: var(--accent); }

.section-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 32px;
    margin: 48px 0 24px;
}
.section-title--sm { font-size: 28px; margin: 0 0 18px; }

.lead { font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.lead--first { margin: 30px 0 16px; }

.callout {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    padding: 16px 18px;
    background: var(--panel);
    border-left: 5px solid var(--accent);
}

/* --- steps --- */

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
}
.step-num--accent { background: var(--accent); }
.step-body { flex: 1; padding-top: 8px; }
.step-text { flex: 1; margin: 0; padding-top: 8px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.step-text--strong { font-weight: 700; }
.step-body .step-text { padding-top: 0; }

.choice { margin: 0; font-size: 16px; line-height: 1.5; padding-left: 22px; text-indent: -22px; }
.choice-label { font-family: var(--font-display); color: var(--accent); }

/* --- letter generator --- */

.generator {
    margin-top: 16px;
    border: 3px solid var(--ink);
    background: var(--ink);
    padding: 14px;
    max-width: 300px;
}
.generator__list { display: flex; flex-direction: column; gap: 10px; }

.gen {
    background: var(--paper);
    padding: 10px 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gen__letter {
    font-family: var(--font-display);
    font-size: 46px;
    line-height: 0.85;
    color: var(--accent);
    width: 44px;
    text-align: center;
    flex: 0 0 auto;
}
.gen__main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gen__head { display: flex; align-items: center; justify-content: space-between; }
.gen__index {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.gen__remove {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    padding: 0;
}
.gen__modes { display: flex; gap: 3px; }
.gen__mode {
    flex: 1;
    padding: 5px 3px;
    border: none;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(58, 42, 26, 0.08);
    color: var(--ink);
}
.gen__mode.is-active { background: var(--accent); color: var(--paper); }
.gen__spin {
    border: none;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px;
    cursor: pointer;
}
.gen__add {
    margin-top: 10px;
    width: 100%;
    border: 2px dashed var(--accent);
    background: none;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 12px;
    cursor: pointer;
}

/* --- guidelines --- */

.guides { display: flex; flex-direction: column; gap: 12px; }
.guide { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); padding: 14px 16px; }
.guide__num { font-family: var(--font-display); color: var(--accent); font-size: 16px; }
.guide__text { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; }

.block { margin-top: 44px; }

/* --- examples --- */

.examples { display: flex; flex-direction: column; gap: 22px; }
.example { border: 3px solid var(--ink); background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.example__row { display: flex; flex-direction: column; gap: 10px; }
.example__row--find { flex-direction: row; gap: 18px; flex-wrap: wrap; }
.example__art {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border: 2px solid var(--ink);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.example__art--img { padding: 0; }
.example__art--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.example__body { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.example__kicker { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.example__text { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
.example__player { display: block; border: none; }

/* --- big call-to-action button (entry page) --- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 18px 32px;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(58, 42, 26, 0.8);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
    color: var(--paper);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(58, 42, 26, 0.85);
}
.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 rgba(58, 42, 26, 0.8);
}

/* --- entry page --- */

.hero-title { margin: 18px 0 0; }
.hero-text { font-size: 17px; line-height: 1.6; margin: 28px 0; }
.cta-row { margin-top: 36px; }

/* --- new release embed (entry page) --- */

.release { margin-top: 28px; border: 3px solid var(--ink); background: var(--paper); padding: 16px; }
.release__kicker { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.release__embed { display: block; border: none; }
