@font-face {
    font-family: Syne;
    src: url("../fonts/syne-variable.woff2") format("woff2");
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Outfit;
    src: url("../fonts/outfit-variable.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --cream: #f7f5ee;
    --navy: #043561;
    --blue: #1273aa;
    --flash: #21aebf;
    --gold: #f8b024;
    --charcoal: #172b35;
    --pale-teal: #94cdd0;
    --pale-blue: #b3c2cd;
    --slate: #486278;
    --paper: light-dark(var(--cream), var(--charcoal));
    --surface: light-dark(#fff, var(--navy));
    --ink: light-dark(var(--charcoal), var(--cream));
    --heading: light-dark(var(--navy), var(--cream));
    --soft: light-dark(#626963, var(--pale-blue));
    --line: light-dark(#d8dbd1, var(--slate));
    --quiet: light-dark(#e7eee8, #204459);
    --link: light-dark(var(--blue), var(--pale-teal));
    --button-bg: light-dark(var(--navy), var(--gold));
    --button-fg: light-dark(var(--cream), var(--navy));
    --display-font: Syne, var(--gh-font-heading, Arial), sans-serif;
    --body-font: Outfit, var(--gh-font-body, Arial), sans-serif;
    --gutter: clamp(1.15rem, 5vw, 5rem);
}
:root[data-appearance="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
    :root:not([data-appearance="light"]) { color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body.stilllight {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 1rem/1.55 var(--body-font);
    -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .17em; text-decoration-thickness: 1px; }
button, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--navy); }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 30; padding: .75rem; background: var(--surface); }
.skip-link:focus { top: .75rem; }
.wrap { width: min(72rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.masthead {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-block: clamp(1.1rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line);
    position: relative; z-index: 3;
}
.identity, .reader-tools, .search-trigger, .subscribe-action, .reader-menu summary { display: inline-flex; align-items: center; }
.identity { text-decoration: none; }
.identity-type { display: grid; gap: .2rem; }
.identity-type strong { font-size: clamp(1.5rem, 3vw, 2.05rem); font-family: var(--display-font); font-weight: 800; letter-spacing: -.035em; color: var(--heading); line-height: 1; }
.identity-type strong::after {
    content: "";
    display: inline-block;
    width: .29em;
    height: .29em;
    margin-inline-start: .13em;
    background: var(--gold);
    vertical-align: .04em;
}
.article-content.post-body::after, .note-entry::after {
    content: "";
    display: block;
    width: 75px;
    height: 75px;
    margin-block-start: 1.25rem;
    margin-inline: auto;
    clear: both;
    background: var(--gold);
}
.note-entry::after {
    grid-column: 1 / -1;
    width: 24px;
    height: 24px;
    margin-block-start: .5rem;
}
.identity-type small { font-size: .73rem; color: var(--soft); letter-spacing: -.005em; }
@media (min-width: 52rem) {
    .identity-type { gap: .35rem; }
    .identity-type strong { font-size: clamp(2.65rem, 4vw, 3.65rem); }
    .identity-type small { font-size: clamp(.95rem, 1.15vw, 1.1rem); }
}
.reader-tools { gap: clamp(.35rem, 1.5vw, 1.2rem); }
.search-trigger, .reader-menu summary { min-width: 44px; min-height: 44px; justify-content: center; background: transparent; border: 0; gap: .5rem; }
.search-trigger, .subscribe-action { font-weight: 570; font-size: .86rem; }
.search-symbol { width: .84rem; height: .84rem; border: 1.7px solid currentColor; border-radius: 50%; position: relative; }
.search-symbol::after { content: ""; position: absolute; height: 1.7px; width: .42rem; background: currentColor; right: -.33rem; bottom: -.13rem; transform: rotate(45deg); }
.subscribe-action { text-decoration: none; background: var(--button-bg); color: var(--button-fg); padding: .65rem 1.08rem; min-height: 44px; justify-content: center; gap: .8rem; border-radius: .3rem; }
.subscribe-action:hover { background: var(--blue); color: #fff; }
.reader-menu { position: relative; }
.reader-menu summary { list-style: none; border: 1px solid var(--line); border-radius: 50%; }
.reader-menu summary::-webkit-details-marker { display: none; }
.menu-symbol { width: 1rem; height: .42rem; border-block: 1.5px solid; }
.reader-menu[open] summary { background: var(--quiet); }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + .75rem); width: min(17rem, 88vw);
    background: var(--surface); border: 1px solid var(--line); border-radius: .4rem;
    box-shadow: 0 .6rem 2rem #172b351a; padding: .65rem; font-size: .92rem;
}
.menu-panel ul, .footer-line ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a, .appearance-control { display: flex; padding: .6rem .8rem; text-decoration: none; align-items: center; }
.menu-panel a:hover, .menu-panel .nav-current a { background: var(--quiet); }
.menu-options { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; }
.appearance-control { justify-content: space-between; gap: .5rem; color: var(--soft); }
.appearance-control[hidden] { display: none; }
.appearance-control select { background: var(--surface); border: 1px solid var(--line); border-radius: .25rem; padding: .2rem; }

.section-label, .meta, .entry-meta, .article-header .meta, .feature-copy time { font-size: .75rem; line-height: 1.45; font-weight: 550; color: var(--soft); }
.section-label {
    display: flex; align-items: center; gap: .7rem; width: fit-content;
    text-transform: uppercase; letter-spacing: .135em; margin: 0 0 1.25rem;
}
.section-label::before { content: ""; width: 1.65rem; height: 3px; background: var(--flash); }
.features { padding-top: clamp(1.6rem, 4vw, 3.4rem); }
.feature-lead {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center;
}
.feature-photo, .entry-photo { display: block; margin: 0; }
.feature-photo img { width: 100%; display: block; object-fit: cover; }
.feature-lead .feature-photo img { aspect-ratio: 3 / 2; max-height: 31rem; }
.feature-lead:not(:has(.feature-photo)) { display: block; max-width: 50rem; padding-block: clamp(1rem, 4vw, 3rem); }
.feature-copy h2, .entry-body h3, .archive-header h1, .article-header h1, .stream-title, .email-invite h2 {
    font-family: var(--body-font); color: var(--heading);
    font-weight: 600; text-wrap: balance; overflow-wrap: anywhere;
}
.feature-lead h2, .archive-header h1, .article-header h1 {
    font-family: var(--display-font); font-weight: 700;
}
.feature-copy h2 { margin: .6rem 0; }
.feature-lead h2 { font-size: clamp(2.6rem, 5.4vw, 5.15rem); line-height: .99; letter-spacing: -.055em; }
.feature-copy h2 a, .entry-body h3 a, .entry-meta a, .meta a, .article-header h1 a { color: inherit; text-decoration: none; }
.feature-copy h2 a:hover, .entry-body h3 a:hover, .entry-meta a:hover, .meta a:hover, .article-header h1 a:hover { color: var(--link); text-decoration: underline; }
.feature-lead p { font-size: clamp(1.02rem, 1.45vw, 1.24rem); line-height: 1.55; color: var(--soft); max-width: 38ch; margin: 1rem 0 0; }
.feature-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem;
}
.feature-small { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.feature-small .feature-photo { width: clamp(4rem, 6.5vw, 6rem); flex-shrink: 0; }
.feature-small .feature-photo img { width: 100%; aspect-ratio: 1; }
.feature-small h2 { margin: .3rem 0 0; line-height: 1.18; font-size: clamp(1.12rem, 1.7vw, 1.48rem); letter-spacing: -.045em; }
.reading-stream { margin-top: clamp(3rem, 6vw, 5.5rem); }
.stream-title { margin: 0; border-top: 2px solid var(--ink); padding-top: 1.2rem; font-size: clamp(1.85rem, 3.7vw, 3.35rem); line-height: 1.14; letter-spacing: -.045em; }
.stream-entry { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3.8fr); gap: 1rem; padding-block: clamp(1.6rem, 3.5vw, 3rem); border-bottom: 1px solid var(--line); }
.entry-meta { display: flex; align-items: flex-start; flex-direction: column; gap: .4rem; padding-top: .32rem; font-variant-numeric: tabular-nums; }
.entry-meta a[href*="/tag/"] { color: var(--link); }
.entry-body { min-width: 0; display: flow-root; }
.entry-body h3 { margin: 0; font-size: clamp(1.55rem, 2.8vw, 2.45rem); line-height: 1.13; letter-spacing: -.055em; }
.entry-body > p { margin: .65rem 0 0; max-width: 64ch; color: var(--soft); font-size: 1.03rem; }
.entry-photo { float: right; width: 25%; margin-left: clamp(1rem, 3vw, 2.5rem); }
.entry-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.archive-header, .article-header { padding-block: clamp(2.8rem, 6vw, 5.4rem) clamp(1.6rem, 4vw, 3.6rem); }
.archive-header h1, .article-header h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); margin: .3rem 0 .8rem; line-height: 1.02; letter-spacing: -.055em; }
.archive-header p, .article-header > p:not(.meta) { max-width: 52ch; color: var(--soft); font-size: clamp(1.05rem, 1.7vw, 1.35rem); margin: .7rem 0 0; }
.archive-header + .reading-stream { margin-top: 0; }
.article-header { max-width: 52rem; margin-inline: auto; }
.article-photo { margin: 0 auto clamp(1.8rem, 4vw, 3.75rem); }
.article-photo img { width: auto; display: block; max-height: 80vh; margin-inline: auto; }
.article-photo figcaption, .prose figcaption { font-size: .8rem; line-height: 1.5; color: var(--soft); text-align: center; margin-top: .6rem; }
.article-content { width: min(100%, 43rem); margin-inline: auto; }
.article-content:has(.media-diet) { width: min(100%, 60rem); }
.article-content .media-diet {
    --md-paper: var(--paper);
    --md-ink: var(--ink);
    --md-muted: var(--soft);
    --md-line: var(--line);
    --md-accent: light-dark(var(--blue), var(--gold));
    --md-green: light-dark(#126a74, var(--pale-teal));
    background: var(--md-paper);
    box-shadow: 0 0 0 clamp(.5rem, 2vw, 1.75rem) var(--md-paper);
}
.article-content .media-diet .md-birthday-note { background: var(--quiet); }
.article-content .media-diet .md-poster-pending { background: var(--quiet); }
.article-content .media-diet img.md-poster:not(.md-book-cover) { background: var(--quiet); }
/* Use the theme's heading face and grade colours in authored review cards. */
.article-content .media-diet :is(.md-section-heading h2, .md-entry h3, .md-stat strong) { font-family: var(--body-font); font-weight: 600; }
.article-content .media-diet .md-score { color: var(--ink); }
.article-content .media-diet .md-score-top { color: var(--md-green); }
.article-content .media-diet .md-score-low { color: var(--md-accent); }
.prose {
    display: flow-root; overflow-wrap: anywhere; font-size: clamp(1.03rem, 1.5vw, 1.16rem); line-height: 1.76; letter-spacing: -.013em;
}
.prose > :first-child, .entry-body > .prose p:first-child { margin-top: 0; }
.prose > :last-child, .entry-body > .prose p:last-child { margin-bottom: 0; }
.prose > p { margin: 0 0 1.25em; }
.entry-body .prose { max-width: 64ch; }
.prose a { color: var(--link); }
.prose :where(h2, h3, h4) { line-height: 1.19; letter-spacing: -.045em; margin: 1.75em 0 .55em; }
.prose blockquote { border-left: 3px solid var(--flash); padding-left: 1.2rem; margin-inline: 0; }
.prose pre { overflow-x: auto; background: var(--quiet); padding: 1rem; }
.prose :where(figure) { margin: 1.6rem 0; }
.prose .kg-width-wide, .prose .kg-width-full { position: relative; margin-inline: 50%; transform: translateX(-50%); }
.prose .kg-width-wide { width: min(calc(100vw - 2 * var(--gutter)), 62rem); }
.prose .kg-width-full { width: calc(100vw - 2 * var(--gutter)); }
.entry-body .prose :is(.kg-width-wide, .kg-width-full) { width: 100%; margin-inline: 0; transform: none; }
/* Ghost stores YouTube oEmbeds with fixed dimensions. Size the player independently of its caption. */
.article-content .youtube-card {
    width: min(56rem, calc(100vw - 2 * var(--gutter)));
    margin-inline: calc((100% - min(56rem, 100vw - 2 * var(--gutter))) / 2);
}
.youtube-card > iframe {
    display: block; width: 100%; height: auto;
    aspect-ratio: var(--video-ratio, 16 / 9); border: 0;
}
.video-expand {
    display: block; width: fit-content; margin: .45rem 0 0 auto;
    padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .25rem;
    background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem;
}
.article-content .youtube-card:is(:fullscreen, :popover-open) {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; inset: 0; transform: none;
    width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: .5rem; border: 0; background: #111;
}
.youtube-card:is(:fullscreen, :popover-open) > iframe {
    width: 100%; height: 100%; flex: 1; min-height: 0;
}
.youtube-card:is(:fullscreen, :popover-open) figcaption { display: none; }
.kg-image-card .kg-image { display: block; margin-inline: auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; }
.kg-gallery-row { display: flex; gap: .5rem; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { display: block; height: 100%; width: 100%; object-fit: cover; }
.prose hr { border: none; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.stilllight .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.6rem 0; color: var(--soft); }
.stilllight .pagination a { color: var(--link); }
/* Ghost signup cards publish their author-selected colours as inline styles. */
.stilllight .kg-signup-card {
    background-color: var(--surface) !important;
    border: 3px solid light-dark(var(--line), var(--cream));
}
.stilllight .kg-signup-card :is(.kg-signup-card-heading, .kg-signup-card-success) {
    color: var(--ink) !important;
}
.stilllight .kg-signup-card :is(.kg-signup-card-subheading, .kg-signup-card-disclaimer) {
    color: var(--soft) !important;
}
.stilllight .kg-signup-card .kg-signup-card-error { color: light-dark(#943a27, #ffc2ac) !important; }
.stilllight .kg-signup-card-fields {
    background: var(--paper); border-color: light-dark(#626963, #68839b);
}
.stilllight .kg-signup-card-fields:focus-within {
    outline: 2px solid var(--link); outline-offset: 3px;
}
.stilllight .kg-signup-card-input {
    min-width: 0; background: transparent; color: var(--ink);
}
.stilllight .kg-signup-card-input::placeholder { color: var(--soft); opacity: 1; }
.stilllight .kg-signup-card-button {
    background-color: var(--button-bg) !important; color: var(--button-fg) !important;
}

/* Use the theme's framed launcher when Ghost enables its guest signup button. */
.floating-signup { display: none; }
body.stilllight:has(.floating-signup) iframe.gh-portal-triggerbtn-iframe { display: none; }
body.stilllight:has(iframe.gh-portal-triggerbtn-iframe) .floating-signup {
    position: fixed; z-index: 2;
    bottom: max(1rem, env(safe-area-inset-bottom)); right: max(1rem, env(safe-area-inset-right));
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 44px; padding: .55rem 1rem; border: 2px solid var(--cream); border-radius: 2rem;
    background: var(--navy); color: var(--cream); box-shadow: 0 3px 15px #0005;
    font-size: .9rem; font-weight: 600; text-decoration: none;
}
body.stilllight:has(iframe.gh-portal-triggerbtn-iframe) .floating-signup:hover {
    background: var(--blue); border-color: var(--gold);
}
body.stilllight:has(.floating-signup):has(iframe.gh-portal-triggerbtn-iframe) .footer-line {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}
.colophon.wrap {
    width: 100%; margin-top: clamp(3.5rem, 8vw, 7rem);
    padding-inline: max(var(--gutter), calc((100% - 72rem) / 2));
    background: var(--navy); color: var(--cream);
}
.colophon .email-invite h2 { color: var(--cream); }
.colophon .subscribe-action { background: var(--gold); color: var(--navy); }
.colophon .subscribe-action:hover { background: #ffd16c; }
.colophon :focus-visible { outline-color: var(--gold); }
.colophon .footer-line a:hover { color: var(--gold); }
.email-invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(1.5rem, 4vw, 3.25rem); }
.email-invite h2 { margin: 0; font-size: clamp(1.5rem, 3.3vw, 2.8rem); line-height: 1.12; letter-spacing: -.06em; }
.footer-line, .footer-line ul { display: flex; gap: .7rem 1.3rem; flex-wrap: wrap; align-items: baseline; }
.footer-line { padding-block: 1.4rem 2.5rem; font-size: .8rem; color: var(--pale-blue); }
.email-invite ~ .footer-line { border-top: 1px solid var(--slate); }
.footer-line > span:first-child { margin-right: auto; }
@media (max-width: 48rem) {
    .feature-list { grid-template-columns: 1fr; gap: .85rem; }
    .feature-small .feature-photo { width: 4.5rem; }
    .stream-entry { grid-template-columns: 7.4rem minmax(0, 1fr); }
}
@media (max-width: 48rem), (orientation: landscape) and (max-width: 60rem) and (max-height: 32rem) {
    .feature-lead .feature-photo img {
        aspect-ratio: auto;
        max-height: 65vh;
        max-height: 65svh;
        object-fit: contain;
    }
    .feature-small .feature-photo img, .entry-photo img {
        aspect-ratio: auto;
        object-fit: contain;
    }
    .feature-small .feature-photo img { max-height: 5rem; }
    .entry-photo img { max-height: 8rem; }
}
@media (max-width: 38rem) {
    .identity-type small, .search-word { display: none; }
    .reader-tools { gap: .25rem; }
    .reader-menu summary { border: 0; }
    .masthead { gap: .25rem; }
    .masthead .subscribe-action { padding-inline: .75rem; }
    .feature-lead { grid-template-columns: 1fr; gap: 1.1rem; }
    .feature-lead h2 { font-size: clamp(2.5rem, 9vw, 3.4rem); }
    .feature-lead p { margin-top: .55rem; }
    .stream-entry { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
    .entry-meta { flex-direction: row; flex-wrap: wrap; gap: .75rem; padding: 0; }
    .entry-photo { width: 27%; }
    .email-invite { align-items: flex-start; flex-direction: column; }
    .footer-line { display: grid; gap: .75rem; }
}
@media (max-width: 27rem) {
    .masthead { width: calc(100% - .875rem); flex-wrap: wrap; }
    .masthead, .reader-tools { gap: .125rem; }
    .masthead .subscribe-action { padding-inline: .5rem; }
    .identity-type strong { font-size: clamp(1rem, 10vw - 1rem, 1.5rem); white-space: nowrap; }
}

.feature-archive { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.feature-archive summary { width: fit-content; padding: .75rem 0; color: var(--link); font-weight: 550; font-size: .85rem; }
.feature-archive .feature-list { margin: .35rem 0 1.6rem; padding: 0; border: 0; }
.entry-body.prose { max-width: 65ch; }
.entry-body.prose > p { color: inherit; font-size: inherit; margin: 0 0 1em; }
.entry-body.prose > :last-child { margin-bottom: 0; }
.note-entry img[src*="cdn.micro.blog/books/"], .note-detail img[src*="cdn.micro.blog/books/"] { max-width: min(8rem, 40%); height: auto; }
.image-narrow .article-photo { max-width: 43rem; }
.image-full .article-photo { width: 100vw; margin-inline: calc(50% - 50vw); }
.image-full .article-photo img { width: 100%; max-height: none; }
