/* eduo.info — one stylesheet for landing, apps and blog. */

:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --surface-2: #efebe4;
  --ink: #1c1a17;
  --ink-2: #3d3934;
  --muted: #6e675d;
  --line: #e2dcd2;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --apps-bg: #16181d;
  --apps-ink: #f3f1ec;
  --apps-muted: #a6a39c;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgb(28 26 23 / .06), 0 8px 24px -12px rgb(28 26 23 / .18);
  --radius: 14px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1b1a18;
    --surface-2: #24221f;
    --ink: #eeeae3;
    --ink-2: #d6d0c6;
    --muted: #a0988c;
    --line: #2f2c28;
    --accent: #f08c55;
    --accent-ink: #f6a676;
    --apps-bg: #0c0d10;
    --focus: #7aa2ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--text { max-width: 720px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } .wrap--text { max-width: 784px; } }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.wordmark-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); font: 700 19px/1 var(--serif); font-style: italic; padding-bottom: 3px; margin-right: 10px; }
.wordmark-dot { color: var(--muted); font-weight: 500; }
.wordmark--small { font-size: 15px; }
.wordmark--small .wordmark-mark { width: 24px; height: 24px; font-size: 15px; border-radius: 7px; margin-right: 8px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-note { width: 100%; }

/* ---------- Common bits ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.kicker a { text-decoration: none; }
.kicker a:hover { color: var(--ink); }
.hero-lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0; }
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 16px; }
.page-hero--blog h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.section-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 56px 0 16px; }
.section-note { color: var(--muted); margin: -8px 0 20px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--store { background: #000; color: #fff; border-color: #000; padding: 8px 18px 8px 14px; }
.btn--store svg { width: 24px; height: 24px; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.btn--store small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.btn--beta { background: #1d4ed8; color: #fff; border-color: #1d4ed8; padding: 8px 18px; }
.btn--beta span { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.btn--beta small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .btn--store { background: #fff; color: #000; border-color: #fff; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.badge--current { background: color-mix(in srgb, #16a34a 16%, transparent); color: #15803d; }
.badge--retired { background: var(--surface-2); color: var(--muted); }
.badge--beta { background: color-mix(in srgb, #2563eb 16%, transparent); color: #1d4ed8; }
@media (prefers-color-scheme: dark) { .badge--current { color: #4ade80; } .badge--beta { color: #93c5fd; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chip { font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chip--plain { background: transparent; color: var(--muted); }

.callout { border-left: 3px solid var(--app, var(--accent)); background: var(--surface); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 28px; box-shadow: var(--shadow); }
.callout--muted { border-left-color: var(--muted); color: var(--ink-2); font-size: 15px; }

/* ---------- Landing ---------- */
.landing { padding: 56px 0 0; }
.landing-intro { max-width: 760px; margin-bottom: 40px; }
.landing-intro h1 { font-size: clamp(40px, 8vw, 84px); line-height: 1; margin: 0 0 18px; letter-spacing: -.035em; font-weight: 750; }
.landing-intro h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--accent); }
.landing-intro p { font-size: 20px; color: var(--ink-2); margin: 0; }

.doors { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .doors { grid-template-columns: 1.08fr 1fr; } }
.door { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 380px; padding: 32px; border-radius: 24px; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; box-shadow: var(--shadow); }
.door:hover { transform: translateY(-3px); }
.door-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.door-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; font-weight: 750; letter-spacing: -.03em; }
.door-text { font-size: 17px; max-width: 30em; opacity: .85; }
.door-cta { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; }
.door-cta span { transition: transform .2s ease; }
.door:hover .door-cta span { transform: translateX(4px); }

.door--apps { background: var(--apps-bg); color: var(--apps-ink); }
.door--apps::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 520px; height: 520px; background: radial-gradient(closest-side, rgb(47 125 109 / .55), transparent 70%); z-index: -1; }
.door--apps::after { content: ""; position: absolute; inset: auto auto -50% -25%; width: 520px; height: 520px; background: radial-gradient(closest-side, rgb(194 65 12 / .35), transparent 70%); z-index: -1; }
.door-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; padding: 0; }
.door-icons .app-icon { width: 56px; height: 56px; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .6); }
.door-icons li:first-child .app-icon { width: 72px; height: 72px; }
.door-icons li { display: flex; align-items: center; }

.door--blog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.door--blog .door-title { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.door--blog::after { content: "“"; position: absolute; right: 18px; bottom: -80px; font: 400 320px/1 var(--serif); color: var(--accent); opacity: .12; z-index: -1; }

.landing-latest { margin-top: 48px; }
.landing-latest h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .latest-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.latest-list a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.latest-list a:hover .l-title { color: var(--accent-ink); }
.l-date { flex: none; width: 92px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.l-title { font-family: var(--serif); font-size: 19px; line-height: 1.35; }

/* ---------- Apps ---------- */
.app-icon { display: block; width: 64px; height: 64px; border-radius: 22.5%; object-fit: cover; background: var(--surface-2); flex: none; }
.app-icon--sm { width: 32px; height: 32px; border-radius: 8px; }
.app-icon--xl { width: 128px; height: 128px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); }
.app-icon--mono { display: grid; place-items: center; background: linear-gradient(145deg, var(--app), color-mix(in srgb, var(--app) 55%, #000)); color: #fff; font: 700 30px/1 var(--mono); }
.app-icon--sm.app-icon--mono { font-size: 15px; }
.app-icon--xl.app-icon--mono { font-size: 56px; }

.page-hero--apps { padding-bottom: 8px; }
.apps-section .section-title:first-child { margin-top: 24px; }
.app-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
.app-grid--current { grid-template-columns: 1fr !important; }
.app-card { position: relative; display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--app) 45%, var(--line)); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.card-head { display: flex; gap: 14px; align-items: center; }
.card-head h3 { margin: 0; font-size: 20px; }
.card-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.card-tagline { margin: 4px 0 0; font-weight: 600; color: var(--ink-2); }
.card-summary { margin: 0; font-size: 15px; color: var(--muted); }
.card-foot { margin: auto 0 0; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.card-more { color: var(--app); font-weight: 600; }
@media (prefers-color-scheme: dark) { .card-more { color: color-mix(in srgb, var(--app) 60%, #fff); } }
.app-card--big { flex-direction: column; background: linear-gradient(135deg, color-mix(in srgb, var(--app) 10%, var(--surface)), var(--surface) 60%); }
.app-card--big .card-body { padding: 32px; }
.app-card--big .card-head h3 { font-size: 30px; }
.app-card--big .app-icon { width: 84px; height: 84px; }
.app-card--big .card-tagline { font-size: 21px; }
.app-card--big .card-summary { font-size: 17px; max-width: 36em; }
.card-shot { height: 260px; overflow: hidden; background: #000; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
@media (min-width: 820px) {
  .app-card--big { flex-direction: row; }
  .card-shot { flex: 0 0 42%; height: 380px; }
}

.app-hero { padding: 56px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 14%, var(--bg)), var(--bg)); }
.app-hero-inner { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.app-hero-text { flex: 1; min-width: 260px; }
.app-hero h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 8px; letter-spacing: -.035em; }
.app-hero .kicker { display: flex; align-items: center; gap: 8px; }

.shots-strip { margin: 8px 0 24px; }
.shots-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100vw - 1120px) / 2 + 32px)) 24px; scrollbar-width: thin; }
.shots-track figure { margin: 0; flex: 0 0 auto; width: min(68vw, 300px); scroll-snap-align: center; }
.shots-track img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); display: block; }

.app-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 960px) { .app-layout { grid-template-columns: minmax(0, 1fr) 320px; } .app-aside { position: sticky; top: 84px; align-self: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.dl-note { font-size: 14px; color: var(--muted); margin: -4px 0 12px; }
.dl-list, .link-list, .other-apps { list-style: none; margin: 0; padding: 0; }
.dl-list li + li, .other-apps li + li { margin-top: 6px; }
.dl-list a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.dl-list a:hover { background: color-mix(in srgb, var(--app) 14%, var(--surface-2)); }
.dl-icon { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--app); color: #fff; font-size: 15px; }
.dl-file { font: 400 12px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.link-list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
.other-apps a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px; border-radius: 10px; font-weight: 500; }
.other-apps a:hover { background: var(--surface-2); }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 28px 0; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature-grid h3 { margin: 0 0 8px !important; font-size: 17px !important; font-family: var(--sans) !important; color: var(--app); }
@media (prefers-color-scheme: dark) { .feature-grid h3 { color: color-mix(in srgb, var(--app) 55%, #fff); } }
.feature-grid ul { margin: 0; padding-left: 18px; font-size: 15px; }
.app-prose .lead { font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.app-prose { font-family: var(--sans) !important; font-size: 17px !important; }
.app-prose h2, .app-prose h3 { font-family: var(--sans) !important; }
.changelog { margin: 32px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 20px; }
.changelog summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.changelog[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* ---------- Blog ---------- */
.page-hero--blog { border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 8px; }
.page-hero--blog .hero-lead { font-family: var(--serif); font-size: 21px; }
.blog-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; font-size: 15px; }
.blog-nav a { text-decoration: none; padding: 10px 0 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.blog-nav a:hover { color: var(--ink); }
.blog-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

.entries { padding-top: 16px; }
.entry { padding: 28px 0; border-bottom: 1px solid var(--line); }
.entry-meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.entry-meta a { text-decoration: none; }
.entry-meta a:hover { color: var(--accent-ink); text-decoration: underline; }
.entry-title { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--accent-ink); }
.entry-excerpt { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 0; font-size: 15px; }
.pagination a { text-decoration: none; font-weight: 600; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pg-count { color: var(--muted); font-size: 14px; }

.post-header { padding-top: 56px; padding-bottom: 24px; }
.post-header h1 { font-family: var(--serif); font-size: clamp(34px, 5.5vw, 52px); font-weight: 700; margin: 0 0 14px; letter-spacing: -.015em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.post-tags a { font-size: 14px; text-decoration: none; background: var(--surface-2); padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.post-tags a:hover { background: var(--ink); color: var(--bg); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.post-nav a:hover { color: var(--accent-ink); }
.post-nav small { display: block; font: 600 12px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pn-next { text-align: right; }

/* Prose: post bodies come from 14 years of WordPress, so be forgiving. */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre, .prose table { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); margin: 1.8em 0 .6em; }
.prose h2 { font-size: 1.45em; } .prose h3 { font-size: 1.2em; }
.prose a { color: var(--accent-ink); }
.prose img { border-radius: 6px; }
.prose img[align="left"], .prose .alignleft { float: left; margin: .3em 1.2em .8em 0; max-width: 50%; }
.prose img[align="right"], .prose .alignright { float: right; margin: .3em 0 .8em 1.2em; max-width: 50%; }
.prose .aligncenter, .prose .centered { display: block; margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose blockquote { margin-left: 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code, .prose pre, .prose kbd { font-family: var(--mono); font-size: .82em; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; white-space: pre-wrap; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; font-family: var(--sans); font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure.wp-caption { max-width: 100%; text-align: center; }
.prose figcaption { font: 14px/1.4 var(--sans); color: var(--muted); margin-top: 8px; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.15em; border-radius: 10px; overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose audio { width: 100%; }
.prose .dead-embed { font: 14px/1.5 var(--sans); color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-radius: 10px; }
.prose sup.fn a { text-decoration: none; font: 600 12px/1 var(--sans); color: var(--accent-ink); padding: 0 2px; }
.prose ol.footnotes { font-size: 15px; border-top: 1px solid var(--line); padding-top: 1em; margin-top: 2.5em; color: var(--ink-2); }
.prose .fn-back { text-decoration: none; }
.prose center { display: block; }
.prose .shots img, .app-prose img { border-radius: 10px; }

/* Comments */
.comments { margin-top: 48px; }
.comments h2 { font-size: 22px; margin: 0 0 20px; }
.comment-list, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-children { margin: 12px 0 0 22px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment-children .comment { border-top: 0; padding: 10px 0; }
.comment-head { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 6px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; flex: none; }
.comment-author { font-weight: 600; }
.comment-author a { text-decoration: none; }
.comment-date { margin-left: auto; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.comment-body { font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 .7em; }
.comment-body p:last-child { margin: 0; }
.comment-body img { max-width: 100%; }
.pings { margin-top: 24px; font-size: 15px; color: var(--muted); }
.pings summary { cursor: pointer; }
.pings ul { padding-left: 1.2em; }
.comments-closed { margin-top: 28px; font-size: 14px; color: var(--muted); font-style: italic; }

/* Archive + topics */
.search-box { position: sticky; top: 68px; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; padding: 8px 0; background: var(--bg); }
.search-box input { flex: 1; font: inherit; font-size: 17px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.search-box input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.year h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 30px; margin: 40px 0 8px; }
.year h2 a { text-decoration: none; }
.year h2 span { font: 500 14px var(--sans); color: var(--muted); }
.year ol { list-style: none; margin: 0; padding: 0; }
.year li a { display: flex; gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.year li a:hover span { color: var(--accent-ink); }
.year time { flex: none; width: 56px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.year li span { font-family: var(--serif); font-size: 17px; }
.archive-empty { color: var(--muted); padding: 32px 0; }
.cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.cloud a { font-size: calc(16px * var(--w)); text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cloud a:hover { border-color: var(--accent); color: var(--accent-ink); }
.cloud a span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.cloud--tags a { font-size: calc(14px * var(--w)); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose { font-size: 18px; }
  .door { padding: 24px; min-height: 0; }
  .entry-title { font-size: 24px; }
  .site-nav a { padding: 6px 10px; }
  .wordmark-dot { display: none; }
  .prose img[align="left"], .prose .alignleft, .prose img[align="right"], .prose .alignright { float: none; display: block; margin: 0 auto 1em; max-width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.prose .editor-note { font: italic 15px/1.5 var(--sans); color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; }
