/*
Theme Name: Fonecast
Author: TheFonecast.com
Description: A plain reading theme for thefonecast.com. One column, system fonts, light and dark.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fonecast
*/

/* Tokens. Text, page, the logo blue, one grey, a hairline. Dark follows the system, or data-theme set by the header button. */
:root{--fg:#1a1a1a;--bg:#fff;--accent:#0b5cad;--grey:#5c6066;--rule:#e1e3e6;color-scheme:light;accent-color:var(--accent)}
@media (prefers-color-scheme:dark){
:root:not([data-theme=light]){--fg:#e9e9e7;--bg:#15171a;--accent:#7fbdf5;--grey:#a4a9af;--rule:#32363c;color-scheme:dark}
:root:not([data-theme=light]) .fc-logo img{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
}
:root[data-theme=dark]{--fg:#e9e9e7;--bg:#15171a;--accent:#7fbdf5;--grey:#a4a9af;--rule:#32363c;color-scheme:dark}
[data-theme=dark] .fc-logo img{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}

/* Base and typography */
*,::before,::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:clamp(1.0625rem,1rem + .35vw,1.1875rem)/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;overflow-wrap:break-word;text-wrap:pretty}
a{color:var(--accent);text-underline-offset:.15em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:2px}
img{max-width:100%;height:auto}
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
h1,h2,h3,h4{margin:0;line-height:1.2}
[id]{scroll-margin-top:1rem}
.fc-wrap{max-width:46.5rem;margin-inline:auto;padding-inline:1.25rem}
.fc-main{padding-block:3rem 4.5rem}
.fc-section{margin-top:3.5rem}
.fc-vh,.screen-reader-text,.tfc-guests thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fc-skip{position:absolute;left:-999rem;top:.5rem;padding:.5rem 1rem;background:var(--bg);font-weight:600;z-index:9}
.fc-skip:focus{left:.5rem}
.fc-meta,.fc-short time,.fc-pager-count,figcaption,.tfc-guests td:nth-child(n+3){font-size:.875rem;line-height:1.5;color:var(--grey)}
.fc-meta{margin:.4rem 0 0}
.fc-meta a{color:inherit}
.fc-label,.fc-tags span,.fc-footer h2{margin:0 0 .6rem;font-size:.8125rem;font-weight:700;line-height:1.4;letter-spacing:.09em;text-transform:uppercase;color:var(--grey)}
.fc-section>.fc-label{margin-bottom:1rem}
.fc-label a,.fc-more a,.fc-pager a{text-decoration:none}
.fc-label a:hover,.fc-more a:hover,.fc-pager a:hover{text-decoration:underline}

/* Header */
.fc-header{padding-top:1.75rem}
.fc-top{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
.fc-logo{margin-right:auto;line-height:0}
.fc-tools{display:flex;flex:0 1 19rem;gap:.5rem}
.fc-search{display:flex;flex:1}
.fc-search input,.fc-search button,.fc-theme{font:inherit;font-size:1rem;line-height:1.4;padding:.4rem .7rem;border:1px solid var(--grey);border-radius:4px;background:var(--bg);color:var(--fg)}
.fc-search input{flex:1;min-width:0;border-right:0;border-radius:4px 0 0 4px}
.fc-search input::placeholder{color:var(--grey);opacity:1}
.fc-search button{border-radius:0 4px 4px 0;font-weight:600}
.fc-search button,.fc-theme{cursor:pointer}
.fc-search button:hover,.fc-theme:hover{color:var(--accent)}

/* Theme toggle. Hidden until the head script runs. */
.fc-theme{display:none;align-items:center;padding-inline:.6rem}
.js .fc-theme{display:flex}

/* Navigation */
.fc-nav ul{display:flex;flex-wrap:wrap;gap:0 1.75rem;list-style:none;margin:1.25rem 0 0;padding:0;border-bottom:1px solid var(--rule)}
.fc-nav a{display:block;padding:.5rem 0 .65rem;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--fg);font-size:1rem;font-weight:600;text-decoration:none}
.fc-nav a:hover{color:var(--accent)}
.fc-nav [aria-current]{color:var(--accent);border-color:var(--accent)}

/* Article list item, and the short lists */
.fc-item{display:flex;align-items:flex-start;gap:1.5rem;padding:1.6rem 0;border-top:1px solid var(--rule)}
.fc-item-text{flex:1;min-width:0}
.fc-item-title{font-size:1.3rem;line-height:1.25}
.fc-item-title a,.fc-episode-title a,.fc-short a,.fc-neighbours a,.fc-footer a{color:var(--fg);text-decoration:none}
.fc-item-title a:hover,.fc-episode-title a:hover,.fc-short a:hover,.fc-neighbours a:hover,.fc-footer a:hover{color:var(--accent);text-decoration:underline}
.fc-summary{margin:.6rem 0 0;font-size:.94em;line-height:1.55}
.fc-thumb{order:2;flex:none;width:7rem;margin-top:.25rem;line-height:0;text-align:right}
.fc-thumb img{width:auto;max-height:5rem}
.fc-short{list-style:none;margin:0;padding:0}
.fc-short li{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;padding:.8rem 0;border-top:1px solid var(--rule);font-size:1rem;line-height:1.35}
.fc-short a,.fc-neighbours a{font-weight:600}
.fc-short time{flex:none}
.fc-more{margin:0;padding-top:1rem;border-top:1px solid var(--rule);font-size:1rem;font-weight:600}

/* Article header */
.fc-head{margin-bottom:2rem}
.fc-title,.fc-episode-title{font-size:clamp(1.8rem,1.3rem + 2.4vw,2.5rem);line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
.fc-episode-title{font-size:clamp(1.5rem,1.2rem + 1.6vw,2rem)}
.fc-sub{margin:.75rem 0 0;font-size:1.25rem;line-height:1.4;color:var(--grey)}
.fc-sub p{margin:0}
.fc-head .fc-meta{margin-top:1rem}
.fc-figure{margin:0 0 2rem}
.fc-figure img{display:block;width:auto;max-height:30rem}
figcaption{margin-top:.5rem}

/* Prose. Old HTML, so everything is held inside the column. */
.fc-body::after{content:"";display:block;clear:both}
.fc-body>:first-child{margin-top:0}
.fc-body>:last-child{margin-bottom:0}
.fc-body p{margin:0 0 1.3em!important}
.fc-body :is(ul,ol,blockquote,table,pre,iframe,form){margin:0 0 1.3em}
.fc-body li{margin-bottom:.4em}
.fc-body :is(h2,h3,h4){margin:2em 0 .6em;font-size:1.2rem}
.fc-body h2{font-size:1.4rem}
.fc-body blockquote{padding-left:1.25rem;border-left:3px solid var(--rule);color:var(--grey)}
.fc-body :is(img,iframe,video,audio,embed,object){max-width:100%}
.fc-body img{height:auto!important}
.fc-body img:is([align=left],[style*="float:left"],[style*="float: left"]){margin:.3rem 1.25rem .75rem 0}
.fc-body img:is([align=right],[style*="float:right"],[style*="float: right"]){margin:.3rem 0 .75rem 1.25rem}
.fc-body table{display:block;width:auto!important;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:1rem}
.fc-body :is(th,td){padding:.6rem .8rem;text-align:left;vertical-align:top}
.fc-body td>:last-child{margin-bottom:0!important}
.fc-body pre{overflow-x:auto;font-size:.9375rem}
.fc-body :is([style*=background],[bgcolor]){color:#1a1a1a}
.fc-body :is([style*=background],[bgcolor]) a{color:#0b5cad}
/* The Guests table. Each guest reads as a short entry. */
.fc-body .tfc-guests,.tfc-guests :is(tbody,tr,th,td){display:block;padding:0}
.tfc-guests tr{padding:1.5rem 0;border-top:1px solid var(--rule)}
.tfc-guests th{margin-bottom:.5rem;font-size:1.2rem;line-height:1.25}
.tfc-guests td p{margin-bottom:.6em!important}
.tfc-guests td:nth-child(n+3){display:inline}
.tfc-guests td:nth-child(3)::after{content:" \00b7 "}

/* Audio player and downloads */
.fc-audio{margin-top:1.25rem}
.fc-article .fc-audio{margin:0 0 2rem;padding-block:1.25rem;border-block:1px solid var(--rule)}
.fc-audio audio{display:block;width:100%;height:2.75rem}
.fc-files{list-style:none;margin:.9rem 0 0;padding:0;font-size:.9375rem}
.fc-files span{color:var(--grey)}

/* Tags */
.fc-tags{margin:2.5rem 0 0;font-size:1rem}
.fc-tags span{margin-right:.5rem}

/* Pagination, and previous and next */
.fc-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;padding-top:1.5rem;border-top:1px solid var(--rule);font-size:1rem;font-weight:600}
.fc-pager span:last-child{text-align:right}
.fc-pager-count{font-weight:400}
.fc-neighbours{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--rule);font-size:1rem;line-height:1.35}
.fc-neighbours .fc-meta{display:block;margin:0 0 .25rem}
.fc-neighbours div:last-child{text-align:right}

/* Comments */
.fc-comments{margin-top:3.5rem}
.fc-comments ol{list-style:none;margin:0;padding:0}
.fc-comment{padding:1.25rem 0;border-top:1px solid var(--rule)}
.fc-comment .children{padding-left:1.5rem}
.fc-comment-text{font-size:.94em}
.fc-comment-text p{margin:.5rem 0 0}

/* Footer */
.fc-footer{padding-bottom:3rem;font-size:.9375rem}
.fc-foot{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;padding-top:2.5rem;border-top:1px solid var(--rule)}
.fc-footer ul{list-style:none;margin:0;padding:0}
.fc-footer li{margin-bottom:.35rem}
.fc-years{display:flex;flex-wrap:wrap;gap:0 1rem}
.fc-legal{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin:2.5rem 0 0;color:var(--grey)}
.fc-footer .fc-legal a{text-decoration:underline}

/* Terms page */
.fc-terms .SubHead{font-weight:700}

/* Phones */
@media (max-width:34rem){
.fc-header{padding-top:1.25rem}
.fc-tools{flex-basis:100%}
.fc-nav ul{display:grid;grid-template-columns:repeat(3,1fr);gap:0 1rem;margin-top:1rem;padding-bottom:.4rem}
.fc-nav a{display:inline-block;padding:.45rem 0;margin:0}
.fc-main{padding-block:2rem 3.5rem}
.fc-item{display:flow-root}
.fc-item-title{font-size:1.2rem}
.fc-thumb{float:right;width:4.5rem;margin:.2rem 0 .5rem 1rem}
.fc-thumb img{max-height:4rem}
.fc-short li,.fc-neighbours{display:block}
.fc-short time{display:block;margin-top:.2rem}
.fc-neighbours div:last-child{margin-top:1.25rem;text-align:left}
.fc-foot{grid-template-columns:1fr 1fr}
.fc-body img{float:none!important;display:block;margin-inline:0!important}
}

@media (prefers-reduced-motion:reduce){*,::before,::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.fc-tools,.fc-nav,.fc-footer,.fc-pager,.fc-neighbours,audio,.fc-skip{display:none}}
