/* Hypothermics: static archive. System fonts only, no external requests. */
:root {
  --bg: #f7f4ee; --surface: #fffdf9; --ink: #1b1f23; --ink-2: #4a525a; --muted: #6b737b;
  --line: #e3ddd2; --accent: #0e5a7a; --accent-2: #0a7ea4; --accent-soft: #e2eff4; --mark: #fff1a8;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px; --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .12);
  --wrap: 1180px; --text: 42rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --surface: #1b1f23; --ink: #e9e6e0; --ink-2: #c3c0b9; --muted: #969ba1;
    --line: #2c3238; --accent: #6cc4e6; --accent-2: #8fd6f2; --accent-soft: #17323d; --mark: #5a4b12;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-text { width: min(var(--text), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem .8rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: .5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; letter-spacing: -.02em; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: .45rem; background: url(/favicon.svg) center/cover; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: .45rem .7rem; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* hero + sections */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 650; color: var(--accent); margin: 0 0 .8rem; }
.eyebrow a { text-decoration: none; }
.hero-title { font-size: clamp(3rem, 10vw, 7rem); line-height: .92; letter-spacing: -.045em; font-weight: 800; margin: 0; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink-2); margin: .9rem 0 0; max-width: 38ch; line-height: 1.3; }
.hero-intro { max-width: 58ch; color: var(--ink-2); margin-top: 1.4rem; font-size: 1.1rem; }
.section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 650; margin: 3.5rem 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.more { margin: 2rem 0 0; }
.button { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 650; padding: .75rem 1.2rem; border-radius: 999px; }
.button:hover { color: var(--bg); background: var(--accent); }

/* feature + cards */
.feature-card { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 860px) { .feature-card { grid-template-columns: 1.25fr 1fr; align-items: center; } }
.feature-media img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.feature-body { padding: 0 1.5rem 1.8rem; }
@media (min-width: 860px) { .feature-body { padding: 2rem 2.5rem 2rem 0; } }
.feature-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.08; margin: .3rem 0 .8rem; }
.feature-title a, .card-title a { color: var(--ink); text-decoration: none; }
.feature-title a:hover, .card-title a:hover { color: var(--accent); }
.feature-summary { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-2); }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-media img, .card-media--empty { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--accent-soft); }
.card-media--empty { display: grid; place-items: center; text-decoration: none; font: 800 3rem/1 var(--sans); color: var(--accent); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.card-title { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.card-summary { color: var(--ink-2); font-size: .97rem; margin: .2rem 0 0; }
.meta { font-size: .82rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .78rem; font-weight: 650; text-decoration: none; padding: .28rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.topic-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.topic-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); color: var(--ink); text-decoration: none; }
.topic-tile:hover { border-color: var(--accent); color: var(--ink); }
.topic-name { font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; }
.topic-blurb { color: var(--ink-2); font-size: .95rem; }
.topic-count { color: var(--accent); font-weight: 650; font-size: .85rem; margin-top: auto; }

/* post */
.post-header { padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem; }
.post-title { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; margin: .8rem 0 .9rem; font-weight: 800; text-wrap: balance; }
.byline { color: var(--muted); font-size: .92rem; margin: 0; }
.byline a { color: inherit; }
.prose { font-family: var(--serif); font-size: clamp(1.1rem, 1.2vw + .8rem, 1.24rem); line-height: 1.72; color: var(--ink); }
.prose::after { content: ""; display: table; clear: both; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); letter-spacing: -.02em; line-height: 1.2; margin: 2.2em 0 .5em; }
.prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.1rem; }
.prose p > strong:only-child { display: block; font-family: var(--sans); font-size: 1.15em; letter-spacing: -.01em; margin-top: 1.6em; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: 10px; display: block; }
.prose figure { margin: 1.6em 0; max-width: 100%; }
.prose figure.wp-caption { width: auto !important; }
.prose figcaption, .prose .wp-caption-text { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.4; }
.prose .aligncenter { margin-inline: auto; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem; text-align: left; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); padding: .1em .3em; border-radius: 4px; }
@media (min-width: 720px) {
  .prose .alignleft, .prose figure.alignleft { float: left; max-width: 46%; margin: .35em 1.6em 1em 0; }
  .prose .alignright, .prose figure.alignright { float: right; max-width: 46%; margin: .35em 0 1em 1.6em; }
  .prose figure.alignleft img, .prose figure.alignright img { max-width: 100%; }
}
@media (max-width: 719.98px) { .prose img { margin-inline: auto; } }
.prose a { word-break: break-word; }
.post-tags { margin-top: 2.5rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; color: var(--ink-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav-link { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); font-weight: 650; line-height: 1.3; }
.post-nav-link .muted { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.post-nav-link--next { text-align: right; }

/* lite youtube */
.yt { margin: 2em 0; clear: both; }
.yt-inner { position: relative; aspect-ratio: 16/9; background: #0d0f11; border-radius: 12px; overflow: hidden; }
.yt-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .88; }
.yt-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.yt-play { width: 76px; height: 54px; border-radius: 14px; background: rgb(0 0 0 / .72); position: relative; transition: background .15s; }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-btn:hover .yt-play, .yt-btn:focus-visible .yt-play { background: #c4302b; }

/* comments */
.comments { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.comments h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0; }
.closed-note { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.8rem; }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.replies { margin: 1rem 0 0 1.1rem; padding-left: 1.1rem; border-left: 2px solid var(--line); }
.comment { margin-top: 1.4rem; }
.comment > article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.comment--author > article { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.comment-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .9rem; }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: .85rem; flex: none; }
.comment-author { font-weight: 700; }
.badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--surface); padding: .1rem .45rem; border-radius: 999px; }
.comment-date { margin-left: auto; color: var(--muted); font-size: .8rem; text-decoration: none; }
.comment-body { font-size: .98rem; color: var(--ink-2); margin-top: .5rem; overflow-wrap: anywhere; }
.comment-body p { margin: .5em 0 0; }
.comment-body blockquote { margin: .6em 0; padding-left: .8em; border-left: 3px solid var(--line); }

/* archive + search */
.archive-year { font-size: 1.6rem; letter-spacing: -.02em; margin: 2.4rem 0 .6rem; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.archive-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.archive-list a:hover { color: var(--accent); }
.archive-list time { color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-input { width: 100%; font: inherit; font-size: 1.2rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search-input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.search-results { list-style: none; padding: 0; margin: 1rem 0 0; }
.result { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.result-title { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.result-title:hover { color: var(--accent); }
.result-excerpt { margin: .3rem 0 0; color: var(--ink-2); font-size: .97rem; }
mark { background: var(--mark); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* footer */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--ink); margin: 0 0 .2rem; letter-spacing: -.02em; }
.site-footer p { margin: .2rem 0; }
.site-footer nav { display: flex; flex-direction: column; gap: .35rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .header-row { padding: .4rem 0; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { padding: .35rem .5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link--next { text-align: left; }
  .replies { margin-left: .4rem; padding-left: .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .post-nav, .yt { display: none; } body { background: #fff; color: #000; } }
