@font-face {
  font-family: Inter;
  src: url('/assets/inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111916;
  --panel: #19241e;
  --soft: #202e26;
  --text: #f2f6ef;
  --muted: #bac7bc;
  --line: #35483b;
  --accent: #c4f37a;
  --ink: #152312;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 Inter, Arial, sans-serif; }
body.harbor {
  color-scheme: light;
  --bg: #faf6ed;
  --panel: #fff;
  --soft: #efe7d9;
  --text: #31271f;
  --muted: #645847;
  --line: #d9cdbd;
  --accent: #80512c;
  --ink: #fff;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 24px; z-index: 4; background: var(--accent); color: var(--ink); padding: 8px 16px; }
.skip:focus { top: 12px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.25rem; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: inline-block; width: 28px; height: 28px; background: var(--accent); border-radius: 8px 2px 8px 2px; position: relative; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; width: 15px; height: 2px; background: var(--bg); left: 6px; transform: rotate(-25deg); }
.brand-mark::before { top: 9px; }
.brand-mark::after { top: 16px; }
.harbor .brand-mark { border-radius: 50% 50% 4px 4px; }
nav { display: flex; gap: 30px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .9375rem; text-decoration: none; }
nav a[aria-current='page'] { color: var(--text); text-decoration: underline; }
.eyebrow { margin: 0 0 23px; color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 100px 0 92px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; font-size: clamp(2.7rem, 4.7vw, 4.4rem); line-height: 1.07; font-weight: 530; letter-spacing: -.065em; margin-bottom: 28px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.8; max-width: 620px; margin-bottom: 32px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-block; padding: 13px 22px; background: var(--accent); color: var(--ink); border: 1px solid var(--accent); border-radius: 8px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.text-link { font-size: .9375rem; }
.architecture { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; }
.architecture-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 18px; font-size: .875rem; }
.architecture-head span { color: var(--muted); }
.entry { padding: 22px; margin-top: 26px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 550; }
.entry small, .node small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); margin-top: 5px; }
.connector { width: 1px; height: 28px; background: var(--line); margin: 0 auto; }
.nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.node { padding: 19px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-align: center; font-size: .9375rem; }
.node.compute { border-color: var(--accent); }
.diagram-caption { color: var(--muted); font-size: .8125rem; margin: 22px 0 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles div { padding: 24px 22px; border-right: 1px solid var(--line); }
.principles div:first-child { padding-left: 0; }
.principles div:last-child { border: 0; }
.principles strong { font-weight: 550; display: block; margin-bottom: 3px; }
.principles span { font-size: .875rem; color: var(--muted); }
.section { padding-block: 86px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.2; margin-bottom: 15px; }
.section-heading p { color: var(--muted); max-width: 510px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); padding: 30px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: start; }
.card .kind { color: var(--accent); font-size: .875rem; margin-bottom: 35px; }
h3 { font-weight: 550; font-size: 1.25rem; letter-spacing: -.035em; line-height: 1.35; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .9375rem; flex: 1; margin-bottom: 25px; }
.card a { font-size: .875rem; }
.architecture-section { display: grid; grid-template-columns: .9fr 1fr; gap: 90px; }
.architecture-section > div > p { color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { padding-block: 23px; border-top: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; border: 0; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 7px; }
.steps p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }
.callout { padding: 46px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 40px; background: var(--soft); }
.callout p { color: var(--muted); max-width: 600px; margin: 0; }
.footer { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-block: 32px; margin-top: 16px; border-top: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: .8125rem; margin: 0; }
.footer-links { display: flex; gap: 20px; font-size: .875rem; }
.page-top { padding: 80px 0 60px; max-width: 850px; }
.page-top h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.service { display: grid; grid-template-columns: .7fr 1fr; gap: 60px; padding-block: 46px; border-top: 1px solid var(--line); scroll-margin-top: 35px; }
.service h2 { font-size: 2rem; }
.service p, .service li { color: var(--muted); }
.service ul { padding-left: 20px; margin-bottom: 22px; }
.service li { margin-bottom: 8px; }
.note { background: var(--panel); border-left: 3px solid var(--accent); padding: 18px 22px; font-size: .9375rem; }
.guide { max-width: 880px; padding-bottom: 40px; }
.guide article { padding-block: 38px; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.guide article > p { color: var(--muted); }
.guide details { border-top: 1px solid var(--line); padding: 16px 0; }
.guide summary { cursor: pointer; font-weight: 550; }
.guide details p { color: var(--muted); margin: 16px 0 4px; }
.error-page { min-height: 65vh; padding-block: 100px; }
.error-page .lead { max-width: 540px; }
@media(max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 32px; padding-block: 70px; }
  .architecture { padding: 22px; }
  .card { padding: 24px; }
  .architecture-section { gap: 40px; }
}
@media(max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header { align-items: start; flex-direction: column; gap: 21px; padding-block: 23px; }
  nav { gap: 22px; }
  nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; padding: 55px 0 45px; gap: 40px; }
  h1 { font-size: clamp(2.3rem, 12.4vw, 3rem); }
  .principles, .cards, .architecture-section, .service { grid-template-columns: 1fr; }
  .principles div { border: 0; border-bottom: 1px solid var(--line); padding: 17px 0; }
  .section { padding-block: 55px; }
  .section-heading, .callout, .footer { align-items: start; flex-direction: column; }
  .card .kind { margin-bottom: 25px; }
  .callout { padding: 28px; gap: 25px; }
  .service { gap: 15px; padding-block: 30px; }
  .page-top { padding-block: 55px 35px; }
  .footer { gap: 18px; }
  .footer-links { flex-wrap: wrap; }
  .architecture-head { font-size: .8125rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
