/* Isobata website: the design's tokens (Claude Design project "Isobata Website v2"), light and dark. */
body { margin: 0; }
* { box-sizing: border-box; }
a { color: inherit; }
a:hover { opacity: .8; }
[hidden] { display: none !important; }

.page {
  --bg: #FBF8F2; --surface: #FFFFFF; --soft: #F3EDE2; --ink: #12304A; --muted: #4D5B6A; --line: #E3DCCF;
  --accent: #2D6F7E; --btn: #12304A; --btnInk: #FBF8F2; --codebg: #F3EDE2;
  background: var(--bg); color: var(--ink);
  font-family: 'Instrument Sans', sans-serif; font-size: 17px; line-height: 1.55; min-height: 100vh;
}
.page[data-iso="dark"] {
  --bg: #0D1C2A; --surface: #13283A; --soft: #102334; --ink: #EEF0EA; --muted: #A6B4BF; --line: #24394C;
  --accent: #8CC3CE; --btn: #F5EFE4; --btnInk: #12304A; --codebg: #0A1722;
}
@media (prefers-color-scheme: dark) {
  .page[data-iso="auto"] {
    --bg: #0D1C2A; --surface: #13283A; --soft: #102334; --ink: #EEF0EA; --muted: #A6B4BF; --line: #24394C;
    --accent: #8CC3CE; --btn: #F5EFE4; --btnInk: #12304A; --codebg: #0A1722;
  }
}

/* Header: the brand centred and large, the privacy link on the left, the pilot button on the right; stacked and
   centred on narrow screens. */
.site-header {
  max-width: 1160px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.header-link { justify-self: start; text-decoration: none; color: var(--muted); font-size: 15px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand span { font-family: 'Newsreader', serif; font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 15px; }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .brand { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .brand svg { width: 40px; height: 40px; }
  .brand span { font-size: 38px; }
  /* The hero repeats this link a few lines below. */
  .header-link { display: none; }
  .header-actions { grid-column: 1 / -1; justify-self: center; }
}

/* The definition: a dictionary entry for the name. */
.definition { border-top: 1px solid var(--line); }
.term { margin: 0; font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -.02em; }
.term .pos { font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: .45em; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.meaning { margin: 0; font-family: 'Newsreader', serif; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; text-wrap: pretty; }
.meaning strong { font-weight: 500; color: var(--accent); }
.aside-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.aside { margin: 0; color: var(--muted); text-wrap: pretty; }

.h2 { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 19px; font-weight: 600; }

.ref { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); font-weight: 500; }
.src { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.kind { font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); }

.point { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 18px; }
.point p, .step p { margin: 0; color: var(--muted); text-wrap: pretty; }
.step { display: flex; flex-direction: column; gap: 8px; }
.num { font-family: 'Newsreader', serif; font-size: 40px; line-height: 1; color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.promise { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 20px 0; border-top: 1px solid #2A4A63; }
.promise .dot { width: 8px; height: 8px; border-radius: 50%; background: #7FB8C4; margin-top: 10px; }
.promise .t { font-weight: 600; font-size: 18px; }
.promise .d { color: #B8C6CF; text-wrap: pretty; }
.promise .t, .promise .d { grid-column: 2; }
.promise .dot { grid-row: 1; }

.fact { display: flex; flex-direction: column; gap: 6px; }
.fact h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fact p { margin: 0; text-wrap: pretty; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select {
  font: inherit; font-weight: 400; font-size: 16px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

button.primary { font: inherit; font-weight: 500; font-size: 17px; background: var(--btn); color: var(--btnInk); border: 0; border-radius: 7px; padding: 14px 22px; cursor: pointer; }
button.secondary { font: inherit; font-weight: 500; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
button.small { font-size: 15px; padding: 9px 16px; border-radius: 6px; }

details { border-top: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
details summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 0; color: var(--muted); text-wrap: pretty; }

[data-consent]:not([hidden]) { display: flex; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Content pages (security, install, models): a readable column, with tables and a simple diagram. */
.doc { max-width: 860px; margin: 0 auto; padding: clamp(32px,6vw,72px) clamp(20px,4vw,40px) clamp(56px,8vw,104px); display: flex; flex-direction: column; gap: 18px; }
.doc h1 { margin: 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(38px,5vw,58px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.doc .lead { margin: 0; font-size: clamp(18px,1.6vw,20px); color: var(--muted); text-wrap: pretty; }
.doc h2 { margin: 40px 0 0; font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(28px,3vw,36px); line-height: 1.15; letter-spacing: -.015em; }
.doc h3 { margin: 12px 0 0; }
.doc p, .doc li { color: var(--muted); text-wrap: pretty; }
.doc p { margin: 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc code { font-family: 'JetBrains Mono', monospace; font-size: .85em; background: var(--codebg); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.kicker { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--accent); }
.note { border: 1px solid var(--line); background: var(--soft); border-radius: 8px; padding: 14px 18px; }
.callout { margin-top: 32px; border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta { text-decoration: none; background: var(--btn); color: var(--btnInk) !important; padding: 12px 20px; border-radius: 7px; font-weight: 500; }

/* The architecture diagram: three zones in a row, stacked on narrow screens. */
.arch { display: grid; grid-template-columns: 1fr auto 2.6fr auto 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.zone { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.zone.host { border: 2px solid var(--accent); background: var(--soft); }
.zone-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.box { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--surface); font-size: 14px; color: var(--ink); }
.box small { display: block; color: var(--muted); font-size: 12.5px; }
.box.gate { border-color: var(--accent); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); text-align: center; }
.link .arrow { font-size: 22px; line-height: 1; }
@media (max-width: 760px) {
  .arch { grid-template-columns: 1fr; }
  .link { flex-direction: row; }
  .link .arrow { transform: rotate(90deg); }
}

.page-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.page-nav a { color: var(--muted); text-decoration: none; }
.page-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer > div { max-width: 1160px; margin: 0 auto; padding: 32px clamp(20px,4vw,40px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a, .site-footer button { color: var(--muted); }
