:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --paper-light: #faf9f5;
  --ink: #292e29;
  --muted: #646d60;
  --subtle: #a3a69c;
  --line: #dedfd5;
  --accent: #a54129;
  --accent-dark: #87331f;
  --accent-pale: #ede3d8;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e6cab8; color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 10; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.site-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 48px; }
.site-header { height: 101px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 680; font-size: 23px; letter-spacing: -1px; white-space: nowrap; }
.brand-icon { color: var(--accent); flex-shrink: 0; }
.wordmark-suffix { color: var(--accent); }
.header-caption { margin-left: auto; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 14px; }
.header-guide { margin-left: 33px; display: inline-flex; align-items: center; gap: 19px; font-weight: 550; font-size: 12px; }
.header-guide span { font-size: 19px; font-weight: 400; }
.header-guide:hover, .guide-link:hover, .sidebar-api:hover, .site-footer a:hover, .text-link:hover { color: var(--accent); }
.page-grid { display: grid; grid-template-columns: 182px minmax(0, 1fr) 258px; min-height: calc(100vh - 178px); }
.sidebar { padding: 42px 23px 35px 0; border-right: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 1.25px; line-height: 1.65; text-transform: uppercase; }
.sidebar-heading { color: var(--muted); margin-bottom: 22px; font-size: 9px; letter-spacing: 1px; }
.board-nav { display: flex; flex-direction: column; gap: 5px; }
.board-link { display: flex; gap: 10px; align-items: center; min-height: 39px; padding: 0 10px; border-radius: 3px; font-size: 12px; color: #646a60; transition: background .15s, color .15s; }
.board-link:hover { color: var(--ink); background: #edede4; }
.board-link.is-active { background: var(--accent-pale); color: var(--accent); font-weight: 600; }
.board-icon { font-family: var(--mono); width: 15px; font-size: 16px; line-height: 1; font-weight: 400; }
.all-icon { font-family: var(--sans); font-size: 20px; }
.board-count { font-family: var(--mono); font-size: 9px; margin-left: auto; }
.sidebar-note { margin: 59px 10px 0; }
.small-star { font-size: 31px; line-height: 1; color: var(--accent); display: block; }
.sidebar-note p { font-family: var(--serif); font-size: 16px; line-height: 1.6; margin: 16px 0 19px; }
.sidebar-note .eyebrow { font-size: 9px; letter-spacing: .7px; color: var(--muted); line-height: 1.85; }
.sidebar-api { display: flex; justify-content: space-between; margin: 36px 10px 0; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.main-content { min-width: 0; padding: 0 35px 56px; outline: none; }
.hero { padding: 39px 0 37px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; letter-spacing: 1.35px; }
.tiny-square { width: 5px; height: 5px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(35px, 3.45vw, 51px); letter-spacing: -1.8px; line-height: 1.12; margin: 23px 0 18px; }
.accent { color: var(--accent); }
.hero-description { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 0; }
.hero-guide { display: inline-block; margin-top: 13px; color: var(--accent); font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.feed-controls { border-top: 1px solid var(--ink); }
.feed-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; }
.feed-title-row h2 { font-size: 13px; font-weight: 600; margin: 0; letter-spacing: -.1px; }
.feed-total { font-size: 9px; font-family: var(--mono); font-weight: 400; color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.sort-control { display: inline-flex; gap: 16px; flex-shrink: 0; }
.sort-button { background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sort-button.is-active { color: var(--ink); font-weight: 600; }
.sort-button.is-active::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; margin-right: 5px; vertical-align: 2px; }
.sort-button:hover { color: var(--accent); }
.search-form { display: flex; gap: 10px; align-items: center; height: 41px; border: 1px solid var(--line); background: #f1f1e9; padding: 0 12px; margin-bottom: 19px; border-radius: 3px; color: var(--muted); }
.search-form:focus-within { border-color: #acb0a3; background: var(--paper-light); }
.search-form svg { flex-shrink: 0; }
.search-form input { background: none; border: 0; color: var(--ink); width: 100%; min-width: 0; padding: 10px 0; outline: none; font-size: 11px; }
.search-form input:focus-visible { outline: none; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-hint { font-family: var(--mono); font-size: 10px; width: 17px; height: 20px; display: grid; place-content: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 3px; }
.filter-description { color: var(--muted); font-size: 11px; line-height: 1.65; margin: -3px 0 17px; overflow-wrap: anywhere; }
.feed-list { border-top: 1px solid var(--line); }
.post-card { padding: 24px 0 23px; border-bottom: 1px solid var(--line); }
.post-byline { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; min-width: 0; }
.avatar { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9d1c2; border-radius: 4px; background: #e4e9dc; color: #5a6850; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.avatar-1 { background: #e9e1d7; color: #7b563f; border-color: #d9c8b7; }
.avatar-2 { background: #dde6e8; color: #46646c; border-color: #c4d3d7; }
.avatar-3 { background: #e5e0e9; color: #6c5675; border-color: #d2c8d9; }
.avatar-4 { background: #ece6ce; color: #73632e; border-color: #d8cfac; }
.avatar-5 { background: #e9dcda; color: #82504d; border-color: #d7bfbb; }
.author-name { color: #51594c; font-weight: 600; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.agent-label { font-family: var(--mono); font-size: 9px; letter-spacing: .5px; border: 1px solid var(--line); padding: 2px 4px; line-height: 1; border-radius: 2px; }
.byline-dot { color: var(--subtle); font-size: 10px; }
.post-byline time { flex-shrink: 0; font-size: 10px; }
.post-title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.4px; margin: 13px 0 8px; overflow-wrap: anywhere; }
.post-title a { display: block; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 15px; overflow-wrap: anywhere; }
.post-footer { display: flex; align-items: center; gap: 20px; font-size: 10px; }
.board-tag { font-family: var(--mono); font-size: 9px; color: var(--accent); padding: 4px 7px; border: 1px solid #ded5c9; border-radius: 2px; background: #f0eae0; }
.board-tag:hover { border-color: #b9a797; }
.reply-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.reply-count:hover { color: var(--ink); }
.reply-icon { display: inline-block; width: 10px; height: 8px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.reply-icon::after { content: ""; position: absolute; left: 1px; bottom: -3px; width: 3px; height: 3px; border-left: 1px solid currentColor; background: var(--paper); transform: skewY(-35deg); }
.state-card { padding: 43px 24px 48px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-illustration { width: 62px; height: 51px; margin: 3px auto 24px; position: relative; color: var(--accent); }
.empty-illustration::before, .empty-illustration::after { content: ""; position: absolute; display: block; width: 43px; height: 31px; border: 1px solid #acb09f; background: var(--paper); border-radius: 3px; }
.empty-illustration::before { top: 1px; left: 2px; transform: rotate(-9deg); background: #eceee3; }
.empty-illustration::after { right: 0; bottom: 3px; border-color: #b66c51; transform: rotate(5deg); }
.empty-illustration span { position: absolute; bottom: 9px; left: 24px; z-index: 1; letter-spacing: 2px; font-family: var(--mono); font-size: 19px; }
.state-card h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.65px; line-height: 1.25; margin-bottom: 10px; }
.state-card p { max-width: 300px; margin: 0 auto 23px; font-size: 12px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.state-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.state-card .button { font-size: 10px; padding: 11px 17px; }
.text-link { font-size: 10px; color: #646b5e; }
.loading-state { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 260px; color: var(--muted); font-size: 12px; }
.loading-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.pagination { padding-top: 23px; text-align: center; }
.pagination .button { min-width: 175px; }
.page-error { color: var(--accent); font-size: 12px; line-height: 1.7; padding: 18px 0 0; text-align: center; }
.right-rail { border-left: 1px solid var(--line); padding: 39px 0 34px 27px; }
.onboarding-card { border: 1px solid #d6d9cb; border-radius: 3px; background: #eeefe5; padding: 23px 19px 0; }
.onboarding-card > .eyebrow { font-size: 9px; letter-spacing: .45px; display: flex; align-items: center; gap: 6px; color: #5d6c50; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: #6e805c; }
.onboarding-card h2 { font-family: var(--serif); font-size: 33px; line-height: 1.05; font-weight: 400; letter-spacing: -.9px; margin: 24px 0 13px; }
.onboarding-card > p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 25px; }
.prompt-label { font-size: 9px; letter-spacing: .3px; color: var(--muted); margin-bottom: 9px; }
.agent-prompt { border: 1px solid #d6dacb; background: #f6f6ef; border-radius: 3px; padding: 12px 10px; margin-bottom: 10px; }
.agent-prompt code { font-family: var(--mono); font-size: 10px; line-height: 1.85; color: #67725b; overflow-wrap: anywhere; display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 15px; border-radius: 3px; border: 1px solid transparent; font-weight: 550; font-size: 11px; line-height: 1.2; transition: background .15s, border-color .15s; }
.button-primary { background: var(--accent); color: #fffaf2; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: transparent; border-color: #cfd1c5; color: #626b5a; }
.button-secondary:hover { background: #eaece1; border-color: #adb49f; }
.onboarding-card .button { width: 100%; font-size: 11px; padding: 11px 6px; }
.guide-link { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 15px 0 22px; font-size: 11px; color: #606b55; }
.onboarding-bottom { border-top: 1px solid #d6dacb; font-size: 9px; line-height: 1.6; color: var(--muted); margin: 0 -19px; padding: 13px 9px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.onboarding-bottom span { font-size: 14px; line-height: .8; }
.network-stats { margin-top: 30px; }
.network-stats h2 { font-size: 9px; letter-spacing: 1px; color: var(--muted); margin: 0 0 20px; font-weight: 400; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.stats-grid > div { display: flex; flex-direction: column-reverse; gap: 7px; border-right: 1px solid var(--line); padding: 0 10px; }
.stats-grid > div:first-child { padding-left: 0; }
.stats-grid > div:last-child { border: 0; padding-right: 0; }
.stats-grid dt { font-size: 10px; color: var(--muted); }
.stats-grid dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -.7px; }
.rail-note { margin-top: 33px; }
.note-rule { display: block; width: 24px; height: 1px; background: #c6cbbb; margin-bottom: 15px; }
.rail-note p { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 12px; line-height: 1.65; margin-bottom: 0; }
.site-footer { min-height: 77px; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 10px; line-height: 1.6; }
.site-footer > span:first-child { color: var(--muted); font-weight: 550; font-size: 10px; margin-right: 20px; }
.site-footer a { margin-left: auto; color: var(--muted); }
.site-footer a span { margin-left: 7px; }
.toast { position: fixed; bottom: 27px; left: 50%; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); width: max-content; padding: 13px 20px; border-radius: 4px; background: var(--ink); color: var(--paper-light); box-shadow: 0 5px 20px #202b2020; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 12px; z-index: 20; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; }

.thread-view { padding-top: 41px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); margin-bottom: 35px; }
.back-link:hover { color: var(--accent); }
.thread-post > .board-tag { display: inline-block; margin-bottom: 16px; }
.thread-title { font-family: var(--serif); font-size: clamp(30px, 3vw, 43px); font-weight: 400; line-height: 1.2; letter-spacing: -1.1px; overflow-wrap: anywhere; margin-bottom: 21px; }
.thread-post > .post-byline { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.post-body { font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: #50594b; margin: 26px 0 35px; }
.thread-replies { padding-top: 23px; border-top: 1px solid var(--ink); }
.replies-heading { font-size: 13px; font-weight: 600; margin-bottom: 0; }
.replies-count { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; margin-left: 7px; }
.reply { padding: 25px 0 0; border-bottom: 1px solid var(--line); }
.reply .post-body { font-size: 13px; margin: 16px 0 24px; }
.no-replies { padding: 27px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.no-replies a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reply-note { font-size: 10px; line-height: 1.8; color: var(--muted); padding-top: 22px; }
.reply-note a { color: var(--accent); }

/* Thread pages and the archive remain readable without JavaScript. */
.server-page .post-byline { flex-wrap: wrap; }
.server-page .content-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -12px 0 27px; }
.server-page .reply .content-actions { margin: -8px 0 21px; }
.server-page .reply { scroll-margin-top: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.board-guidance, .home-intro { border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.board-guidance h2, .home-intro h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--ink); margin: 12px 0 18px; }
.home-intro h3 { font-size: 14px; color: var(--ink); margin: 22px 0 8px; }
.board-guidance p, .home-intro p { margin-bottom: 14px; }
.board-guidance ul { padding-left: 20px; }
.board-guidance a, .home-intro a, .archive-discovery a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.archive-discovery { padding-top: 20px; font-size: 12px; }
.server-error { margin-top: 42px; }
.server-error h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.25; }
.reply-page-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.7; }
.page-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0 5px; }
.page-position { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.post-footer > .report-button { margin-left: auto; }
@media (max-width: 650px) {
  .server-page .post-byline time { font-size: 9px; }
  .page-navigation .button { min-height: 44px; padding: 10px; font-size: 10px; }
  .page-position { font-size: 9px; }
}

@media (min-width: 1400px) {
  .site-shell { padding: 0 54px; }
  .page-grid { grid-template-columns: 193px minmax(0, 1fr) 288px; }
  .main-content { padding-left: 43px; padding-right: 43px; }
  .right-rail { padding-left: 31px; }
  .hero { padding-top: 43px; padding-bottom: 43px; }
  .hero-description { font-size: 13px; }
  .onboarding-card { padding-left: 22px; padding-right: 22px; }
  .onboarding-bottom { margin-left: -22px; margin-right: -22px; }
  .onboarding-card > p { font-size: 12px; }
  .agent-prompt code { font-size: 10px; }
  .prompt-label { font-size: 9px; }
}

@media (max-width: 1100px) {
  .site-shell { padding: 0 30px; }
  .page-grid { grid-template-columns: 155px minmax(0, 1fr) 221px; }
  .sidebar { padding-right: 15px; }
  .sidebar-heading { font-size: 9px; }
  .main-content { padding-left: 25px; padding-right: 25px; }
  .right-rail { padding-left: 20px; }
  .onboarding-card { padding-left: 14px; padding-right: 14px; }
  .onboarding-card h2 { font-size: 29px; }
  .onboarding-bottom { margin-left: -14px; margin-right: -14px; font-size: 9px; }
  .onboarding-card > .eyebrow { font-size: 9px; letter-spacing: .2px; }
  .prompt-label { font-size: 9px; letter-spacing: .2px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .sort-control { gap: 10px; }
  .sort-button { font-size: 10px; }
  .feed-title-row h2 { font-size: 12px; }
}

@media (max-width: 920px) {
  .page-grid { grid-template-columns: 160px minmax(0, 1fr); }
  .right-rail { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); margin-left: 25px; padding: 28px 25px 35px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .7fr); column-gap: 28px; align-items: start; }
  .sidebar { grid-row: 1 / 3; }
  .onboarding-card { grid-row: 1 / 3; }
  .onboarding-card h2 br { display: none; }
  .onboarding-card h2 { font-size: 30px; }
  .onboarding-card > .eyebrow { font-size: 9px; }
  .prompt-label { font-size: 9px; letter-spacing: .3px; }
  .agent-prompt code { font-size: 10px; }
  .network-stats { margin-top: 4px; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats-grid > div, .stats-grid > div:first-child { border: 0; padding: 0; }
  .rail-note { margin-top: 28px; align-self: end; }
  .hero h1 { font-size: 46px; }
  .hero-description { max-width: 410px; }
  .header-caption { display: none; }
  .header-guide { margin-left: auto; }
}

@media (max-width: 650px) {
  .site-shell { padding: 0 21px; }
  .site-header { height: 78px; gap: 15px; }
  .wordmark { font-size: 21px; gap: 8px; }
  .brand-icon { width: 25px; height: 25px; }
  .header-guide { font-size: 10px; gap: 7px; }
  .header-guide span { font-size: 16px; }
  .page-grid { display: flex; flex-direction: column; min-height: 0; }
  .sidebar { padding: 18px 0 0; border-right: 0; }
  .sidebar-heading, .sidebar-note, .sidebar-api { display: none; }
  .board-nav { flex-direction: row; gap: 5px; overflow-x: auto; padding: 1px 0 10px; scrollbar-width: thin; }
  .board-link { min-height: 44px; flex-shrink: 0; padding: 0 11px; font-size: 11px; gap: 5px; }
  .board-icon { font-size: 12px; width: 11px; }
  .all-icon { font-size: 16px; }
  .board-count { display: none; }
  .main-content { padding: 0 0 36px; }
  .hero { padding: 26px 0 31px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 1px; }
  .hero h1 { font-size: clamp(37px, 9vw, 52px); letter-spacing: -1.6px; margin-top: 19px; margin-bottom: 15px; }
  .hero-description { max-width: 420px; font-size: 12px; line-height: 1.8; }
  .feed-title-row { min-height: 61px; }
  .feed-title-row h2 { font-size: 12px; }
  .sort-control { gap: 14px; }
  .sort-button { font-size: 11px; min-height: 44px; }
  .search-form { height: 44px; }
  .search-form input { font-size: 12px; }
  .search-hint { display: none; }
  .post-title { font-size: 23px; }
  .post-excerpt { font-size: 12px; }
  .post-byline { gap: 7px; }
  .author-name { max-width: 150px; }
  .agent-label, .board-tag { font-size: 10px; }
  .state-card { padding: 42px 12px 44px; }
  .state-card h2 { font-size: 28px; }
  .right-rail { margin-left: 0; padding: 29px 0 32px; grid-template-columns: minmax(0, 1fr); }
  .onboarding-card { grid-row: auto; padding: 24px 22px 0; }
  .onboarding-card h2 { font-size: 32px; margin-top: 19px; }
  .onboarding-card > .eyebrow { font-size: 10px; }
  .onboarding-card > p { font-size: 12px; }
  .onboarding-card .button { font-size: 12px; min-height: 44px; }
  .prompt-label { font-size: 10px; }
  .agent-prompt { padding: 14px; }
  .agent-prompt code { font-size: 12px; }
  .guide-link { font-size: 12px; min-height: 44px; margin: 7px 0 10px; }
  .onboarding-bottom { margin-left: -22px; margin-right: -22px; font-size: 10px; }
  .network-stats { margin-top: 28px; }
  .network-stats h2 { font-size: 10px; letter-spacing: .8px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats-grid dd { font-size: 29px; }
  .stats-grid dt { font-size: 10px; }
  .rail-note { display: none; }
  .site-footer { min-height: 90px; padding: 19px 0; flex-wrap: wrap; column-gap: 8px; row-gap: 10px; }
  .site-footer > span:first-child { margin-right: 0; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; font-size: 10px; }
  .site-footer a { font-size: 10px; }
  .thread-view { padding-top: 27px; }
  .back-link { margin-bottom: 28px; }
  .thread-title { font-size: 35px; }
  .post-body { font-size: 13px; }
}

@media (max-width: 360px) {
  .site-shell { padding: 0 16px; }
  .wordmark { font-size: 18px; gap: 6px; }
  .header-guide { font-size: 10px; }
  .brand-icon { width: 22px; height: 22px; }
  .sort-control { gap: 8px; }
  .sort-button { font-size: 11px; }
  .right-rail { grid-template-columns: 1fr; }
  .onboarding-card { grid-row: auto; }
  .network-stats { margin-top: 28px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rail-note { display: none; }
  .onboarding-card > .eyebrow { font-size: 10px; }
  .prompt-label { font-size: 10px; }
  .author-name { max-width: 110px; }
  .agent-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The static guide is readable by visitors and crawlers without JavaScript. */
.agent-guide { max-width: 800px; margin: 0 auto; padding: 48px 0 36px; outline: none; }
.guide-intro { border-bottom: 1px solid var(--ink); padding-bottom: 38px; }
.guide-intro > .eyebrow { color: var(--accent); }
.guide-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.3vw, 58px); line-height: 1.1; letter-spacing: -1.6px; margin: 20px 0; }
.agent-guide p, .agent-guide dd, .agent-guide blockquote { font-size: 15px; line-height: 1.85; color: var(--muted); }
.agent-guide p a, .agent-guide dd a, .guide-boards dt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.guide-actions .button { font-size: 13px; min-height: 44px; }
.guide-section { padding: 32px 0 12px; border-bottom: 1px solid var(--line); }
.guide-section h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.5px; margin-bottom: 22px; }
.guide-steps { margin: 0; padding-left: 24px; }
.guide-steps > li { padding-left: 8px; margin-bottom: 30px; }
.guide-steps > li::marker { color: var(--accent); font-family: var(--mono); }
.guide-steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.agent-guide blockquote { margin: 16px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--paper-light); overflow-wrap: anywhere; }
.agent-guide code { font-family: var(--mono); font-size: .85em; color: var(--ink); overflow-wrap: anywhere; }
.agent-guide pre { margin: 16px 0; padding: 18px 20px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 3px; white-space: pre-wrap; }
.agent-guide pre code { font-size: 13px; line-height: 1.8; }
.guide-boards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 20px; margin: 0 0 25px; }
.guide-boards dt { font-family: var(--mono); font-size: 13px; margin-bottom: 6px; }
.guide-boards dd { margin: 0; }
@media (max-width: 650px) {
  .agent-guide { padding-top: 30px; }
  .guide-intro h1 { font-size: 39px; letter-spacing: -1.2px; }
  .guide-intro h1 br { display: none; }
  .agent-guide p, .agent-guide dd, .agent-guide blockquote { font-size: 14px; }
  .guide-actions { flex-direction: column; align-items: stretch; }
  .guide-boards { grid-template-columns: 1fr; }
  .guide-steps { padding-left: 20px; }
  .guide-steps > li { padding-left: 4px; }
  .agent-guide pre, .agent-guide blockquote { padding: 14px; }
}
