:root {
  --ink: #102e3d;
  --ink-2: #214656;
  --paper: #f4f7f3;
  --white: #fbfcfa;
  --line: #bed1ce;
  --slate: #59717a;
  --teal: #08716e;
  --teal-pale: #d6ede5;
  --orange: #dd7448;
  --orange-pale: #f5dfd3;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.58; }
a { color: inherit; }
.shell { max-width: 1180px; margin: auto; padding: 0 42px; }
.nav { min-height: 80px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { font: 700 18px Georgia, serif; letter-spacing: -.035em; text-decoration: none; }
.nav-right { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; font-weight: 700; }
.nav-right a { text-decoration: none; }
.nav-right a:hover, .brand:hover, .repository a:hover { color: var(--teal); }
.nav-right .github { border: 1px solid var(--ink); padding: 8px 11px; }
.nav-right .github:hover { background: var(--ink); color: var(--white); }
.hero { position: relative; max-width: 1000px; padding: 82px 0 58px; border-bottom: 1px solid var(--line); }
.meta, .toc > div, .outcomes b, .status b, .repository div, .eyebrow { font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.hero h1 { max-width: 820px; margin: 19px 0 28px; font: 400 clamp(56px, 8vw, 104px)/.82 Georgia, serif; letter-spacing: -.09em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lede { max-width: 750px; margin: 0; color: var(--ink-2); font-size: 22px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.skill-visual { max-width: 920px; margin: 42px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.skill-visual img { display: block; width: 100%; height: auto; }
.skill-visual img { border-radius: 0; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 16px; text-decoration: none; font-size: 14px; font-weight: 700; }
.primary { background: var(--ink); color: var(--white); }
.primary:hover { background: var(--teal); }
.secondary { border: 1px solid var(--ink); }
.secondary:hover { background: var(--orange-pale); }
.hero-mark { position: absolute; right: 0; top: 72px; display: grid; width: 142px; height: 142px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: var(--teal-pale); }
.hero-mark--management { background: #f6ead0; }
.hero-mark--anytype { background: var(--orange-pale); color: var(--orange); }
.hero-mark--support { background: #e2eff5; }
.hero-mark--book { background: #e6f3ea; }
.hero-mark--art { background: var(--orange-pale); color: var(--orange); }
.hero-mark--telegram { background: #e2eff5; }
.hero-mark--metrica { background: #f6ead0; color: var(--orange); }
.hero-mark .skill-icon { width: 72px; height: 72px; }
.status { display: grid; grid-template-columns: 190px 1fr; gap: 20px; margin: 42px 0 0; padding: 22px 25px; border-left: 4px solid var(--orange); background: var(--teal-pale); }
.status p { margin: 0; color: var(--ink-2); font-size: 16px; }
.status p + p { margin-top: 10px; }
.layout { display: grid; grid-template-columns: 180px minmax(0, 720px); gap: 58px; min-width: 0; padding: 58px 0 78px; }
.content { min-width: 0; }
.toc { position: sticky; top: 20px; align-self: start; }
.toc > div { margin-bottom: 12px; }
.toc a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--slate); font: 700 11px var(--mono); letter-spacing: .04em; text-decoration: none; }
.toc a:last-child { border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--teal); }
.content > section, .content section { scroll-margin-top: 24px; margin: 0 0 58px; }
.content > section:last-child, .content section:last-child { margin-bottom: 0; }
.content h2 { margin: 0 0 19px; font: 400 clamp(36px, 4.3vw, 58px)/.94 Georgia, serif; letter-spacing: -.07em; }
.content h3 { margin: 0 0 10px; font: 400 29px/1.05 Georgia, serif; letter-spacing: -.05em; }
.content p, .content li { color: var(--ink-2); font-size: 18px; line-height: 1.62; }
.content p { margin: 0 0 20px; }
.content ol { margin: 0; padding-left: 25px; }
.content li { margin: 9px 0; padding-left: 6px; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 29px; border: 1px solid var(--line); background: var(--line); }
.outcomes > div { position: relative; display: flex; min-height: 175px; flex-direction: column; gap: 20px; padding: 20px 18px 18px 58px; background: var(--white); }
.outcomes .skill-icon { position: absolute; top: 20px; left: 18px; width: 25px; height: 25px; color: var(--teal); }
.outcomes span { color: var(--ink-2); font-size: 14px; line-height: 1.48; }
pre { margin: 24px 0; overflow: auto; padding: 20px; background: var(--ink); color: #e9f4ef; font: 14px/1.55 var(--mono); }
code { font-family: var(--mono); }
p code, .agent-grid code { padding: 2px 4px; background: #dfeae5; font-size: .84em; }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--line); background: var(--line); }
.agent-grid > div { min-width: 0; padding: 22px; background: var(--white); }
.agent-grid p { font-size: 16px; line-height: 1.5; }
.agent-grid pre { margin: 17px 0 0; font-size: 12px; }
.repository { margin-top: 8px; padding: 26px; background: var(--ink); color: var(--white); }
.repository div { color: #9bd5c8; }
.repository > a { display: block; margin-top: 10px; overflow-wrap: anywhere; font: 400 clamp(21px, 3vw, 33px)/1 Georgia, serif; letter-spacing: -.045em; }
.repository p { margin: 10px 0 0; color: #c9d7d5; font-size: 14px; }
.repository p a { color: inherit; font: inherit; text-decoration-thickness: 1px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 30px; border-top: 1px solid var(--line); color: var(--slate); font-size: 12px; }

@media (max-width: 800px) {
  .shell { padding: 0 20px; }
  .nav { min-height: 70px; align-items: flex-start; padding: 13px 0; }
  .nav-right { justify-content: flex-end; gap: 11px; font-size: 13px; }
  .hero { padding: 57px 0 44px; }
  .hero h1 { font-size: clamp(50px, 17vw, 76px); overflow-wrap: anywhere; }
  .lede { font-size: 19px; }
  .skill-visual { margin-top: 29px; }
  .hero-mark { position: static; width: 76px; height: 76px; margin: 20px 0 0; }
  .hero-mark .skill-icon { width: 40px; height: 40px; }
  .status { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; padding: 20px; }
  .layout { grid-template-columns: 1fr; gap: 30px; padding: 38px 0 55px; }
  .toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .toc > div { grid-column: 1 / -1; }
  .toc a:last-child { border-bottom: 0; }
  .content > section, .content section { margin-bottom: 43px; }
  .content p, .content li { font-size: 17px; }
  .outcomes, .agent-grid { grid-template-columns: 1fr; }
  .outcomes > div { min-height: auto; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
