/* Shared visual language. Keep in sync with the other repository's stylesheet. */
:root {
  color-scheme: light;
  --paper: #f8f7f3; --ink: #292d29; --muted: #65695f;
  --accent: #a34327; --line: #dcded4; --wash: #eeefe7;
  --control: #858a7e; /* borders of inputs and buttons: 3:1 or better on --paper and --wash */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 3rem auto; padding: 0 1.5rem; max-width: 76ch; background: var(--paper); color: var(--ink); font: 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body.site-page { max-width: none; margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e5d6c6; color: #292d29; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 400; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); letter-spacing: -.04em; }
h2 { margin-top: 2rem; font-size: 1.8rem; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; }
img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
pre { max-width: 100%; overflow-x: auto; padding: 1.25rem; background: var(--wash); font: .85em/1.7 var(--mono); border: 1px solid var(--line); }
code, tt { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--wash); padding: .13em .3em; border-radius: 3px; }
blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--accent); color: var(--muted); }
blockquote p:last-child { margin-bottom: 0; }
dt { margin-top: 1.2rem; }
dd { margin: .3rem 0 1.3rem; color: var(--muted); }
li { margin: .35rem 0; }
.site-shell { max-width: 1152px; margin: 0 auto; padding: 0 3rem; }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 10; background: var(--paper); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.monogram { width: 35px; height: 35px; display: grid; place-items: center; color: var(--paper); background: var(--accent); font: italic 1.2rem/1 var(--serif); }
.site-header nav { display: flex; align-items: center; gap: 1.9rem; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 230px; gap: 4rem; padding: 6.7rem 0 6.3rem; align-items: center; }
.eyebrow, .small-label { display: block; font: .75rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow { margin: 0 0 1.4rem; }
.accent-dot { display: inline-block; width: 6px; height: 6px; margin: 0 .65rem .1rem 0; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(3.8rem, 7.8vw, 6rem); line-height: 1.03; margin: 0 0 1.7rem; letter-spacing: -.055em; }
.accent { color: var(--accent); }
.hero-description { font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.55; letter-spacing: -.025em; margin-bottom: 1.1rem; }
.intro-note { color: var(--muted); max-width: 440px; font-size: .95rem; line-height: 1.8; margin-bottom: 1.9rem; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.link-row a { font-size: .875rem; color: var(--ink); text-decoration: none; }
.link-row a:hover { color: var(--accent); text-decoration: underline; }
.contact-links a span { color: var(--accent); margin-left: .3rem; }
.link-row a .small-label { display: inline; margin-left: .55rem; }
.current-note { border-top: 2px solid var(--accent); padding: 1.3rem 0 0 1.1rem; align-self: center; }
.current-note .eyebrow { margin-bottom: 1.5rem; }
.current-company { font: 2.3rem/1.2 var(--serif); margin-bottom: .65rem; letter-spacing: -.03em; }
.current-note > p:not(.current-company) { color: var(--muted); font-size: .87rem; line-height: 1.8; }
.note-rule { width: 28px; border-top: 1px solid var(--line); margin: 1.7rem 0 1rem; }
.current-note .small-label { font-size: .72rem; letter-spacing: .06em; }
.section-block { border-top: 1px solid var(--line); padding-top: 2.4rem; margin-bottom: 5rem; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .8rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.15rem); }
.section-aside { color: var(--muted); font-size: .8rem; line-height: 1.7; margin: 0; }
.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: 1.25rem 0; margin: 0; }
.list-number { font: .72rem/1.8 var(--mono); color: var(--muted); }
.work-list h3 { font-size: 1rem; font-weight: 500; margin-bottom: .25rem; }
.work-list h3 a { color: var(--ink); text-decoration: none; }
.work-list h3 a span { color: var(--accent); display: inline-block; margin-left: .4rem; }
.work-list h3 a:hover { color: var(--accent); text-decoration: underline; }
.work-list p { margin: 0; color: var(--muted); font-size: .8rem; }
.work-category { color: var(--muted); font: .72rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.explore-link { color: var(--ink); text-decoration: none; display: block; }
.explore-link:hover { text-decoration: none; }
.explore-link h3 { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: .8rem; }
.explore-link p { font-size: .86rem; color: var(--muted); margin-bottom: 1.4rem; line-height: 1.8; max-width: 340px; }
.explore-link:hover h3 { color: var(--accent); }
.writing-link { padding: 2rem; background: var(--wash); }
.writing-link .eyebrow { display: flex; justify-content: space-between; margin-bottom: 2.3rem; }
.text-link { color: var(--accent); font-size: .85rem; }
.explore-stack .explore-link { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.explore-stack .explore-link:first-child { padding-top: 0; }
.explore-stack h3 { display: flex; justify-content: space-between; font-size: 1.4rem; }
.explore-stack h3 span { font: 1rem var(--sans); color: var(--accent); }
.explore-stack p { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.7rem 0 2.2rem; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-note { font-family: var(--serif); font-style: italic; font-size: .85rem; }
.page-intro { padding: 4.5rem 0 3.5rem; max-width: 720px; }
.page-intro h1 { margin-bottom: 1rem; }
.page-intro > p:last-child { margin: 0; color: var(--muted); max-width: 550px; font-size: .97rem; }
.document-section { margin-bottom: 3.5rem; }
.document-section > h2 { font-size: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.publication-list { list-style: none; margin: 0; padding: 0; }
.publication-list li { display: grid; grid-template-columns: 65px 1fr; gap: 1.5rem; border-bottom: 1px solid var(--line); padding: 1.8rem 0; margin: 0; }
.publication-year { color: var(--muted); font: .75rem/1.8 var(--mono); }
.publication-list h3 { font: 1.3rem/1.4 var(--serif); margin-bottom: .6rem; }
.publication-list p { font-size: .86rem; margin-bottom: .5rem; color: var(--muted); }
.publication-list .link-row { margin-top: .9rem; gap: 1.3rem; }
.publication-list .link-row a { color: var(--accent); }
.notes-list { margin: 0 0 4rem; }
.notes-list > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.notes-list dt, .notes-list dd { margin: 0; }
.notes-list dt { font: 1.3rem/1.5 var(--serif); }
.notes-list dt a { color: var(--ink); }
.notes-list dd { font-size: .87rem; }
.notes-list code { display: inline-block; margin-top: .5rem; }
.error-page { padding: 6rem 0 8rem; max-width: 620px; }
.error-page h1 { margin-bottom: 1rem; }
.error-page > p { color: var(--muted); }
.error-page .text-link { display: inline-block; margin-top: 1.5rem; }
/* Journal layouts use the same type, spacing, and navigation as the homepage. */
.journal-intro { display: flex; gap: 3rem; justify-content: space-between; align-items: flex-end; padding: 4.5rem 0 3rem; }
.journal-intro h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.journal-intro .eyebrow { margin-bottom: 1.1rem; }
.journal-intro p:last-child { font-size: .95rem; color: var(--muted); max-width: 490px; margin-bottom: 0; }
.journal-intro > .text-link { white-space: nowrap; margin-bottom: .4rem; }
.journal-tools { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journal-tools .small-label { font-size: .72rem; letter-spacing: .05em; }
.search-label { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.search-label input { width: 220px; font: .85rem var(--sans); color: var(--ink); border: 1px solid var(--control); border-radius: 0; background: transparent; padding: .6rem .75rem; }
.search-label input::placeholder { color: var(--muted); }
.journal-filters { display: flex; flex-wrap: wrap; gap: .9rem 2.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filter-group .small-label { margin-right: .55rem; }
.chip { font: .82rem/1.2 var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--control); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip[aria-pressed="true"] { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.start-here { padding: 2.75rem 0 .75rem; }
.start-here > .small-label { margin: 0 0 1.2rem; }
.start-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; padding: 0; margin: 0 0 2.25rem; }
.start-list li { margin: 0; }
.start-list a { display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.35rem 1.4rem; background: var(--wash); color: var(--ink); text-decoration: none; }
.start-list .lang-tag { margin-bottom: .9rem; font: .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.start-list h3 { font: 1.15rem/1.4 var(--serif); margin: 0 0 .5rem; }
.start-list p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.start-list a:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.archive-year { display: grid; grid-template-columns: 110px 1fr; gap: 2rem; padding: 2rem 0 0; }
.archive-year > h2 { font: 1.6rem/1.3 var(--serif); color: var(--muted); margin: .15rem 0 0; }
.post-list { padding: 0; list-style: none; margin: 0; }
.post-list li { margin: 0; border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 1fr 65px; gap: 1.5rem; padding: 1.15rem 0; color: var(--ink); text-decoration: none; }
.post-list li:first-child a { padding-top: .1rem; }
.post-list h3 { font: 1.12rem/1.6 var(--sans); margin: 0; }
.post-list time { color: var(--muted); font: .75rem/2.4 var(--mono); text-align: right; white-space: nowrap; }
.post-list a:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.journal-archive { margin-bottom: 5rem; }
.empty-state { padding: 3rem 0; color: var(--muted); }
[hidden] { display: none !important; }
.article-shell { max-width: 720px; margin: 0 auto; padding: 3.5rem 0 4rem; }
.back-link { color: var(--muted); font-size: .82rem; text-decoration: none; }
.article-header { margin: 3rem 0 2.5rem; }
.article-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.25; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font: .75rem/1.8 var(--mono); }
.prose { font-size: 1.05rem; line-height: 1.95; }
.prose p { margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.7rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 600; }
.prose li { margin: .5rem 0; }
.prose img { display: block; margin: 2rem auto; height: auto; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .9rem; margin: 2rem 0; }
.prose td, .prose th { padding: .6rem 1rem; text-align: left; border: 1px solid var(--line); }
.prose th { background: var(--wash); }
.prose math { font-size: 1.1em; }
.math-block { margin: 1.75rem 0; overflow-x: auto; text-align: center; }
.math-block math { font-size: 1.3em; }
.prose .highlight { margin: 1.5rem 0; }
.prose .highlight pre { margin: 0; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 1.8rem; }
.post-navigation a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.post-navigation a:hover { color: var(--accent); text-decoration: underline; }
.post-navigation .small-label { margin-bottom: .5rem; font-size: .72rem; }
.post-navigation .next-post { text-align: right; }
.about-content { padding-bottom: 5rem; max-width: 660px; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #1e221f; --ink: #e6e7df; --muted: #a5ada2; --accent: #e59c7d; --line: #3b423a; --wash: #292f29; --control: #7d867b; }
  .monogram { color: #1e221f; }
}
@media (max-width: 800px) {
  .site-shell { padding: 0 2rem; }
  .site-header { min-height: 100px; gap: 1rem; }
  .site-header nav { gap: 1.1rem; }
  .hero { grid-template-columns: 1fr 185px; gap: 2rem; padding: 5rem 0; }
  .explore-grid { gap: 2rem; }
  .section-aside { display: none; }
  .archive-year { grid-template-columns: 75px 1fr; gap: 1.5rem; }
  .start-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { margin: 2rem auto; font-size: 1rem; }
  body.site-page { margin: 0; }
  .site-shell { padding: 0 1.35rem; }
  .site-header { padding: 1.3rem 0; display: block; }
  .wordmark { font-size: .9rem; }
  .monogram { width: 30px; height: 30px; }
  .site-header nav { margin-top: 1.3rem; gap: .65rem 1.3rem; }
  .site-header nav a { font-size: .82rem; }
  .hero { display: block; padding: 3.7rem 0 3.5rem; }
  .hero h1 { font-size: 4.1rem; margin-bottom: 1.4rem; }
  .hero-description { font-size: 1.35rem; }
  .desktop-break { display: none; }
  .intro-note { font-size: .9rem; }
  .current-note { margin-top: 2.8rem; padding: 1rem 0 0; }
  .current-note .eyebrow { margin-bottom: .65rem; }
  .current-company { font-size: 1.7rem; }
  .current-note > p:not(.current-company) { margin-bottom: 0; }
  .current-note br { display: none; }
  .current-note .note-rule, .current-note .small-label { display: none; }
  .section-block { padding-top: 1.7rem; margin-bottom: 3rem; }
  .section-heading { margin-bottom: 1.5rem; }
  .section-heading h2 { font-size: 1.8rem; }
  .work-list li { grid-template-columns: 25px 1fr; gap: .6rem; padding: 1.1rem 0; }
  .work-list h3 { font-size: .96rem; line-height: 1.5; }
  .work-list p { font-size: .8rem; }
  .work-category { display: none; }
  .explore-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .writing-link { padding: 1.5rem; }
  .writing-link .eyebrow { margin-bottom: 1.5rem; }
  .site-footer { flex-wrap: wrap; padding: 1.5rem 0; }
  .footer-note { order: 3; flex-basis: 100%; font-size: .8rem; }
  .page-intro { padding: 3rem 0 2.5rem; }
  .publication-list li { grid-template-columns: 1fr; gap: .5rem; padding: 1.5rem 0; }
  .notes-list > div { grid-template-columns: 1fr; gap: .6rem; padding: 1.5rem 0; }
  .journal-intro { padding: 3rem 0 2rem; display: block; }
  .journal-intro > .text-link { display: inline-block; margin-top: 1.2rem; }
  .journal-tools { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .journal-filters { flex-direction: column; gap: .8rem; }
  .filter-group .small-label { min-width: 5.4rem; margin-right: 0; }
  .start-list { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.5rem; border-top: 1px solid var(--line); }
  .start-list a { padding: 1rem 0; background: transparent; border-bottom: 1px solid var(--line); }
  .start-list .lang-tag { margin-bottom: .35rem; }
  .start-list h3 { font-size: 1.08rem; margin-bottom: .3rem; }
  .start-list p { font-size: .82rem; line-height: 1.65; }
  .start-here { padding-top: 2rem; }
  .search-label { width: 100%; }
  .search-label input { width: 100%; min-width: 0; font-size: 1rem; }
  .archive-year { grid-template-columns: 1fr; gap: .9rem; padding-top: 2rem; }
  .archive-year > h2 { font-size: 1.35rem; }
  .post-list h3 { font-size: 1rem; }
  .post-list a { gap: 1rem; }
  .post-list time { font-size: .72rem; }
  .article-shell { padding: 2rem 0 3rem; }
  .article-header { margin-top: 2rem; }
  .article-header h1 { font-size: 2.15rem; }
  .prose { font-size: 1rem; line-height: 1.9; }
  .prose ul, .prose ol { padding-left: 1.4rem; }
  .post-navigation { gap: 1.5rem; }
  .post-navigation a { font-size: .8rem; }
}
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #444; --accent: #000; --line: #ccc; --wash: #f5f5f5; }
  .site-header, .site-footer, .skip-link, .journal-tools, .journal-filters, .start-here, .post-navigation, .back-link { display: none; }
  .site-shell { max-width: none; padding: 0; }
  .hero, .page-intro, .journal-intro, .article-shell { padding-top: 1rem; }
  .prose { font-size: 11pt; }
  a { text-decoration: none; }
  pre { white-space: pre-wrap; }
}
