/* podgrep public site: "Southwest stripes". Cream ground, dark-brown ink, a teal / orange / amber tri-stripe,
   hard-shadow outlined cards, Fraunces italic for the wordmark and headings, Work Sans for text, DM Mono for times. */

:root {
    --cream: #F1E6D2;
    --paper: #FBF6EC;
    --ink: #2B1D14;
    --ink-2: #4A3628;
    --body: #3A2A1E;
    --muted: #6B5544;
    --muted-2: #5A4433;
    --line: #CDBB9C;
    --line-soft: #DCCBAE;
    --sand: #E9DCC4;
    --teal: #2A9D9A;
    --teal-ink: #1B6466;
    --teal-soft: #6CC3BF;
    --orange: #D9623A;
    --coral: #E07A52;
    --amber: #E8A93A;
    --mark: #F2C76E;
    --link: #A8401F;
    --link-hover: #7E2E14;
    --on-ink: #F6EEDF;
    --on-ink-muted: #CDBB9C;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.5 var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.4rem; }
p { margin: 0; }
mark { background: var(--mark); color: var(--ink); border-radius: 3px; padding: 0 3px; }
code { font-family: var(--mono); font-size: 0.9em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }

.wrap { max-width: 1120px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 760px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page { flex: 1; padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.page-home { padding-top: 24px; gap: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede-muted { color: var(--muted-2); font-size: 1.0625rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; }

/* The stripe: stacked bands by default, side-by-side segments with .row */

.stripes { display: flex; flex-direction: column; }
.stripes > span { display: block; height: 8px; }
.stripes.thin > span { height: 6px; }
.stripes.row { flex-direction: row; }
.stripes.row > span { flex: 1; }
.stripes > span:nth-child(1) { background: var(--teal); }
.stripes > span:nth-child(2) { background: var(--orange); }
.stripes > span:nth-child(3) { background: var(--amber); }

.wordmark { font-family: var(--serif); font-style: italic; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.wordmark.small { font-size: 1rem; }

/* Header, nav, footer */

.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-ink); }
.brand:hover { color: var(--on-ink); text-decoration: none; }
.brand .wordmark { font-size: 1.875rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; display: flex; flex-direction: column; transform: rotate(-12deg); flex: none; }
.brand-mark > span { flex: 1; }
.brand-mark > span:nth-child(1) { background: var(--teal); }
.brand-mark > span:nth-child(2) { background: var(--orange); }
.brand-mark > span:nth-child(3) { background: var(--amber); }

.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--sand); padding: 10px 14px; font-size: 0.9375rem; font-weight: 500; border-radius: 8px; }
.site-nav a:hover { color: var(--on-ink); text-decoration: none; background: rgb(255 255 255 / 0.08); }
.home-header .wrap { display: flex; justify-content: flex-end; padding-top: 16px; padding-bottom: 8px; }
.home-header .site-nav a { color: var(--ink-2); }
.home-header .site-nav a:hover { color: var(--ink); background: var(--sand); }

.site-footer { margin-top: auto; }
.footer-body { background: var(--ink); color: var(--sand); }
.footer-body .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 0.8125rem; }
.footer-body a { color: var(--amber); }
.site-footer .stripes.thin > span { height: 8px; }

/* Home */

.arch-wrap { display: flex; flex-direction: column; align-items: center; padding: 16px 24px 0; }
.arch { width: 280px; max-width: 100%; height: 140px; border-radius: 140px 140px 0 0; overflow: hidden; background: var(--amber); display: flex; flex-direction: column; justify-content: flex-end; }
.arch > span { display: block; background: var(--cream); }
.arch > span:nth-child(1) { height: 10px; margin-bottom: 14px; }
.arch > span:nth-child(2) { height: 14px; margin-bottom: 12px; }
.arch > span:nth-child(3) { height: 18px; }
.arch-base { width: 100%; max-width: 760px; }
.arch-base > span { height: 12px; }

.home { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 64px; }
.home-title { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.home-title h1 { font-size: clamp(3.25rem, 9vw, 5rem); letter-spacing: -0.03em; }
.lede { font-size: 1.1875rem; color: var(--muted-2); max-width: 520px; }
.home-podcasts { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.home-podcasts h2 { font-size: 1.5rem; }

/* Search form and filter chips */

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: var(--shadow);
}
.search-form svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.search-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 1.125rem; padding: 10px 4px; }
.search-form input::-webkit-search-decoration { display: none; }
.search-form .ask { background: var(--coral); color: var(--ink); border: 0; border-radius: 10px; padding: 0 24px; min-height: 48px; font-weight: 700; font-size: 1rem; }
.search-form .ask:hover { background: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 34px 0 16px;
    border-radius: 999px;
    border: 2px solid var(--line);
    color: var(--ink-2);
    font-size: 0.875rem;
    background: transparent;
    cursor: pointer;
}
.chip::after { content: "▾"; position: absolute; right: 14px; pointer-events: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.chip select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; font-weight: inherit; padding: 0; cursor: pointer; max-width: 240px; }
.chip select:focus-visible { outline: none; }
.chip:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }

/* The answer */

.answer { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.answer .stripes.thin > span { height: 10px; }
.answer-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.answer-body h2 { font-size: 1.625rem; }
.answer-text { font-size: 1.1875rem; line-height: 1.6; max-width: 780px; }
.answer-text p { margin: 0 0 0.75em; }
.answer-text p:last-child { margin-bottom: 0; }
.answer-text ul { margin: 0.25em 0 0.75em; padding-left: 1.25em; }
.answer-wait { font-size: 1.0625rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.answer-error { color: var(--link); font-size: 0.9375rem; }
.answer-foot { font-size: 0.875rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }

.cite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    margin: 0 2px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: 2px;
    text-decoration: none;
}
.cite:hover { background: var(--teal-soft); color: #10302F; text-decoration: none; }

/* Moments */

.moments-section { display: flex; flex-direction: column; gap: 14px; }
.moments-section h2 { font-size: 1.375rem; }
.moments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.moment {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid var(--line-soft);
    background: transparent;
    scroll-margin-top: 16px;
}
.moment.on { background: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--teal); }
.moment:target { background: var(--paper); border-color: var(--ink); }
.moment .play {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.moment .play:hover:not(:disabled) { background: var(--amber); }
.moment.on .play { background: var(--teal); }
.moment .play svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.moment .play svg path[d^="M4"] { fill: none; }
.moment-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.moment-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 0.875rem; }
.moment-head .ts { font-family: var(--mono); color: var(--teal-ink); font-weight: 500; }
.moment-head .ep { font-weight: 700; color: var(--ink); }
.moment-head .show { color: var(--muted); }
.moment-head .show a { color: inherit; }
.moment-text { font-size: 1rem; line-height: 1.6; color: var(--body); }
.moment-num { flex: none; font-family: var(--serif); font-weight: 800; font-size: 1.375rem; color: var(--link); line-height: 1; padding-top: 10px; }

/* Player bar */

.player-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 16px; margin-left: -24px; margin-right: -24px; }
.player-body { background: var(--ink); color: var(--on-ink); }
.player-body .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.player-body audio { display: none; }
.pb-toggle { width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.pb-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.pb-toggle .icon-play { display: none; }
.pb-toggle.paused .icon-play { display: block; }
.pb-toggle.paused .icon-pause { display: none; }
.pb-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pb-title { font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-show { color: var(--on-ink-muted); }
.pb-track { display: flex; align-items: center; gap: 10px; }
.pb-time { font-family: var(--mono); font-size: 0.75rem; color: var(--amber); min-width: 3.5em; }
.pb-bar { flex: 1; height: 6px; background: var(--ink-2); border-radius: 3px; overflow: hidden; }
.pb-fill { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--teal) 0 14%, var(--orange) 14% 28%, var(--amber) 28% 42%); transition: width 0.25s linear; }
.pb-note { font-size: 0.75rem; color: var(--on-ink-muted); }
.pb-open { color: var(--amber); font-size: 0.875rem; font-weight: 600; padding: 12px 8px; white-space: nowrap; }

/* Podcasts */

.podcast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.podcast-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); }
.podcast-card:hover { text-decoration: none; box-shadow: var(--shadow); color: var(--ink); }
.podcast-card .art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sand); display: block; }
.podcast-card .art img, .art-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podcast-card-text { display: flex; flex-direction: column; padding: 0 4px 4px; }
.podcast-card .name { font-weight: 700; }
.podcast-card .meta { font-size: 0.875rem; color: var(--muted); }

.podcast-head, .episode-head { display: flex; gap: 20px; align-items: flex-start; }
.art-lg { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--sand); border: 2px solid var(--ink); flex: none; display: block; }
.eyebrow { font-size: 0.875rem; margin-bottom: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }
.out-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; }
.podcast-about { color: var(--muted-2); max-width: 760px; white-space: pre-line; }

.episodes-section { display: flex; flex-direction: column; gap: 12px; }
.episode-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.episode-list li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); align-items: baseline; }
.episode-list li:first-child { border-top: 0; }
.episode-list .date { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.episode-list a { color: var(--ink); font-weight: 600; }
.episode-list .len { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }

/* Episode */

.episode { display: flex; flex-direction: column; gap: 24px; }
.episode h1 { font-size: 2rem; }
.listen { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 20px 24px; box-shadow: 4px 4px 0 var(--teal); display: flex; flex-direction: column; gap: 10px; }
.listen-btn { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: var(--coral); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0 22px; min-height: 52px; font-weight: 700; font-size: 1.0625rem; }
.listen-btn:hover:not(:disabled) { background: var(--orange); }
.listen-btn:disabled { background: var(--sand); }
.listen-btn svg { width: 20px; height: 20px; fill: currentColor; }
.listen-note { font-size: 0.875rem; color: var(--muted); }
.notes { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.notes h2 { font-size: 1.25rem; }
.notes p { white-space: pre-line; color: var(--body); }

/* About and plain pages */

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: 2.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.prose p, .prose li { color: var(--body); line-height: 1.6; }

/* Bits */

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--orange); color: var(--on-ink); padding: 12px 24px; }
#blazor-error-ui a { color: var(--on-ink); text-decoration: underline; margin-left: 8px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 12px; }

@media (max-width: 640px) {
    .wrap, .wrap-narrow { padding-left: 16px; padding-right: 16px; }
    .page { padding-top: 24px; gap: 18px; }
    h1 { font-size: 1.75rem; }
    .brand .wordmark { font-size: 1.5rem; }
    .brand-mark { width: 32px; height: 32px; }
    .search-form { padding-left: 12px; }
    .search-form input { font-size: 1rem; }
    .search-form .ask { padding: 0 16px; min-height: 44px; }
    .answer-body { padding: 18px 16px; }
    .answer-text { font-size: 1.0625rem; }
    .moment { gap: 12px; padding: 14px 14px; }
    .moment-num { font-size: 1.125rem; padding-top: 12px; }
    .player-bar { margin-left: -16px; margin-right: -16px; }
    .pb-open { padding: 6px 0; }
    .podcast-head, .episode-head { flex-direction: column; }
    .art-lg { width: 96px; height: 96px; }
    .episode-list li { grid-template-columns: 1fr auto; }
    .episode-list .date { grid-column: 1 / -1; }
    .arch { width: 220px; height: 110px; }
}
