/* The Commissioner's Desk — app chrome.
   Deliberately small. The newspaper itself carries the visual weight; these
   pages just need to get out of the way and let someone create one. */

:root {
    --cream:  #f2ede3;
    --paper:  #fffdf8;
    --ink:    #111111;
    --ink-2:  #3a3a3a;
    --muted:  #6b6050;
    --line:   #d8d0c0;
    --green:  #2d5016;
    --green-d:#1e3a0f;
    --gold:   #c8a200;
    --red:    #a11313;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------- chrome ---------- */

.masthead {
    border-bottom: 3px double var(--ink);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
}

.masthead-logo {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--ink);
    text-decoration: none;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- hero ---------- */

.hero { text-align: center; margin-bottom: 36px; }

.hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 46px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: var(--green); }

.hero-sub {
    font-size: 18px;
    color: var(--ink-2);
    max-width: 520px;
    margin: 0 auto 10px;
}

.hero-note {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
}

/* ---------- cards ---------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px;
    margin-bottom: 22px;
}

.card-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 4px;
}

.card-sub {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.page-head { margin-bottom: 28px; }

.eyebrow {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.page-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
}

.section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ---------- forms ---------- */

.stack { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field-narrow { max-width: 140px; }

.field-label {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-2);
}

.opt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    font-style: italic;
}

.field-help { font-size: 13px; color: var(--muted); }

input[type="text"], input[type="number"], select, textarea, .copy-input {
    font-family: inherit;
    font-size: 16px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--green);
    outline-offset: -1px;
}

textarea { resize: vertical; }

.inline-form { display: flex; gap: 14px; align-items: flex-end; }

.copy-input {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
    background: var(--cream);
    cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 11px 22px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-ghost {
    border-color: var(--line);
    color: var(--muted);
}
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- alerts ---------- */

.alert {
    padding: 16px 20px;
    margin-bottom: 22px;
    border-left: 4px solid var(--ink);
    background: var(--paper);
    font-size: 15px;
}

.alert-error { border-left-color: var(--red); }
.alert-success { border-left-color: var(--green); }
.alert-bookmark { border-left-color: var(--gold); background: #fffbe8; }
.alert a { color: var(--green); }

/* ---------- lists ---------- */

.joke-list, .paper-list { list-style: none; margin-bottom: 20px; }

.joke {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.paper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.paper-week {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    font-weight: 700;
}

.paper-meta { font-size: 13px; color: var(--muted); }

.empty { color: var(--muted); font-style: italic; margin-bottom: 18px; }

/* ---------- how it works ---------- */

.how { margin-top: 44px; }

.steps { list-style: none; counter-reset: step; }

.steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 46px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-2);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

.steps strong { color: var(--ink); }

/* ---------- cta ---------- */

.cta {
    margin-top: 44px;
    padding: 30px;
    text-align: center;
    border: 3px double var(--ink);
    background: var(--paper);
}
.cta p { color: var(--ink-2); margin-bottom: 18px; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
    .hero-title { font-size: 34px; }
    .page-title { font-size: 28px; }
    .field-row { flex-direction: column; }
    .field-narrow { max-width: none; }
    .wrap { padding: 28px 18px 60px; }
}

/* ---------- demo mode ---------- */

.demo-banner {
    background: var(--gold);
    color: #241f00;
    text-align: center;
    padding: 9px 16px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

/* ---------- checkbox + misc ---------- */

.check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 15px;
    cursor: pointer;
}
.check input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }
.check-help { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.how-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.how-note a { color: var(--green); }

/* ---------- setup wizard ---------- */

.radio-row { display: flex; gap: 12px; }

.radio-card {
    flex: 1;
    display: block;
    border: 1.5px solid var(--line);
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.12s, background 0.12s;
}
.radio-card:hover { border-color: var(--muted); }
.radio-card input { margin-right: 8px; }
.radio-card strong { display: inline; font-size: 15px; }
.radio-card em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    margin-left: 24px;
}
.radio-card:has(input:checked) {
    border-color: var(--green);
    background: #f7f9f4;
}

.setup-actions { margin-top: 8px; }

.setup-skip { text-align: center; margin-top: 18px; }

.btn-link {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px;
}
.btn-link:hover { color: var(--ink); }

/* ---------- published view ---------- */

.wrap-wide { max-width: 1180px; }

.published-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 3px double var(--ink);
    margin-bottom: 12px;
}

.published-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.published-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.published-hint {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.paper-frame {
    border: 1px solid var(--line);
    background: #fff;
    height: 78vh;
    min-height: 560px;
}
.paper-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.copy-row { display: flex; gap: 10px; }
.copy-row .copy-input { flex: 1; }

@media (max-width: 640px) {
    .radio-row { flex-direction: column; }
    .published-bar { flex-direction: column; align-items: flex-start; }
    .paper-frame { height: 70vh; }
}

/* ---------- editor ---------- */

.edit-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.paper-row-actions { display: flex; gap: 8px; }

/* ---------- theme picker ---------- */

.theme-row { display: flex; gap: 14px; }

.theme-card {
    flex: 1;
    display: block;
    border: 1.5px solid var(--line);
    padding: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.12s;
}
.theme-card:hover { border-color: var(--muted); }
.theme-card:has(input:checked) { border-color: var(--green); border-width: 2px; }
.theme-card input { margin-bottom: 8px; }

.theme-name {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}
.theme-blurb {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* Miniature of each paper, so the choice is visual rather than a word. */
.theme-sample {
    display: block;
    padding: 10px 9px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.theme-sample-masthead,
.theme-sample-head { display: block; }
.theme-sample-body {
    display: block;
    height: 4px;
    margin-top: 5px;
    opacity: 0.35;
}
.theme-sample-body.short { width: 62%; }

.theme-sample-tabloid { background: #f0ece4; }
.theme-sample-tabloid .theme-sample-masthead {
    font-family: "Playfair Display", serif; font-weight: 900;
    font-size: 15px; color: #111; text-align: center;
}
.theme-sample-tabloid .theme-sample-head {
    font-family: "Barlow Condensed", sans-serif; font-weight: 900;
    font-size: 13px; color: #c40000; text-transform: uppercase;
    margin-top: 6px; border-top: 3px double #111; padding-top: 5px;
}
.theme-sample-tabloid .theme-sample-body { background: #111; }

.theme-sample-broadsheet { background: #fffefb; }
.theme-sample-broadsheet .theme-sample-masthead {
    font-family: "Bodoni Moda", Didot, Georgia, serif; font-weight: 700;
    font-variation-settings: "opsz" 96;
    font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
    color: #111; text-align: center;
}
.theme-sample-broadsheet .theme-sample-head {
    font-family: "Libre Baskerville", Georgia, serif; font-weight: 700;
    font-size: 11px; color: #111; margin-top: 6px;
    border-top: 1px solid #111; padding-top: 5px;
}
.theme-sample-broadsheet .theme-sample-body { background: #333; }

.theme-sample-gameday { background: #14171c; }
.theme-sample-gameday .theme-sample-masthead {
    font-family: "Anton", sans-serif; font-size: 14px;
    color: #06210e; background: #16f04e; text-align: center;
    display: block; margin: -10px -9px 0; padding: 4px;
    text-transform: uppercase;
}
.theme-sample-gameday .theme-sample-head {
    font-family: "Anton", sans-serif; font-size: 13px; color: #fff;
    text-transform: uppercase; margin-top: 8px;
    border-top: 2px solid #16f04e; padding-top: 5px;
}
.theme-sample-gameday .theme-sample-body { background: #9fb0c4; }

@media (max-width: 640px) {
    .theme-row { flex-direction: column; }
    .theme-sample { height: 76px; }
}

/* ---------- footer links, added with the privacy and terms pages ---------- */

.footer-links {
    margin-top: 8px;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--line);
}

/* ---------- hero secondary action ---------- */

.hero-actions { margin: 22px 0 10px; }

/* ---------- a quieter button, for actions nobody should click by accident */

.btn-quiet {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}

.btn-quiet:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.card-divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0 18px;
}

/* ---------- legal pages ----------
   Long-form reading, so they get a measure and a rhythm rather than the
   card treatment the rest of the site uses. */

.legal { max-width: 62ch; margin: 0 auto; }

.legal-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 12px 0 6px;
}

.legal-updated {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 34px;
}

.legal-section { margin-bottom: 32px; }

.legal-section h2 {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

.legal-section p { margin: 0 0 12px; line-height: 1.7; }
.legal-section ul { margin: 0 0 12px; padding-left: 20px; }
.legal-section li { margin-bottom: 10px; line-height: 1.65; }

.legal-address {
    font-size: 13px;
    color: var(--muted);
    white-space: pre-line;
}
