/* ==========================================================================
   InfinityTian 站点样式（单文件、零外部依赖，字体只用系统栈）
   纸本图录：暖灰纸色、墨绿正文、朱砂索引。
   本文件由 tools/build_site.py 从 site/src/assets/site.css 复制到 /assets/site.css。
   ========================================================================== */

:root {
  /* 底色与面板 */
  --bg: #f7f5ef;
  --panel: #fffdf7;
  --panel-2: #eeeee4;
  --panel-3: #e6e7dc;
  --line: #d4d6cb;
  --line-strong: #9fa99d;

  /* 文字 */
  --text: #192f31;
  --text-soft: #394c4a;
  --muted: #53625c;
  --faint: #5f6c64;

  /* 强调色 */
  --accent: #185652;
  --accent-2: #386446;
  --warn: #83520f;
  --danger: #983d34;

  /* 尺寸与字体 */
  --maxw: 1200px;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, "STSong", serif;
  --seal: #a34529;
  --radius: 5px;
  --radius-sm: 4px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .28);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #c4d9cb; color: #102f30; }

/* 屏幕阅读器专用文本 */
.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: absolute; left: 50%; top: -80px; transform: translateX(-50%);
  z-index: 20; padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line-strong);
  font-size: 14px; transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* --------------------------------------------------------------------------
   页面骨架
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 72px;
  min-width: 0;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 18px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text); font-weight: 650; letter-spacing: .2px; font-size: 17px;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px;
}
.site-nav a {
  color: var(--muted); font-size: 14px; padding: 2px 0;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.nav-lock { font-size: 11px; opacity: .85; }

main { min-width: 0; display: block; }

/* 内容区块：默认带上分隔线，首屏 hero 例外 */
main > section {
  padding: 46px 0 8px;
  border-top: 1px solid var(--line);
}
main > section:first-child,
main > .hero,
main > .page-head { border-top: none; }

.site-footer {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: space-between; align-items: baseline;
  color: var(--faint); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a {
  color: var(--muted); border-bottom: 1px dotted #3a4655;
}
.site-footer a:hover { color: var(--text); text-decoration: none; }

/* --------------------------------------------------------------------------
   排版
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.22;
  margin: 0 0 18px;
  font-weight: 680;
  letter-spacing: -.5px;
}
h1 em { font-style: normal; color: var(--accent); }
h2 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px; font-weight: 600;
}
h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; font-weight: 620; }
h4 { font-size: 15px; line-height: 1.4; margin: 0 0 6px; font-weight: 620; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  color: var(--muted); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 16px;
}
.lede {
  color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 30px;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }

.prose { max-width: 680px; color: var(--text-soft); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.35em; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 0; padding: 12px 18px; color: var(--muted);
  border-left: 3px solid var(--line-strong); background: rgba(255, 255, 255, .02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code { white-space: normal; }

/* --------------------------------------------------------------------------
   Hero 与页头
   -------------------------------------------------------------------------- */
.hero { padding: 72px 0 56px; }

.page-head { padding: 54px 0 34px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lede { margin-bottom: 22px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  margin: 0 0 22px; padding: 0; list-style: none;
  color: var(--faint); font-size: 13px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 14.5px; line-height: 1.4;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
  transition: border-color .16s ease, transform .16s ease, filter .16s ease;
}
.btn:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; }
.btn.primary {
  background: #21494b; color: #fff; border-color: #21494b;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.small { padding: 6px 13px; font-size: 13px; }

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.card {
  display: block;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, transform .18s ease;
}
.card[href]:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.card-head h3 { margin: 0; font-size: 16.5px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.card p.meta {
  margin: 0; font-size: 12.5px; color: var(--faint); letter-spacing: .02em;
}
.card .card-more { color: var(--accent); font-size: 13.5px; }

.project-card { position: relative; }
.project-card h3 { color: var(--text); }

/* 标签 / 徽章 */
.tag {
  display: inline-block; font-size: 11.5px; line-height: 1.6;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap; background: rgba(255, 255, 255, .02);
}
.tag.live { color: var(--accent-2); border-color: rgba(126, 224, 168, .35); background: rgba(126, 224, 168, .08); }
.tag.locked, .tag.warn { color: var(--warn); border-color: rgba(242, 198, 109, .38); background: rgba(242, 198, 109, .08); }
.tag.accent { color: var(--accent); border-color: rgba(106, 169, 255, .38); background: rgba(106, 169, 255, .08); }
.tag.danger { color: var(--danger); border-color: rgba(255, 143, 143, .38); background: rgba(255, 143, 143, .08); }

/* 统计卡 */
.stats {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.stat-value {
  font-size: 26px; line-height: 1.25; font-weight: 650;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.stat-value small { font-size: 13px; color: var(--muted); font-weight: 400; }

/* --------------------------------------------------------------------------
   表格
   -------------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  padding: 10px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.table th {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .015);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .022); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table caption {
  caption-side: bottom; padding: 10px 14px; color: var(--faint);
  font-size: 12.5px; text-align: left;
}

/* --------------------------------------------------------------------------
   代码
   -------------------------------------------------------------------------- */
pre {
  margin: 0 0 16px;
  padding: 16px 18px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #e9ece3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
  tab-size: 2;
}
pre code { font-family: inherit; font-size: inherit; background: none; padding: 0; border: 0; }
code {
  font-family: var(--mono); font-size: .9em;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 5px; padding: .1em .38em;
  overflow-wrap: anywhere;
}
kbd {
  font-family: var(--mono); font-size: .85em;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: .1em .4em; color: var(--text-soft);
  background: var(--panel-2);
}

/* --------------------------------------------------------------------------
   时间线
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline > li::before {
  content: ""; position: absolute; left: -5.5px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--panel-3); border: 1px solid var(--line-strong);
}
.timeline > li.is-now::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(106, 169, 255, .16);
}
.timeline .tl-time {
  display: block; font-size: 12.5px; color: var(--faint);
  letter-spacing: .02em; margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.timeline .tl-title { font-weight: 600; color: var(--text); }
.timeline .tl-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   空状态 / 提示
   -------------------------------------------------------------------------- */
.empty {
  padding: 40px 22px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, .015); color: var(--muted);
}
.empty strong { display: block; color: var(--text-soft); margin-bottom: 4px; font-weight: 600; }

.notice {
  padding: 12px 16px; margin: 0 0 18px;
  border-left: 3px solid var(--accent);
  background: rgba(106, 169, 255, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft); font-size: 14px;
}
.notice.warn { border-left-color: var(--warn); background: rgba(242, 198, 109, .08); }
.notice.danger { border-left-color: var(--danger); background: rgba(255, 143, 143, .08); }
.notice.success { border-left-color: var(--accent-2); background: rgba(126, 224, 168, .08); }
.notice strong { color: var(--text); }

/* --------------------------------------------------------------------------
   筛选芯片 / 分段
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-size: 13px; line-height: 1.5;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] {
  color: var(--text); border-color: rgba(106, 169, 255, .55);
  background: rgba(106, 169, 255, .12);
}
.chip .count { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chip.is-active .count, .chip[aria-pressed="true"] .count { color: var(--muted); }

/* --------------------------------------------------------------------------
   图片 / 截图 / 媒体
   -------------------------------------------------------------------------- */
.figure { margin: 0 0 18px; }
.figure img, .figure video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel-2);
}
.figure figcaption {
  margin-top: 8px; color: var(--faint); font-size: 12.5px;
}
.shots {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.shot figcaption { margin-top: 6px; color: var(--faint); font-size: 12.5px; }

/* 课程资料缩略图网格 */
.note-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
}
.note-card {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); overflow: hidden; color: inherit;
  transition: border-color .16s ease, transform .16s ease;
}
.note-card:hover { border-color: var(--line-strong); transform: translateY(-1px); text-decoration: none; }
.note-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--panel-2); color: var(--faint);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.note-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-body { padding: 10px 12px 12px; min-width: 0; }
.note-title {
  font-size: 13.5px; color: var(--text-soft); margin: 0 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-meta { font-size: 11.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 2px 8px; }

/* --------------------------------------------------------------------------
   实用布局
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 18px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.spacer { flex: 1 1 auto; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* 定义列表（键值信息） */
.kv { margin: 0; display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.kv div { min-width: 0; }
.kv dt { color: var(--faint); font-size: 12px; letter-spacing: .05em; margin: 0 0 2px; }
.kv dd { margin: 0; color: var(--text-soft); font-size: 14px; overflow-wrap: anywhere; }

/* 外链小图标 */
.ext::after {
  content: "↗"; font-size: .8em; margin-left: .25em; color: var(--faint);
}

/* 状态点 */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); margin-right: 6px; vertical-align: 1px;
}
.dot.ok { background: var(--accent-2); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px 60px; }
  .hero { padding: 56px 0 44px; }
  .page-head { padding: 44px 0 28px; }
  main > section:not(.page-head):not(.hero) { padding-top: 38px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px 48px; }
  .site-header { padding: 20px 0 16px; }
  .site-nav { gap: 4px 16px; }
  .site-nav a { font-size: 13.5px; }
  .hero { padding: 44px 0 36px; }
  .lede { font-size: 16px; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card { padding: 18px; }
  .timeline > li { padding-left: 22px; }
  .table th, .table td { padding: 9px 12px; }
}

@media (max-width: 400px) {
  .brand { font-size: 16px; }
  .site-nav { gap: 4px 12px; }
  h1 { letter-spacing: -.2px; }
  .stat-value { font-size: 23px; }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Field folio: one masthead and typographic scale for public and protected pages. */
.site-header { border-bottom: 2px solid var(--text); padding: 13px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: bold 26px/1 var(--serif); letter-spacing: -.055em; }
.brand span { color: var(--text); }
.site-nav { gap: 4px 12px; }
.site-nav a { min-width: 44px; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; }
.site-nav a.is-active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.site-footer { padding-top: 19px; border-top: 1px solid var(--text); }
.footer-links a { border-color: var(--line-strong); }
h1,h2 { font-family: var(--serif); color: var(--text); }
h1 { font-weight: 700; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: clamp(22px,2.1vw,30px); letter-spacing: -.025em; line-height: 1.35; text-transform: none; }
main > .page-head, main > .hero { padding: clamp(28px,4vw,54px) 0 clamp(28px,4vw,46px); }
.page-head h1,.hero h1 { font-size: clamp(36px,5vw,66px); }
.eyebrow, .rubric, .work-kicker { font: 600 11px/1.45 var(--mono); letter-spacing: .12em; color: var(--seal); }
.eyebrow { font-size: 12px; }
.lede { color: var(--text-soft); line-height: 1.85; }
.btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:.55em; font-family:inherit; cursor:pointer; }
.btn small { opacity:.86; }
.tag.live,.tag.accent { background: #e9efe5; color: #265443; border-color:#acbeaf; }
.tag.locked,.tag.warn { background:#f4ead4; color:#6d4b13; border-color:#c8b78f; }
.stat { border-top: 2px solid var(--accent); }.stat-value { color:var(--text); }
body[data-nav-active="panel"] .hero .actions { margin: 16px 0; }
main > .folio-hero { display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(30px,5vw,78px); align-items:center; padding: clamp(32px,4.3vw,62px) 0; }
.rubric { margin:0 0 12px; display:flex; gap:12px; align-items:center; }
.rule { width:29px; height:2px; background:var(--seal); }
.folio-intro h1 { font-size:clamp(48px,5.2vw,80px); line-height:1.14; letter-spacing:-.06em; margin: 0 0 21px; }
.period { color:var(--seal); }
.folio-intro .title-unit { display:inline-block; white-space:nowrap; }
.folio-intro .lede { max-width: 28em; margin-bottom:18px; }
.text-link,.entry-link { display:inline-flex; align-items:center; gap:14px; font-weight:650; color:var(--accent); }
.text-link { min-height:44px; border-bottom:1px solid var(--accent); }
.plate-cover { display:block; min-width:0; background:#183740; color:#f5edda; border:1px solid #183740; }
.plate-cover:hover {text-decoration:none; color:white;}
.plate-strip,.plate-caption { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 16px; }
.plate-strip { background:#e8e8da; color:#334e4b; font:600 11px/1.4 var(--mono); letter-spacing:.11em; }
.plate-strip b {padding:0 4px;color:var(--seal);}
.plate-cover img { display:block; width:100%; height:auto; aspect-ratio:1.98; object-fit:cover; object-position:50% 61%; }
.plate-caption { border-top:1px solid #547076; font:600 16px/1.45 var(--serif); }
.plate-caption small { font:11px/1.4 var(--mono); color:#cad9ce; margin-left:9px; }
main > section.folio-section { border-top:1px solid var(--text); padding:28px 0 40px; }
.section-line { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; margin-bottom:20px; gap:8px 18px; }
.section-line h2,.about-line h2 {margin:0;} .section-line .rubric,.about-line .rubric {margin-bottom:5px;}
.section-tail { font-size:13px; color:var(--muted); }
.work-grid,.sheets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2.3vw,32px); }
@media (min-width:741px) { .work-grid:has(> :nth-child(4):last-child) {grid-template-columns:repeat(2,minmax(0,1fr));} }
.work-entry { display:flex; flex-direction:column; align-items:flex-start; min-width:0; color:inherit; }
.work-art { width:100%; aspect-ratio:2.3; overflow:hidden; background:var(--panel-2); border:1px solid var(--line); }
.work-art img {width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s ease; }
.chart-art img { object-position:50% 45%; } .chess-art img {object-position:50% 32%;} .surface-art img {object-position:center;}
.work-kicker {margin:14px 0 5px;}.work-entry h3 {font:700 clamp(22px,2vw,30px)/1.25 var(--serif); letter-spacing:-.035em; margin-bottom:7px; overflow-wrap:anywhere;}
.work-entry p { font-size:14px; color:var(--muted); margin:0 0 10px; }.entry-link {font-size:13px; margin-top:auto;}
.work-entry:hover {text-decoration:none;}.work-entry:hover .entry-link,.plate-cover:hover .plate-caption>span:first-child {text-decoration:underline; text-underline-offset:4px;}.work-entry:hover img {transform:scale(1.025);}
.desk-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.desk-links a {display:grid; grid-template-columns:1fr auto; padding:13px 16px; background:#e9ece2; border-left:3px solid #728975; color:var(--text);}
.desk-links strong {font-size:17px;}.desk-links span {grid-column:1; color:var(--muted);font-size:14px;}.desk-links i {grid-column:2; grid-row:1/3; align-self:center; font-style:normal;}.desk-links a:hover {background:#dfe6d9;text-decoration:none;}
.about-line {display:flex; flex-wrap:wrap; align-items:center; gap:16px 45px;}.about-line p:not(.rubric) {max-width:36em;color:var(--text-soft);}
.atlas-head .atlas-subtitle {margin:-2px 0 14px;font:italic clamp(22px,3vw,36px)/1.2 var(--serif);color:var(--accent);}
.sheets figure {min-width:0;}.sheets a {display:block; padding:10px; background:#e6e7de;}.sheets img {width:100%; display:block; box-shadow:0 2px 5px #18373426;}.sheets figcaption {margin-top:9px; font-size:15px;}.sheets figcaption b {font:600 13px var(--mono); color:var(--seal);margin-right:5px;}.sheets figcaption small {display:block;font-size:12px;color:var(--muted);}
@media(max-width:740px) {
  main > .folio-hero {grid-template-columns:1fr;gap:24px;padding:30px 0;}.folio-intro h1 {font-size:clamp(42px,8vw,58px);}.folio-intro h1 br {display:none;}.plate-cover img {aspect-ratio:2.65;}
  .work-grid {grid-template-columns:1fr;gap:0;}.work-entry {display:grid;grid-template-columns:clamp(88px,23vw,144px) minmax(0,1fr);column-gap:15px;border-top:1px solid var(--line);padding:15px 0;}.work-art {aspect-ratio:1.07;grid-column:1;grid-row:1/5;align-self:center;}.work-entry .work-kicker {margin:0 0 4px;}.work-entry h3,.work-entry p,.work-entry .entry-link {grid-column:2;}.work-entry p {line-height:1.5;margin-bottom:5px;}
  .desk-links {grid-template-columns:1fr;gap:8px;}.sheets {grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));}
}
@media(max-width:640px) {
  .site-header {padding:7px 0 2px;gap:0;}.site-nav {width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;}.brand {font-size:24px;}.brand img {width:28px;height:28px;}
  main > section.folio-section {padding:22px 0 26px;}.section-line {margin-bottom:14px;}.folio-intro h1 {margin-bottom:12px;}.folio-intro .lede {margin-bottom:8px;}.plate-strip,.plate-caption {padding:8px 11px;}.actions .btn {min-width:0;}
}
@media(max-width:440px) { .folio-intro h1 br {display:block;}.folio-intro h1 {font-size:46px;}.sheets a {max-width:360px;}.plate-caption small {margin-left:6px;}.work-entry h3 {font-size:22px;} }
