:root {
  --ink: #111111;
  --muted: #5b5b5b;
  --soft: #8a8a8a;
  --line: #dcdcdc;
  --green: #0e9a47;
  --green-ink: #0b7d3a;
  --green-bg: #e9f6e6;
  --green-border: #c3e6bd;
  --orange: #c2560c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.g { color: var(--green); }
.mono, .label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 500; }
.label { color: var(--soft); }
.label.g { color: var(--green); }
.serif { font-family: var(--serif); }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.tagline { color: var(--muted); }
.nav-toggle { display: none; }
.subnav { border-bottom: 1px solid var(--line); background: #fafafa; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.subnav a { white-space: nowrap; text-decoration: none; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--line); background: #fff; }
.subnav a[aria-current="page"] { color: #fff; background: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 56px 0 48px; align-items: start; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 14px 0 0; }
.hero-side p { color: var(--muted); font-size: 18px; margin: 4px 0 22px; }
.pull { border-left: 3px solid var(--green); padding: 2px 0 2px 16px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.35; margin: 0; }
.pull .g { font-style: italic; }

/* Sections */
.section { border-top: 1px solid var(--line); padding: 40px 0; }
.section-head { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: baseline; margin-bottom: 28px; }
.section-head .label { position: relative; padding-bottom: 8px; }
.section-head .label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--green); }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.break { border-top: 1px solid var(--line); padding-top: 16px; }
.break h3 { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.break p { margin: 0; color: var(--muted); font-size: 14.5px; }
.break .label { display: block; margin-bottom: 10px; }

/* Two records */
.records { margin-top: 28px; border: 1px solid #cfcfcf; border-radius: var(--radius); display: grid; grid-template-columns: 210px 1fr auto 1.25fr; align-items: center; gap: 0; padding: 18px 22px; }
.records > div { padding: 0 16px; }
.records .r-label { border-right: 1px solid var(--line); padding-left: 0; }
.records .r-label .label { display: block; line-height: 1.9; }
.records .r-old .label { display: block; margin-bottom: 4px; }
.records .r-old q, .records .r-old em { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; quotes: "\201C" "\201D"; }
.records .arrow { color: var(--soft); font-size: 20px; padding: 0 6px; }
.records .r-new .label { display: block; margin-bottom: 4px; }
.records .stat { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.records .stat b { font-family: var(--serif); font-size: 34px; line-height: 1; white-space: nowrap; }
.records .stat span { color: var(--muted); font-size: 14px; max-width: 280px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step:last-child { border-color: var(--ink); border-width: 1.5px; }
.step h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.step h3 .n { font-family: var(--mono); font-size: 11px; color: var(--green); font-weight: 500; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; border: 1px solid #c9c9c9; border-radius: 6px; padding: 3px 8px; color: var(--ink); background: #fff; }
.steps.stack .step h3 { flex-direction: column; gap: 2px; }

/* WorkCard */
.workcard { margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 20px 22px 6px; background: #fff; }
.wc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.wc-kind { display: inline-flex; align-items: center; gap: 8px; }
.wc-kind .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.wc-kind .mono { color: var(--ink); font-weight: 700; }
.wc-meta { color: var(--muted); font-size: 13.5px; }
.wc-title { font-size: 18px; font-weight: 600; margin: 8px 0 16px; }
.sao { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sao > div { padding: 16px 18px 18px; border-right: 1px solid var(--line); }
.sao > div:first-child { padding-left: 0; }
.sao > div:last-child { border-right: 0; padding-right: 0; }
.sao .label { display: block; }
.sao .sub { display: block; font-style: italic; color: var(--soft); font-size: 12.5px; margin-top: 2px; }
.sao p { font-family: var(--serif); font-size: 15.5px; margin: 10px 0 0; line-height: 1.5; }
.outcome-box { background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 8px; padding: 10px 12px; }
.outcome-box b { color: var(--green-ink); }
.wc-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; align-items: center; }
.wc-row .label { line-height: 1.6; }
.wc-row.why .label { color: var(--ink); font-weight: 700; }
.wc-row p { margin: 0; font-size: 14px; color: var(--ink); }
.people { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.person { display: inline-flex; align-items: center; gap: 6px; }
.person .role { color: var(--muted); }
.person .sep { color: var(--soft); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.st-ok::before { background: var(--green); }
.st-wait::before { border: 1.5px solid var(--orange); }
.st-none::before { border: 1.5px solid var(--soft); }
.status-wait { color: var(--orange); }
.status-none { color: var(--soft); }

/* Features + start here */
.does { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.does.does-matrix { grid-template-columns: 1fr 1.25fr; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin-bottom: 20px; }
.feature:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--green); }
.icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.features-row .feature { grid-template-columns: 1fr; gap: 12px; }
.start { border: 1.5px solid var(--ink); border-radius: 12px; padding: 20px 22px; }
.start h3 { font-family: var(--serif); font-size: 21px; margin: 6px 0 12px; line-height: 1.25; }
.start ul { margin: 0 0 16px; padding-left: 18px; font-size: 14.5px; }
.start li { margin: 4px 0; }
.start li::marker { color: var(--green); }
.start .foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.start .foot a { font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.start .foot a:hover { color: var(--green); }

/* Profile + from/to */
.profile { margin-top: 32px; border: 1px solid #cfcfcf; border-radius: var(--radius); display: flex; align-items: center; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.profile .mono { color: var(--ink); }
.profile p { margin: 0; flex: 1 1 320px; font-size: 14.5px; color: var(--muted); }
.profile a { font-family: var(--serif); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.profile a span { color: var(--green); }
.profile a:hover { color: var(--green); }
.fromto { border-top: 2px solid var(--ink); margin-top: 18px; padding: 22px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 16px; }
.fromto div span { display: block; color: var(--muted); font-size: 14px; }
.fromto div b { display: block; font-size: 17px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 36px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer b { color: var(--ink); }
.pdf-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); }
.pdf-link:hover { border-color: var(--ink); }
.pdf-link svg { width: 14px; height: 14px; }

/* Hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.hub-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; background: #fff; }
.hub-card:hover { border-color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.hub-card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.2; margin: 0; }
.hub-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.hub-card .go { font-size: 14px; font-weight: 600; color: var(--green); }
.hub-card.featured { border-color: var(--ink); border-width: 1.5px; }

/* Record diagram (Croconile for All) */
.diagram { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr; gap: 22px; align-items: center; }
.diagram .col-head { display: block; margin-bottom: 14px; }
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.lane svg { width: 20px; height: 20px; color: var(--green); }
.lane b { display: block; font-size: 14.5px; font-weight: 600; }
.lane span { display: block; font-size: 12.5px; color: var(--muted); }
.lane.active { border-color: var(--ink); border-width: 1.5px; }
.user-hub { text-align: center; }
.avatar { width: 190px; height: 190px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--green); display: grid; place-items: center; position: relative; }
.avatar::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed #cfcfcf; }
.avatar svg { width: 120px; height: 120px; position: relative; }
.user-hub h3 { font-family: var(--serif); font-size: 22px; margin: 0; }
.user-hub p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.writes { display: inline-block; margin-top: 12px; color: var(--green); }
.mini-card { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px; font-size: 14px; }
.mini-card .wc-top { margin-bottom: 6px; }
.mini-card .meta { color: var(--muted); font-size: 13px; }
.mini-card h4 { margin: 2px 0 10px; font-size: 16px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-card .label { display: block; margin-top: 10px; }
.mini-card p { font-family: var(--serif); margin: 4px 0 0; }
.mini-card .people-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.mini-card .pl { display: flex; justify-content: space-between; gap: 8px; }
.mini-card .pl small { display: block; color: var(--muted); font-size: 12px; padding-left: 14px; }
.ctx-tag { display: inline-block; border: 1px solid var(--ink); border-radius: 5px; padding: 1px 8px; margin-left: 6px; color: var(--ink); }

/* Horizontal workcard (v2) */
.wc-strip { border: 1.5px solid var(--ink); border-radius: 12px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1.25fr; }
.wc-strip > div { padding: 16px; border-right: 1px solid var(--line); }
.wc-strip > div:last-child { border-right: 0; }
.wc-strip .label { display: block; margin-bottom: 8px; }
.wc-strip p { font-family: var(--serif); margin: 0; font-size: 15px; }
.wc-strip .meta { color: var(--muted); font-size: 13px; }
.wc-strip h4 { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.wc-strip .pl { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.wc-strip .pl small { display: block; color: var(--muted); font-size: 12px; padding-left: 14px; }

/* Matrix */
.matrix { border: 1px solid #cfcfcf; border-radius: 12px; padding: 18px 20px; overflow-x: auto; }
.matrix table { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 460px; }
.matrix th { font-size: 13.5px; font-weight: 600; text-align: center; }
.matrix th.row { text-align: left; white-space: nowrap; padding-right: 10px; }
.matrix .grp th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; font-weight: 500; border-bottom: 2px solid var(--green); padding-bottom: 6px; }
.matrix td { height: 36px; border-radius: 6px; text-align: center; font-family: var(--mono); font-size: 14px; border: 1px solid #e3e3e3; }
.matrix .l1 { background: #c3e7bc; border-color: #c3e7bc; }
.matrix .l2 { background: #86d07c; border-color: #86d07c; }
.matrix .l3 { background: #47b83e; border-color: #47b83e; color: #fff; }
.matrix .l4 { background: #128a1f; border-color: #128a1f; color: #fff; }
.matrix .stated { border: 1.5px dashed #9a9a9a; }
.matrix .m-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.matrix .m-note { display: flex; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; margin: 10px 0; font-size: 14px; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; border: 1px solid #e3e3e3; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .does, .does.does-matrix { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr; gap: 14px; }
  .records > div { padding: 0; }
  .records .r-label { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .records .arrow { transform: rotate(90deg); width: fit-content; }
  .diagram { grid-template-columns: 1fr 1fr; }
  .wc-strip { grid-template-columns: 1fr 1fr; }
  .wc-strip > div { border-bottom: 1px solid var(--line); }
  .tagline { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .cols3, .features-row, .fromto { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sao { grid-template-columns: 1fr; }
  .sao > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .sao > div:last-child { border-bottom: 0; }
  .wc-row { grid-template-columns: 1fr; gap: 6px; }
  .diagram { grid-template-columns: 1fr; }
  .wc-strip { grid-template-columns: 1fr; }
  .wc-strip > div { border-right: 0; }
  .hero-side p { font-size: 16px; }
}
@media print {
  .site-header, .subnav, .pdf-link { display: none; }
  .section { break-inside: avoid; }
}
