/* FJ_CLAUDE_BLOG_STYLE */
:root {
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --paper: #ffffff;
  --ink: #141413;
  --charcoal: #242422;
  --muted: #66655f;
  --stone: #8a8982;
  --line: #dcdad0;
  --line-dark: #b9b7ad;
  --terracotta: #c96442;
  --coral: #d97757;
  --sage: #687154;
  --steel: #52676e;
  --soft-sage: #e6eadf;
  --soft-steel: #e5edef;
  --wide: 1240px;
  --reading: 760px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--terracotta); color: var(--paper); }
.site { width: min(var(--wide), calc(100% - 64px)); margin-inline: auto; }
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(245, 244, 237, 0.94);
  border-bottom: 1px solid rgba(20, 20, 19, 0.12);
  backdrop-filter: blur(18px);
}
.nav-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.brand-word { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; line-height: 1; }
.brand-note { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  padding: 4px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.nav-status { display: flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--sage); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.nav-status::before { content: ""; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 1px solid var(--line-dark); background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 17px; height: 1px; margin: 4px auto; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
p { margin-top: 0; }
.eyebrow, .kicker, .mono-label {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-hero { position: relative; min-height: min(790px, calc(100svh - 76px)); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 2; padding-block: 92px 112px; }
.hero-copy { width: min(670px, 60%); }
.home-hero h1 { margin: 0; font-size: 104px; line-height: 0.88; }
.hero-thesis { max-width: 650px; margin: 26px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 39px; line-height: 1.18; }
.lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--terracotta); border-color: var(--terracotta); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.button.secondary:hover { background: var(--paper); border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-dark); padding-block: 5px; font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--terracotta); border-color: currentColor; }
.model-field { position: absolute; z-index: 1; inset: 0 0 0 44%; pointer-events: none; }
.model-field canvas { width: 100%; height: 100%; display: block; }
.model-node { position: absolute; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; text-transform: uppercase; }
.model-node::before { content: ""; position: absolute; top: 50%; right: calc(100% + 9px); width: 17px; height: 1px; background: currentColor; }
.node-feedback { top: 21%; right: 20%; color: var(--terracotta); }
.node-state { top: 39%; right: 8%; color: var(--steel); }
.node-memory { top: 58%; right: 27%; color: var(--sage); }
.node-policy { top: 73%; right: 10%; }
.node-eval { top: 83%; right: 32%; color: var(--terracotta); }
.focus-rail { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--ink); }
.rail-inner { min-height: 52px; display: flex; align-items: center; gap: 20px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.rail-label { color: var(--coral); }
.rail-item { color: #c9c9c2; }
.rail-item::before { content: "/"; margin-right: 20px; color: #66665f; }

.section { padding-block: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--paper); }
.section-sage { background: var(--soft-sage); }
.section-steel { background: var(--soft-steel); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: 40px; align-items: end; margin-bottom: 50px; }
.section h2, .module-hero h1 { margin-bottom: 0; font-size: 58px; line-height: 1.02; }
.section-copy { margin: 0; color: var(--muted); font-size: 16px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.focus-item { min-height: 285px; padding: 28px 30px 34px 0; border-bottom: 1px solid var(--line-dark); }
.focus-item + .focus-item { padding-left: 30px; border-left: 1px solid var(--line-dark); }
.focus-item .num { color: var(--terracotta); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.focus-item h3 { max-width: 290px; margin: 44px 0 15px; font-size: 31px; line-height: 1.1; }
.focus-item p { max-width: 330px; margin: 0; color: var(--muted); }
.work-list, .reports-list, .program-list { border-top: 1px solid var(--ink); }
.work-row, .report-row, .program-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 34px;
  gap: 28px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid var(--line-dark);
  padding-block: 24px;
}
.work-row:hover, .report-main:hover, .program-row:hover { background: rgba(255, 255, 255, 0.38); }
.work-index, .report-date, .program-tag { color: var(--terracotta); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-transform: uppercase; }
.work-row h3, .report-row h3, .program-row h3 { margin: 0 0 7px; font-size: 27px; line-height: 1.16; }
.work-row p, .report-row p, .program-row p { max-width: 800px; margin: 0; color: var(--muted); }
.row-arrow { font-size: 25px; transition: transform 160ms ease; }
.work-row:hover .row-arrow, .report-main:hover .row-arrow, .program-row:hover .row-arrow { transform: translate(4px, -4px); color: var(--terracotta); }
.report-row { display: block; padding: 0; }
.report-main { display: grid; grid-template-columns: 160px minmax(0, 1fr) 34px; gap: 28px; align-items: center; min-height: 142px; padding-block: 24px; }
.report-artifacts { display: flex; flex-wrap: wrap; gap: 16px; margin: -12px 0 22px 188px; }
.mini-link { color: var(--muted); border-bottom: 1px solid var(--line-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.mini-link:hover { color: var(--terracotta); border-color: currentColor; }
.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.signal-column { min-height: 330px; padding: 30px 38px 8px 0; }
.signal-column + .signal-column { padding-left: 38px; border-left: 1px solid var(--line-dark); }
.signal-column h3 { max-width: 520px; margin: 34px 0 16px; font-size: 34px; line-height: 1.12; }
.signal-column p { color: var(--muted); }
.data-line { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; color: var(--steel); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.lineage { margin-top: 58px; }
.lineage summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 62px; border-block: 1px solid var(--ink); font-weight: 700; }
.lineage summary::-webkit-details-marker { display: none; }
.lineage summary::after { content: "+"; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.lineage[open] summary::after { content: "−"; }
.lineage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lineage-grid a { min-height: 86px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 20px 14px 0; font-size: 13px; }
.lineage-grid a:nth-child(3n + 2), .lineage-grid a:nth-child(3n + 3) { padding-left: 20px; border-left: 1px solid var(--line); }
.lineage-grid a:hover { color: var(--terracotta); }
.lineage-grid b { color: var(--terracotta); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.module-hero { position: relative; padding-block: 82px 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.module-hero::after { content: attr(data-code); position: absolute; right: 4%; bottom: -42px; color: rgba(20, 20, 19, 0.045); font-family: Georgia, serif; font-size: 190px; line-height: 1; pointer-events: none; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; color: var(--stone); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--terracotta); }
.module-hero .lead { max-width: 780px; margin-top: 25px; }
.module-hero .hero-actions { margin-top: 28px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.module-link { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line-dark); padding: 28px 34px 30px 0; }
.module-link:nth-child(even) { padding-left: 34px; border-left: 1px solid var(--line-dark); }
.module-link h3 { margin: 38px 0 12px; font-size: 35px; }
.module-link p { max-width: 470px; color: var(--muted); }
.module-link:hover h3 { color: var(--terracotta); }
.module-top { display: flex; justify-content: space-between; gap: 20px; color: var(--terracotta); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }
.program { padding-block: 64px; }
.program + .program { border-top: 1px solid var(--line); }
.program-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; margin-bottom: 34px; }
.program-head h2 { margin: 0; font-size: 44px; }
.program-head p { max-width: 680px; color: var(--muted); }
.program-row { grid-template-columns: 160px minmax(0, 1fr) 34px; min-height: 116px; }
.panel { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-dark); padding-block: 28px; }
.panel h2 { margin: 0 0 12px; font-size: 32px; }
.panel p { max-width: 880px; color: var(--muted); }
.callout { border-left: 3px solid var(--terracotta); padding: 22px 26px; background: var(--paper); }
.callout h2 { margin-bottom: 9px; font-size: 28px; }
.callout p:last-child { margin-bottom: 0; }
.empty-state { min-height: 210px; display: flex; align-items: center; }
.quiet { color: var(--muted); }
.digest-scope { padding-top: 0; }

.site-footer { background: var(--charcoal); color: var(--paper); }
.footer-main { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding-block: 52px; }
.footer-brand { font-family: Georgia, serif; font-size: 46px; line-height: 1; }
.footer-copy { max-width: 460px; margin: 17px 0 0; color: #aaa9a2; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 9px 28px; font-size: 13px; }
.footer-links a:hover { color: var(--coral); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #44443f; padding-block: 18px 28px; color: #878780; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-transform: uppercase; }

@media (max-width: 980px) {
  .site { width: min(100% - 40px, var(--wide)); }
  .nav-status { display: none; }
  .home-hero { min-height: 720px; align-items: flex-start; }
  .hero-copy { width: min(660px, 76%); }
  .model-field { left: 34%; opacity: 0.68; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .focus-item { min-height: 310px; }
  .lineage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineage-grid a:nth-child(n) { padding-left: 0; border-left: 0; }
  .lineage-grid a:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site { width: min(100% - 32px, var(--wide)); }
  .nav-inner { min-height: 66px; }
  .brand-note { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 66px 0 0; display: none; align-content: start; margin: 0; padding: 28px 16px; background: var(--parchment); border-top: 1px solid var(--line); }
  .nav-links[data-open="true"] { display: grid; }
  .nav-links a { min-height: 56px; border-bottom: 1px solid var(--line); padding-inline: 0; color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
  .home-hero { min-height: 0; }
  .hero-inner { padding-block: 52px 72px; }
  .hero-copy { width: 100%; }
  .home-hero h1 { font-size: 64px; }
  .hero-thesis { max-width: 500px; font-size: 30px; }
  .lead { font-size: 16px; }
  .model-field { inset: 43% -38% -8% 20%; opacity: 0.42; }
  .model-node { display: none; }
  .rail-inner { overflow-x: auto; }
  .section { padding-block: 68px; }
  .section h2, .module-hero h1 { font-size: 43px; }
  .focus-grid, .signal-grid, .module-grid, .lineage-grid { grid-template-columns: 1fr; }
  .focus-item, .focus-item + .focus-item { min-height: 0; padding: 25px 0 30px; border-left: 0; }
  .focus-item h3 { margin-top: 28px; }
  .work-row, .report-main, .program-row { grid-template-columns: 82px minmax(0, 1fr) 24px; gap: 14px; min-height: 124px; }
  .work-row h3, .report-row h3, .program-row h3 { font-size: 22px; }
  .report-artifacts { margin-left: 96px; }
  .signal-column, .signal-column + .signal-column { min-height: 0; padding: 28px 0 38px; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .lineage-grid a:nth-child(n) { min-height: 68px; padding-left: 0; border-left: 0; }
  .module-hero { padding-block: 58px; }
  .module-hero::after { right: -20px; font-size: 110px; }
  .breadcrumb { margin-bottom: 32px; }
  .module-link, .module-link:nth-child(even) { min-height: 190px; padding: 25px 0; border-left: 0; }
  .program-head { grid-template-columns: 1fr; gap: 8px; }
  .program-head h2 { font-size: 34px; }
  .footer-main { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { display: block; }
}

@media (max-width: 430px) {
  .home-hero h1 { font-size: 54px; }
  .hero-thesis { font-size: 27px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .section h2, .module-hero h1 { font-size: 39px; }
  .work-row, .report-main, .program-row { grid-template-columns: 1fr 22px; }
  .work-index, .report-date, .program-tag { grid-column: 1 / -1; }
  .report-artifacts { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
