/* READOUT theme v2.1. Classified-cable look.
   One shared grid (.inner + .grid) so header, hero, columns and footer share the same edges.
   Breakpoints: desktop >= 1100, tablet 760-1099, mobile < 760. */

@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

:root {
    --ink: #0A0A0A; --paper: #FFFFFF; --yellow: #FFD700; --yellow-edge: #D4B800; --yellow-wash: #FFF8CC;
    --grey: #555555; --rule: #D9D9D9;
    --mono: var(--gh-font-heading, "IBM Plex Mono"), "Courier New", monospace;
    --serif: var(--gh-font-body, Georgia), "Times New Roman", serif;
    --gutter: 40px; --colgap: 48px;
    --logo: clamp(52px, 6.2vw, 80px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--ink); background: var(--paper); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- shared container + grid ---------- */
.inner { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--colgap); row-gap: 40px; align-items: start; }
.wrap { padding-top: 48px; padding-bottom: 64px; }

/* ---------- HEADER ---------- */
.site-header { background: var(--ink); color: var(--yellow); border-bottom: 2px solid var(--yellow); }
.hd { display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--colgap); align-items: start; padding-top: 30px; padding-bottom: 30px; }
.site-title { display: block; font-family: var(--mono); font-weight: 700; font-size: var(--logo); letter-spacing: .05em; line-height: 1; color: var(--yellow); text-decoration: none; margin-left: -.04em; }
.masthead { font-family: var(--mono); font-size: clamp(15px, 1.55vw, 21px); line-height: 1.3; letter-spacing: .02em; margin-top: .55em; max-width: 36em; }
.nav-bar { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; }

.subscribe-box { display: flex; flex-direction: column; gap: 4px; width: 100%; padding-top: calc(var(--logo) * .175); }
.subscribe-box input, .subscribe-box button { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 12px 14px; width: 100%; border: 1px solid var(--yellow); border-radius: 0; text-align: center; outline: none; -webkit-appearance: none; appearance: none; }
.subscribe-box input { background: var(--ink); color: var(--yellow); }
.subscribe-box input::placeholder { color: var(--yellow); opacity: .7; }
.subscribe-box input:focus { background: rgba(255,215,0,.1); }
.subscribe-box button { background: var(--yellow); color: var(--ink); cursor: pointer; }
.subscribe-box button:hover { background: var(--yellow-edge); }
.msg { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; margin-top: 6px; }
.t-busy { display: none; }
form.loading .t-idle { display: none; } form.loading .t-busy { display: inline; }
form.success .msg-ok, form.error .msg-err { display: block; }

.dropdown { position: relative; }
.dropdown-btn, .sub-btn { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.dropdown-btn { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); padding: 9px 16px; display: flex; align-items: center; gap: 8px; }
.dropdown-btn::after { content: "\25BC"; font-size: 8px; }
.dropdown-btn:hover, .dropdown.open > .dropdown-btn { background: rgba(255,215,0,.12); }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; margin-top: 2px; z-index: 20; background: var(--ink); border: 1px solid var(--yellow); min-width: 230px; }
.dropdown.open > .dropdown-content { display: block; }
@media (hover: hover) { .dropdown:hover > .dropdown-content { display: block; } }
.dd-episodes { min-width: 300px; max-height: 70vh; overflow-y: auto; }
.dropdown-content a, .sub-btn { display: block; width: 100%; text-align: left; background: transparent; color: var(--yellow); border: 0; border-bottom: 1px solid rgba(255,215,0,.2); padding: 11px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-decoration: none; }
.dropdown-content a:last-child { border-bottom: 0; }
.dropdown-content a:hover, .sub-btn:hover { background: rgba(255,215,0,.15); }
.sub-btn::after { content: "\25B8"; float: right; }
.has-sub { position: relative; }
.submenu { display: none; position: absolute; left: 100%; top: -1px; margin-left: 2px; background: var(--ink); border: 1px solid var(--yellow); min-width: 300px; max-height: 70vh; overflow-y: auto; }
.has-sub.open > .submenu { display: block; }
@media (hover: hover) { .has-sub:hover > .submenu { display: block; } }
.submenu .all { color: var(--ink); background: var(--yellow); font-weight: 700; }
.submenu .all:hover { background: var(--yellow-edge); }
.submenu .empty { display: block; padding: 11px 14px; font-family: var(--mono); font-size: 12px; color: var(--yellow); opacity: .7; }

/* ---------- shared bits ---------- */
.label { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 2px 9px; }
.meta { font-family: var(--mono); font-size: 13px; color: var(--grey); letter-spacing: .02em; }
.code { font-family: var(--mono); font-weight: 700; font-size: .56em; letter-spacing: .06em; background: var(--yellow); color: var(--ink); padding: .12em .5em; vertical-align: .22em; margin-right: .2em; white-space: nowrap; }
.col-title { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.empty { font-family: var(--mono); font-size: 14px; color: var(--grey); }

/* ---------- HOME ---------- */
.latest { border: 2px solid var(--ink); padding: 32px 36px 36px; margin-bottom: 56px; }
.latest .label { margin-bottom: 14px; }
.latest h1 { font-family: var(--mono); font-size: 46px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 12px; }
.latest h1 a, .ep h3 a, .rail-ep { text-decoration: none; }
.latest h1 a:hover, .ep h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow-edge); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.latest .meta { margin-bottom: 18px; }
.lede { font-size: 22px; line-height: 1.55; max-width: 38em; }
.readmore { display: inline-block; margin-top: 24px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; padding: 13px 24px; text-decoration: none; }
.readmore:hover { background: #222; }

.ep { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
.ep:last-child { border-bottom: 0; }
.ep-date { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: .04em; margin-bottom: 4px; }
.ep h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.ep h3 .code { font-size: .5em; }
.ep-ex { font-size: 18px; line-height: 1.55; color: #333; }

.season { display: block; border: 1px solid var(--ink); padding: 18px 20px; margin-bottom: 14px; text-decoration: none; }
.season:hover { background: var(--yellow-wash); }
.s-name { display: block; font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.s-desc { display: block; font-size: 17px; color: var(--grey); line-height: 1.45; }

.season-head { border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 40px; }
.season-head h1 { font-family: var(--mono); font-size: 46px; line-height: 1.15; margin-top: 12px; }
.season-head .lede { margin-top: 8px; color: #333; }

/* ---------- EPISODE ---------- */
.episode { max-width: 700px; }
.ep-head { border-bottom: 2px solid var(--ink); padding-bottom: 20px; margin-bottom: 32px; }
.ep-head .label { margin-bottom: 14px; }
.ep-head h1 { font-family: var(--mono); font-size: 40px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 12px; }
.post-body > * + * { margin-top: 1.1em; }
.post-body p { font-size: 20px; line-height: 1.65; }
.post-body h2 { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 8px 12px; margin-top: 2.2em; }
.post-body h3 { font-family: var(--mono); font-size: 16px; margin-top: 1.8em; }
.post-body p > code:only-child { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.6; letter-spacing: .02em; text-transform: uppercase; background: var(--yellow-wash); border-left: 5px solid var(--yellow); padding: 14px 16px; }
.post-body code { font-family: var(--mono); font-size: .85em; }
.post-body a { text-decoration: underline; text-decoration-color: var(--yellow-edge); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.post-body a:hover { background: var(--yellow); }
.post-body hr { border: 0; border-top: 1px dashed var(--grey); margin: 2.2em 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .35em; }
.post-body blockquote { border-left: 5px solid var(--yellow); padding-left: 18px; font-style: italic; }
.post-body table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; line-height: 1.45; display: block; overflow-x: auto; }
.post-body th { background: var(--ink); color: var(--yellow); text-align: left; padding: 8px 10px; font-weight: 600; letter-spacing: .04em; }
.post-body td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-top: 6px; }
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; max-width: 1000px; transform: translateX(calc(50% - 50vw)); margin-left: auto; margin-right: auto; }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.kg-width-wide img, .kg-width-full img { width: 100%; }

.post-cta { margin: 56px 0 32px; padding: 22px 24px; background: var(--ink); color: var(--yellow); }
.post-cta .label { margin-bottom: 14px; }
.subscribe-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-inline input, .subscribe-inline button { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; padding: 12px 14px; border: 1px solid var(--yellow); border-radius: 0; -webkit-appearance: none; appearance: none; }
.subscribe-inline input { flex: 1 1 220px; background: var(--ink); color: var(--yellow); text-align: center; }
.subscribe-inline input::placeholder { color: var(--yellow); opacity: .7; }
.subscribe-inline button { flex: 0 0 auto; background: var(--yellow); color: var(--ink); cursor: pointer; }
.subscribe-inline .msg { flex-basis: 100%; font-size: 12px; margin: 0; }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ep-nav a { display: block; border: 1px solid var(--ink); padding: 14px 16px; text-decoration: none; }
.ep-nav a:hover { background: var(--yellow-wash); }
.ep-nav .next { grid-column: 2; text-align: right; }
.ep-nav span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.ep-nav b { font-family: var(--mono); font-size: 15px; }

.rail-sticky { position: sticky; top: 24px; }
.rail-ep { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.3; }
.rail-ep .code { font-size: .62em; }
.rail-ep:hover span { text-decoration: underline; text-decoration-color: var(--yellow-edge); text-decoration-thickness: 2px; }
.rail-all { display: block; margin-top: 16px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-decoration: none; background: var(--yellow); padding: 10px 12px; text-align: center; }
.rail-all:hover { background: var(--yellow-edge); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--yellow); border-top: 2px solid var(--yellow); font-family: var(--mono); }
.ft { display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--colgap); padding-top: 32px; padding-bottom: 36px; }
.site-footer .disclaimer { font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.site-footer .impressum { font-size: 12px; line-height: 1.7; }
.site-footer .copy { font-size: 12px; opacity: .8; }
.site-footer .member-line { margin-top: 22px; }
.site-footer .member-who { font-size: 12px; letter-spacing: .06em; margin-bottom: 10px; word-break: break-all; }
.site-footer .member-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .member-actions a { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); text-decoration: none; border: 1px solid var(--yellow); padding: 9px 16px; }
.site-footer .member-actions a.unsub { background: var(--yellow); color: var(--ink); }
.site-footer .member-actions a:hover { background: rgba(255,215,0,.15); }
.site-footer .member-actions a.unsub:hover { background: #fff; }
.site-footer .member-hint { font-size: 11px; line-height: 1.6; opacity: .75; margin-top: 10px; max-width: 46em; }

/* ---------- TABLET (760 - 1099) ---------- */
@media (max-width: 1099px) {
    :root { --gutter: 32px; --colgap: 32px; }
    :root { --logo: clamp(48px, 7vw, 64px); }
    .latest h1, .season-head h1 { font-size: 40px; }
}

@media (max-width: 899px) { .ft { grid-template-columns: 1fr; row-gap: 18px; } }

/* ---------- MOBILE (< 760) ---------- */
@media (max-width: 759px) {
    :root { --gutter: 16px; }
    body { font-size: 18px; }
    .hd { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 18px; row-gap: 14px; }
    :root { --logo: 40px; }
    .masthead { font-size: 14px; margin-top: .4em; }
    .subscribe-box { order: 2; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-top: 0; }
    .subscribe-box input { flex: 1 1 58%; width: auto; padding: 13px 10px; }
    .subscribe-box button { flex: 1 1 30%; width: auto; padding: 13px 10px; }
    .subscribe-box .msg { flex-basis: 100%; }
    .hd-left { display: contents; }
    .site-title { order: 0; } .masthead { order: 1; } .nav-bar { order: 3; margin-top: 0; }
    .dropdown { position: static; }
    .dropdown-btn { padding: 11px 14px; }
    .dropdown-content { left: 16px; right: 16px; min-width: 0; }
    .dd-episodes { max-height: 60vh; }
    .submenu { position: static; margin: 0; border: 0; border-top: 1px solid rgba(255,215,0,.2); min-width: 0; max-height: 40vh; }
    .submenu a { padding-left: 26px; }
    .wrap { padding-top: 24px; padding-bottom: 36px; }
    .grid { grid-template-columns: 1fr; row-gap: 32px; }
    .latest { padding: 20px 18px 22px; margin-bottom: 36px; }
    .latest h1, .season-head h1 { font-size: 30px; }
    .lede { font-size: 19px; }
    .ep h3 { font-size: 23px; }
    .ep-head h1 { font-size: 30px; }
    .post-body p { font-size: 19px; }
    .post-body p > code:only-child { font-size: 12px; padding: 12px; }
    .ep-nav { grid-template-columns: 1fr; }
    .ep-nav .next { grid-column: 1; text-align: left; }
    .rail-sticky { position: static; }
    .ft { grid-template-columns: 1fr; row-gap: 18px; padding-top: 24px; padding-bottom: 28px; }
}
