/* ============================================================
   开源自己 · OpenMyLife — shared site styles
   Pages: /index.html, /recommend/index.html
   No external fonts or assets.
   ============================================================ */

:root {
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --paper-soft: #fbf8f1;
  --ink: #141414;
  --ink-2: #2c2c2c;
  --muted: #6b6b63;
  --line: #e4dfd3;
  --line-strong: #d3cbbb;
  --orange: #e8590c;
  --orange-ink: #b9470a;
  --orange-soft: #f7e3d3;
  --green: #2f8f4e;
  --green-soft: #e2f0e6;
  --amber: #c67a12;
  --amber-soft: #f7ebd6;
  --red: #b7301f;
  --red-soft: #f6ded9;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04);
  --shadow-md: 0 14px 34px rgba(20, 20, 20, .09);
  --ring: 0 0 0 3px rgba(232, 89, 12, .30);
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }
img, svg { display: block; }
::selection { background: var(--orange-soft); color: var(--ink); }

.serif { font-family: var(--serif); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  font-weight: 700;
  margin: 0 0 14px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav.is-scrolled { box-shadow: 0 6px 20px rgba(20, 20, 20, .06); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) and (min-width: 861px) {
  .nav-links { gap: 14px; font-size: 13px; }
}
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-repo { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-repo:hover { color: var(--ink); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 10px 24px 22px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .mobile-repo { font-size: 13px; color: var(--muted); }
.mobile-menu .mobile-lang { font-size: 13px; color: var(--orange-ink); font-weight: 600; }
.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 14px 24px;
  border-bottom: 0;
  color: var(--paper);
}
.mobile-menu .btn:hover { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 253, 248, .6); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 108px) 0 clamp(48px, 7vw, 72px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto 0;
  height: 80%;
  background: radial-gradient(60% 60% at 18% 0%, rgba(232, 89, 12, .10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-ink);
  font-weight: 700;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.06;
  margin: 0 0 22px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
html[lang="en"] h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -.02em;
}
.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-2);
  max-width: 660px;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.hero-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.hero-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-side-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange-ink);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2.4s ease-in-out infinite; }
  @keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 143, 78, .28); }
    50% { box-shadow: 0 0 0 5px rgba(47, 143, 78, 0); }
  }
}
.hero-latest { display: grid; }
.hero-latest a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  text-decoration: none;
}
.hero-latest a:first-child { border-top: 0; }
.hero-latest time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hero-item-body { min-width: 0; }
.hero-item-title { display: block; font-size: 15px; color: var(--ink); line-height: 1.45; }
.hero-item-domain { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-latest a:hover .hero-item-title { color: var(--orange-ink); }
.hero-side-foot {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.hero-side-foot:hover { color: var(--orange-ink); }
.hero-side-fallback { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- repo rail ---------- */
.repo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.repo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 253, 248, .65);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.repo-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.repo-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-ink);
  font-weight: 700;
}
.repo-card strong { font-size: 15px; color: var(--ink); }
.repo-card .repo-name { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.repo-card .repo-open { margin-top: 6px; font-size: 12px; color: var(--muted); }
.repo-card:hover .repo-open { color: var(--ink); }
.mirror-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.mirror-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.mirror-note a:hover { color: var(--orange-ink); text-decoration-color: var(--orange); }

/* ---------- sections ---------- */
main > section { padding: 72px 0; }
main > section + section { border-top: 1px solid var(--line); }
main > section.hero {
  padding-top: clamp(64px, 10vw, 108px);
  padding-bottom: clamp(48px, 7vw, 72px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 16px;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ---------- pain ---------- */
.pain p { font-size: clamp(19px, 2.6vw, 24px); max-width: 720px; }
.pain p + p { margin-top: 10px; }
.pain .pain-tail { font-size: 17px; max-width: 680px; }
.strike { color: var(--muted); }

/* ---------- paths / steps ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.path {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
}
.path.lite { border-top: 4px solid var(--orange); }
.path .who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.path h3 { margin: 0; font-size: 20px; }
.path .badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.path .note { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 12px 0 12px 46px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
}
ol.steps li:first-child { border-top: 0; padding-top: 4px; }
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
ol.steps li:first-child::before { top: 4px; }
.path.lite ol.steps li::before { background: var(--orange-ink); color: #fff; }
.kbd {
  font-family: var(--mono);
  background: #efeadd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
}
a.kbd:hover { border-color: var(--ink); }
.tail {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f4efe3;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prompt code { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { background: var(--green-soft); border-color: var(--green); color: var(--green); }

/* ---------- ladder ---------- */
.ladder {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 34px 0 22px;
  min-height: 190px;
}
.step {
  flex: 1;
  border-radius: 12px 12px 6px 6px;
  background: #ece6da;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
  text-align: left;
}
.step .n { font-size: 12px; color: var(--muted); }
.step .t { font-size: 14px; font-weight: 600; margin-top: 2px; }
.step.on { background: var(--orange-ink); color: #fff; box-shadow: 0 14px 30px rgba(185, 71, 10, .24); }
.step.on .n { color: rgba(255, 255, 255, .85); }
.step .check { position: absolute; top: 10px; right: 12px; font-size: 15px; opacity: .5; }
.step.on .check { opacity: 1; }
.s1 { height: 96px; }
.s2 { height: 118px; }
.s3 { height: 138px; }
.s4 { height: 158px; }
.s5 { height: 178px; }

/* ---------- gates ---------- */
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.gate { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--paper); }
.gate .tag2 {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}
.g-public .tag2 { background: var(--green-soft); color: var(--green); }
.g-link .tag2 { background: var(--amber-soft); color: var(--amber); }
.g-never .tag2 { background: var(--red-soft); color: var(--red); }
.gate p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- collect ---------- */
.collect {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.collect .big { font-size: clamp(20px, 3vw, 28px); max-width: 560px; }
.collect-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.net { display: flex; gap: 8px; }
.net i { width: 30px; height: 30px; border-radius: 50%; background: #ece6da; display: inline-block; }
.net i.hi { background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }

/* ---------- AI strip ---------- */
.aistrip {
  background: var(--ink);
  color: #f2efe8;
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.aistrip .eyebrow { color: #f7b98c; }
.aistrip-title { font-size: 18px; max-width: 560px; }
.aistrip-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aistrip-code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, .1);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}
.aistrip-code:hover { background: rgba(255, 255, 255, .18); }
.copy-btn-dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: #f2efe8; }
.copy-btn-dark:hover { border-color: #fff; }

/* ---------- recommendations ---------- */
.reco { background: var(--bg); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head > div:first-child { min-width: 0; }
.reco-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 30px;
}
.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.filter-label svg { width: 14px; height: 14px; stroke: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip-count { color: rgba(255, 253, 248, .7); }
.filter-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 2px;
}
.filter-clear:hover { color: var(--ink); }
.filter-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.reco-block + .reco-block { margin-top: 36px; }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.block-head h3 { margin: 0; font-size: 18px; }
.block-status { font-size: 12px; color: var(--muted); }
.block-status.is-live { color: var(--green); }
.reco-list { display: grid; gap: 12px; }
.reco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.reco-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.reco-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.reco-card.is-featured { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 24px; padding: 28px; }
.rc-date { font-family: var(--mono); }
.rc-date .d { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.rc-date .y { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.rc-body { min-width: 0; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  line-height: 1.6;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill-daily { background: var(--orange-soft); border-color: transparent; color: var(--orange-ink); font-weight: 600; }
.pill-weekly { background: var(--green-soft); border-color: transparent; color: var(--green); font-weight: 600; }
.pill-pinned { background: var(--ink); border-color: transparent; color: var(--paper); font-weight: 600; }
.pill-domain { background: #f1ece1; border-color: transparent; color: var(--muted); }
.pill-date { background: #f1ece1; border-color: transparent; color: var(--muted); font-family: var(--mono); }
.reco-card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.01em; }
.reco-card.is-featured h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.24; }
.reco-card p { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.rc-source { overflow-wrap: anywhere; }
.rc-arrow { color: var(--ink); font-weight: 600; white-space: nowrap; }
.reco-card:hover .rc-arrow { color: var(--orange-ink); }
.reco-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  background: rgba(255, 253, 248, .55);
}
.reco-empty h3 { margin: 0 0 8px; font-size: 18px; }
.reco-empty p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.reco-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.reco-all { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.reco-all:hover { color: var(--orange-ink); }

/* ---------- archive ---------- */
.page-head { padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 56px); margin-bottom: 18px; }
.page-head .lead { max-width: 620px; }
.page-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.page-head + .archive { border-top: 0; }
.archive { padding-top: 0; }
.archive .filter { margin-top: 22px; }
.archive-months { display: grid; gap: 8px; }
.archive-month { margin-bottom: 34px; }
.archive-month h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.archive-month h2 span { font-size: 12px; color: var(--muted); font-weight: 400; }
.archive-list { display: grid; gap: 8px; }
.reco-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.reco-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.rr-date { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.rr-body { min-width: 0; }
.rr-body h3 { font-family: var(--serif); font-size: 18px; line-height: 1.35; margin: 0 0 4px; }
.rr-body p { margin: 0; font-size: 13px; color: var(--muted); }
.rr-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rr-arrow { font-size: 12px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.reco-row:hover .rr-arrow { color: var(--orange-ink); }

/* ---------- footer ---------- */
footer { padding: 52px 0 70px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.fcol.brand .fbrand { font-weight: 700; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.fcol.brand p { margin: 0 0 8px; max-width: 320px; }
.footer-note { font-size: 12px; color: var(--muted); }
.fh {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 12px;
}
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fcol a { text-decoration: none; color: var(--muted); }
.fcol a:hover { color: var(--ink); }
.forai .fh { color: var(--orange-ink); }
.forai a { font-family: var(--mono); font-size: 13px; }
.fbar {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- focus / motion ---------- */
:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 3px; }
.btn:focus-visible,
.chip:focus-visible,
.copy-btn:focus-visible,
.menu-toggle:focus-visible,
.lang-switch:focus-visible,
.reco-card:focus-visible,
.reco-row:focus-visible,
.repo-card:focus-visible,
.filter-clear:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-repo { display: none; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-side { max-width: 620px; }
  .reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reco-card.is-featured { grid-template-columns: 1fr; gap: 14px; }
  .rc-date { display: flex; align-items: baseline; gap: 8px; }
  .rc-date .d { font-size: 22px; }
  .rc-date .y { margin-top: 0; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; }
  .paths { grid-template-columns: 1fr; }
  .gates { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1.4fr 1fr; }
  .fgrid .fcol.brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  html { scroll-padding-top: 76px; }
  .nav-inner { height: 58px; }
  .mobile-menu { max-height: calc(100vh - 58px); }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  h1 { font-size: clamp(38px, 10vw, 48px); }
  .lead { font-size: 17px; }
  .cta .btn { width: 100%; }
  .repo-rail { grid-template-columns: 1fr; margin-top: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter { display: block; }
  .filter-label { display: flex; align-items: center; margin-bottom: 8px; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .filter-clear { margin-top: 8px; }
  .reco-grid { grid-template-columns: 1fr; }
  .reco-card { padding: 20px; }
  .reco-card.is-featured { padding: 22px; }
  .reco-card h3 { font-size: 20px; }
  .reco-card.is-featured h3 { font-size: 24px; }
  .rc-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ladder { gap: 6px; min-height: 150px; }
  .step { padding: 10px 7px; }
  .step .t { font-size: 12px; }
  .s1 { height: 78px; }
  .s2 { height: 92px; }
  .s3 { height: 106px; }
  .s4 { height: 120px; }
  .s5 { height: 134px; }
  .aistrip { padding: 24px 20px; }
  .aistrip-actions { width: 100%; }
  .reco-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .rr-date { padding-top: 0; }
  .rr-arrow { padding-top: 0; }
  .fgrid { grid-template-columns: 1fr; gap: 26px; }
  .fbar { flex-direction: column; gap: 8px; }
}
