/*
Theme Name: The Prep Feed
Theme URI: https://theprepfeed.com
Description: Website theme for The Prep Feed, daily show prep for UK radio presenters.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: theprepfeed
License: Proprietary. Fonts: SIL Open Font License 1.1 (see assets/fonts).
*/

/* ---------- Fonts (hosted on the site, not Google) ---------- */
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url('assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-display: swap; src: url('assets/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-display: swap; src: url('assets/fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('assets/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-style: italic; font-display: swap; src: url('assets/fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: italic; font-display: swap; src: url('assets/fonts/fraunces-latin-500-italic.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	color-scheme: dark;
	--bg: #121317;
	--surface: #1a1c22;
	--surface-2: #1e2028;
	--paper: #f4f1ea;
	--ink: #c7c2b8;
	--hair: #2b2e36;
	--sound: #ff5a2e;
	--wall: #3ecfb0;
	--study: #b892ff;
	--danger: #ff7a6b;
	--display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--gutter: 22px;
	--measure: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sound); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; clip: auto; width: auto; height: auto; background: var(--paper); color: var(--bg); padding: 10px 14px; font-family: var(--display); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header .bar { max-width: 1040px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--sound); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a { font-family: var(--display); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .signin { font-family: var(--display); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--paper); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
	.nav { display: none; }
	.menu-toggle { display: block; }
	.menu-toggle summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 14px; border: 1px solid var(--hair); padding: 8px 14px; border-radius: 100px; }
	.menu-toggle summary::-webkit-details-marker { display: none; }
	.menu-toggle[open] summary { background: var(--surface); }
	.menu-panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--hair); padding: 8px var(--gutter) 22px; z-index: 20; }
	.menu-panel ul { list-style: none; margin: 0; padding: 0; }
	.menu-panel li a { display: block; padding: 12px 0; border-top: 1px solid var(--hair); font-family: var(--display); font-weight: 600; text-decoration: none; }
	.menu-panel .btn { margin-top: 16px; width: 100%; text-align: center; }
	.site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .pmpro_btn, .pmpro_btn-submit-checkout, input[type=submit], button[type=submit] {
	font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2;
	padding: 13px 22px; border-radius: 6px; text-decoration: none; display: inline-block;
	background: var(--sound); color: #14100c; border: 1px solid var(--sound); cursor: pointer;
}
.btn:hover, .pmpro_btn:hover, input[type=submit]:hover, button[type=submit]:hover { filter: brightness(1.08); }
.btn-small { font-size: 13px; padding: 8px 14px; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--hair); }
.pmpro_btn.pmpro_btn-cancel, .pmpro_btn-outline, .pmpro_btn-plain { background: transparent; color: var(--paper); border-color: var(--hair); }

/* ---------- Home ---------- */
.eyebrow { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 14px; }
.section { padding-block: 48px; border-bottom: 1px solid var(--hair); }
.section:last-child { border-bottom: none; }
.section > p { color: var(--ink); max-width: 52ch; margin: 0 0 18px; }
.section h2 { font-size: 26px; font-weight: 600; line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }

.hero { padding-block: 52px 48px; border-bottom: 1px solid var(--hair); }
.hero h1 { font-size: clamp(38px, 8vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sound); }
.hero .lede { font-size: 19px; line-height: 1.45; color: var(--paper); max-width: 42ch; margin: 0 0 12px; }
.hero .sub { font-size: 16px; color: var(--ink); max-width: 48ch; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.lane-list { display: grid; }
.lane-item { display: flex; gap: 16px; padding-block: 18px; border-top: 1px solid var(--hair); }
.lane-item:first-child { border-top: none; padding-top: 4px; }
.lane-mark { width: 4px; flex: none; border-radius: 2px; background: var(--sound); }
.lane-item[data-l="wall"] .lane-mark { background: var(--wall); }
.lane-item[data-l="study"] .lane-mark { background: var(--study); }
.lane-item[data-l="daily"] .lane-mark { background: var(--paper); }
.lane-item h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.lane-item h3 span { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 6px; }
.lane-item p { margin: 0; color: var(--ink); font-size: 15px; }

.compare { display: grid; gap: 2px; margin-top: 8px; }
.compare div { background: var(--surface); padding: 14px 16px; display: grid; grid-template-columns: 1fr; gap: 4px; }
.compare b { font-family: var(--display); font-size: 13px; letter-spacing: 0.02em; }
.compare span { color: var(--ink); font-size: 15px; }

.price-card { background: var(--surface); padding: 28px 26px; border-left: 4px solid var(--sound); }
.price-card .amount { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price-card .amount span { font-size: 15px; font-weight: 600; color: var(--ink); }
.price-card ul { list-style: none; margin: 20px 0 24px; padding: 0; color: var(--ink); font-size: 15px; }
.price-card li { padding: 6px 0 6px 22px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--sound); }
.price-note { font-family: var(--display); font-size: 13px; color: var(--ink); margin: 14px 0 0; }
.price-note a { color: var(--paper); }

.faq-item { padding-block: 16px; border-top: 1px solid var(--hair); }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.faq-item p { margin: 0; color: var(--ink); font-size: 15px; }

/* ---------- Pages ---------- */
.page-head { padding-block: 44px 8px; }
.page-head h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
.entry { padding-block: 18px 60px; }
.entry > * { max-width: 62ch; }
.entry p, .entry li { color: var(--ink); font-size: 16px; }
.entry strong { color: var(--paper); }
.entry h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 38px 0 10px; color: var(--paper); text-wrap: balance; }
.entry h3 { font-size: 17px; font-weight: 600; margin: 26px 0 6px; color: var(--paper); }
.entry a { color: var(--paper); text-decoration-color: var(--sound); text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry hr { border: 0; border-top: 1px solid var(--hair); margin: 34px 0; }
.entry .draft-note { border-left: 4px solid var(--study); background: var(--surface); padding: 12px 16px; font-family: var(--display); font-size: 13px; color: var(--paper); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hair); }
.entry .email-line { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--paper); user-select: all; }

/* ---------- Forms, including Paid Memberships Pro ---------- */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
	width: 100%; max-width: 100%; padding: 12px; font-size: 16px; font-family: var(--serif);
	background: var(--surface); color: var(--paper); border: 1px solid var(--hair); border-radius: 6px;
}
input:focus, select:focus, textarea:focus { border-color: var(--sound); outline: none; }
label { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--paper); }
.entry form p, .entry form .pmpro_form_field { margin: 0 0 14px; }
.entry form label { display: block; margin-bottom: 6px; }
.entry input[type=checkbox] + label, .entry label input[type=checkbox] { display: inline; }
.entry > .pmpro, .entry > div[class^="pmpro"] { max-width: 100%; }
/* Paid Memberships Pro reads these colours */
:root, body {
	--pmpro--color--accent: #ff5a2e;
	--pmpro--color--base: #1a1c22;
	--pmpro--color--base-2: #1e2028;
	--pmpro--color--contrast: #f4f1ea;
	--pmpro--color--border: #2b2e36;
	--pmpro--color--border--variation: #2b2e36;
	--pmpro--color--white: #1a1c22;
	--pmpro--box-shadow: none;
}
.pmpro_card, .pmpro_section { color: var(--ink); }
.pmpro_card_title, .pmpro_section_title, .pmpro_form_heading { font-family: var(--display); color: var(--paper); }
.pmpro_asterisk abbr { color: var(--sound); text-decoration: none; border: 0; }
.pmpro_form_fieldset, fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); margin-top: 20px; }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 30px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; align-items: flex-start; }
.site-footer .logo { font-size: 17px; }
.site-footer p { margin: 8px 0 0; font-family: var(--display); font-size: 12px; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer ul a { font-family: var(--display); font-size: 13px; color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--paper); }

/* ---------- Sample edition ---------- */
.tpf-edition { max-width: 580px; margin: 0 auto; padding: 0 20px 40px; }
.tpf-edition .sample-flag { margin: 26px 0 0; background: var(--surface-2); border-left: 4px solid var(--study); padding: 12px 16px; font-family: var(--display); font-size: 13px; color: var(--paper); }
.tpf-edition .sample-flag a { color: var(--paper); }
.tpf-edition .mast { padding: 26px 0 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tpf-edition .mast .logo { font-size: 28px; line-height: 1; letter-spacing: -0.03em; }
.tpf-edition .date { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); text-align: right; line-height: 1.4; }
.tpf-edition .toc { border-top: 1px solid var(--hair); padding-top: 14px; }
.tpf-edition .toc summary { font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; list-style: none; }
.tpf-edition .toc summary::-webkit-details-marker { display: none; }
.tpf-edition .toc summary::after { content: " +"; color: var(--ink); }
.tpf-edition .toc[open] summary::after { content: " –"; }
.tpf-edition .toc-group { margin-top: 16px; }
.tpf-edition .toc-label { display: block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 6px; color: var(--ink); }
.tpf-edition .toc-group[data-l="sound"] .toc-label { color: var(--sound); }
.tpf-edition .toc-group[data-l="wall"] .toc-label { color: var(--wall); }
.tpf-edition .toc-group[data-l="study"] .toc-label { color: var(--study); }
.tpf-edition .toc-group ol { margin: 0; padding-left: 20px; }
.tpf-edition .toc-group li { margin-bottom: 5px; font-size: 14px; line-height: 1.4; }
.tpf-edition .toc-group a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.tpf-edition .lane { margin-top: 38px; }
.tpf-edition .lane-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.tpf-edition .dot { width: 10px; height: 10px; flex: none; background: var(--sound); }
.tpf-edition .lane[data-lane="wall"] .dot { background: var(--wall); }
.tpf-edition .lane[data-lane="study"] .dot { background: var(--study); }
.tpf-edition .lane-head h2 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; margin: 0; }
.tpf-edition .lane-head .count { font-family: var(--display); color: var(--ink); font-size: 11.5px; margin-left: auto; }
.tpf-edition .story { position: relative; background: var(--surface); padding: 18px 20px 16px; margin-bottom: 2px; }
.tpf-edition .story::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sound); }
.tpf-edition .lane[data-lane="wall"] .story::before { background: var(--wall); }
.tpf-edition .lane[data-lane="study"] .story::before { background: var(--study); }
.tpf-edition .story h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.28; }
.tpf-edition .story p { margin: 0 0 11px; color: var(--ink); font-size: 15.5px; }
.tpf-edition .link-line { font-style: italic; font-size: 14px; margin: 0; font-weight: 500; color: var(--sound); }
.tpf-edition .link-line::before { content: "say — "; font-family: var(--display); font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.04em; }
.tpf-edition .lane[data-lane="wall"] .link-line { color: var(--wall); }
.tpf-edition .lane[data-lane="study"] .link-line { color: var(--study); }
.tpf-edition .story p.link-line { color: inherit; }
.tpf-edition .lane[data-lane="sound"] .story p.link-line { color: var(--sound); }
.tpf-edition .lane[data-lane="wall"] .story p.link-line { color: var(--wall); }
.tpf-edition .lane[data-lane="study"] .story p.link-line { color: var(--study); }
.tpf-edition .impossible { margin-top: 38px; background: var(--surface); padding: 22px 20px; border: 1px solid var(--sound); }
.tpf-edition .kicker { font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--sound); }
.tpf-edition .q { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 10px 0 16px; text-wrap: balance; }
.tpf-edition .clues { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.tpf-edition .clues li { font-size: 15px; color: var(--ink); padding-left: 62px; position: relative; }
.tpf-edition .clues li span { position: absolute; left: 0; top: 3px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--paper); }
.tpf-edition .impossible summary { font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; }
.tpf-edition .impossible details p { margin: 10px 0 0; font-size: 15.5px; }
.tpf-edition .impossible .link-line { margin-top: 14px; color: var(--sound); }
.tpf-edition .chart { margin-top: 14px; background: var(--surface); padding: 16px 18px 10px; }
.tpf-edition .charts { margin-top: 38px; }
.tpf-edition .chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tpf-edition .chart-head h3 { margin: 0; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.tpf-edition .chart-head span, .tpf-edition .chart-note { font-family: var(--display); font-size: 11px; color: var(--ink); }
.tpf-edition .chart ol { list-style: none; margin: 0; padding: 0; }
.tpf-edition .chart li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14.5px; line-height: 1.35; }
.tpf-edition .chart li:first-child { border-top: none; }
.tpf-edition .pos { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.tpf-edition .song { color: var(--ink); }
.tpf-edition .song b { font-weight: 600; color: var(--paper); }
.tpf-edition .move { font-family: var(--display); font-size: 11.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tpf-edition .move.up { color: var(--wall); }
.tpf-edition .move.down { color: var(--sound); }
.tpf-edition .utility { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); display: grid; gap: 14px; }
.tpf-edition .util-card { background: var(--surface-2); padding: 16px 18px; }
.tpf-edition .util-card h4 { margin: 0 0 9px; font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.tpf-edition .util-card p { margin: 0; font-size: 15px; }
.tpf-edition .sample-cta { margin-top: 40px; text-align: center; }
