/* A quiet editorial layout: warm paper, dark ink, one restrained accent. */
:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #262a26;
  --muted: #62665e;
  --line: #d9d8ce;
  --accent: #ad3e28;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Inter', 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-height: 100vh; margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #dce0d4; color: var(--ink); }
.shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.masthead { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.home-link { font-size: 13px; font-weight: 550; letter-spacing: -.02em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
nav a { padding: 12px 0; color: var(--muted); }
nav a[aria-current="page"] { color: var(--ink); }
.lock-mark { margin-left: 3px; color: var(--muted); font-size: 10px; }
main { min-height: calc(100svh - 162px); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(54px, 8.5vw, 108px); line-height: 1.04; letter-spacing: -.065em; }
h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 23px; line-height: 1.2; }
p { line-height: 1.7; }
.home-main { display: flex; flex-direction: column; justify-content: center; padding: 72px 0 100px; }
.home-main h1 { max-width: 100%; }
.home-intro { max-width: 440px; margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.content-page { padding: 80px 0 96px; }
.content-page > h1 { font-size: clamp(42px, 7vw, 62px); }
.lede { max-width: 600px; margin: 21px 0 0; color: var(--muted); font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.prose { max-width: 640px; }
.prose p { margin: 16px 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.work-section { margin-top: 68px; }
.section-title { margin-bottom: 19px; font-family: var(--sans); font-size: 11px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.work-list, .post-list { border-top: 1px solid var(--line); }
.work-item, .post-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.work-item p { max-width: 520px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.work-type, .post-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.work-link { color: var(--accent); }
.post-item { align-items: start; }
.post-item h2 { font-size: 25px; }
.post-item p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.empty-writing { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-back { margin: 0 0 42px; color: var(--muted); font-size: 12px; }
.article-page article > .post-date { display: block; margin-bottom: 14px; }
.article-page h1 { max-width: 700px; font-size: clamp(42px, 7vw, 62px); }
.article-page .lede { margin-bottom: 42px; }
.article-body { max-width: 640px; }
.article-body h2, .article-body h3 { margin: 36px 0 12px; font-size: 28px; }
.article-body p, .article-body li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.article-body ul { padding-left: 22px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* The private launcher shares assets, never public HTML. */
.ink-dot { color: var(--accent); }
.introduction { padding: 40px 0; }
.library { background: #eeefe8; }
.library-shell { width: min(1120px, calc(100% - 48px)); }
.app-page { padding-top: 64px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.app-page > h1 { font-size: clamp(48px, 7vw, 80px); }
.app-intro { margin: 20px 0 42px; color: var(--muted); font-size: 15px; }
.app-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; }
.app-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; min-height: 240px; padding: 26px; border: 1px solid #d2d5c9; border-radius: 3px; background: #f8f8f2; transition: background .18s, border-color .18s; }
.app-item:nth-child(3n + 2) { background: #e3e8dc; }
.app-item:nth-child(3n) { background: #e9e3d8; }
.app-item:hover { color: var(--ink); background: #fffdf6; border-color: var(--accent); }
.app-symbol { font-family: var(--serif); font-size: 29px; font-style: italic; color: var(--accent); }
.app-item h2 { font-family: var(--serif); font-size: 28px; letter-spacing: -.035em; }
.app-item p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.app-arrow { position: absolute; right: 24px; top: 28px; color: var(--muted); font-size: 20px; }
.access-note { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.article-body pre { overflow-x: auto; padding: 20px; background: #eae8df; font-size: 14px; line-height: 1.6; }
.article-body code { font-size: .9em; }
.article-body blockquote { margin: 24px 0; padding-left: 24px; border-left: 2px solid var(--accent); }
.article-page h1, .article-body, .post-item, .app-copy { overflow-wrap: anywhere; }
.post-list { margin-top: 44px; }
@media (max-width: 800px) { .app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 62px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 5; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 18px; }
@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 72px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 10px 0; }
  nav { gap: 18px; font-size: 11px; }
  main { min-height: calc(100svh - 134px); }
  .home-main { padding: 68px 0 82px; }
  h1 { font-size: clamp(48px, 12vw, 66px); }
  .home-intro, .lede { font-size: 17px; }
  .content-page { padding: 58px 0 74px; }
  .work-section { margin-top: 52px; }
  .work-item { gap: 12px; }
  .work-item h3 { font-size: 20px; }
  .work-type, .post-date { font-size: 10px; }
  .library-shell { width: calc(100% - 36px); }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-item { min-height: 205px; padding: 24px; gap: 28px; }
  .post-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .site-footer { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
