/* The developer pages' stylesheet (shorenet.co.uk/developer/; formerly
   shorenet.dev's site.css).

   The page chrome (fonts, header, nav, footer, body) is shorenet.co.uk's own,
   from /css/custom.css. This file carries only the developer content rules,
   SCOPED: every rule sits under .dev-page (the class on <main>) or .dev-nav
   (the developer section nav under the site header), so nothing here reaches
   any other page or the site's chrome.

   The Chart Room tokens, copied from apps/website/static/css/custom.css; the
   values are recorded in docs/design/chart-room-tokens.md, and a change to a
   token there changes this file in the same commit. Fine rules, square
   corners, one chart blue for actions, magenta for position only (the focus
   ring and the current page in the nav). No gradients, glows or pills.

   Everything here is plain CSS. */

.dev-page, .dev-nav {
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Source Code Pro', Consolas, 'Cascadia Mono', ui-monospace, Menlo, monospace;
  --fs: 16px;
  --fs-prose: 1.125rem;
  --fs-small: 0.9375rem;
  --lh: 1.6;
  --head-w: 600;

  --bg: #F7F5EF;
  --paper: #FFFFFF;
  --surface-2: #ECE9DF;
  --ink: #14253A;
  --ink-2: #4A5868;
  --rule: #D3D6D2;
  --rule-strong: #5F6D7B;
  --accent: #1F5E8C;
  --accent-hover: #184B70;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBF3;
  --link: #1F5E8C;
  --focus: #A3175E;
  --warn: #7A4E00;

  --chrome: #14253A;
  --chrome-ink: #F7F5EF;
  --chrome-ink-2: #BCC7D2;
  --chrome-focus: #F59ACB;

  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 48px;
  --s9: 72px;

  --measure: 40rem;
  --wide: 64rem;
  --gutter: 1.5rem;

  font-family: var(--font-body);
  font-size: var(--fs);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.dev-page *, .dev-page *::before, .dev-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.dev-page a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dev-page a:hover { text-decoration-thickness: 2px; }
.dev-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.dev-page code, .dev-page .mono { font-family: var(--font-mono); font-size: 0.92em; }
.dev-page code { background: var(--surface-2); padding: 0 0.25em; }

.dev-page .wrap, .dev-nav .wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* The developer section nav: a light bar under the site's navy header. */
.dev-nav { border-bottom: 1px solid var(--rule); }
.dev-nav .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s3) var(--s6); padding-top: var(--s3); padding-bottom: var(--s3);
}
.dev-nav .brand {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 1.125rem; letter-spacing: 0.01em; margin-right: auto;
}
.dev-nav .brand span { color: var(--ink-2); font-weight: 400; }
.dev-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: 0; }
.dev-nav a { color: var(--ink); text-decoration: none; }
.dev-nav a:hover { text-decoration: underline; }
.dev-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--focus);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.dev-nav :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Buttons: square, chart blue. */
.dev-page .btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: 0.45em 1em; border: 1px solid var(--accent);
  font-weight: 600; line-height: 1.3;
}
.dev-page .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.dev-page .btn.quiet { background: transparent; color: var(--link); border-color: var(--rule-strong); }
.dev-page .btn.quiet:hover { background: var(--accent-soft); }

/* The Keep in touch form (redesign, 2026-11-05): Chart Room tokens only. */
.dev-page .signup { max-width: var(--measure); margin-top: var(--s6); }
.dev-page .signup .field { margin-bottom: var(--s3); }
.dev-page .signup label { font-weight: 600; }
.dev-page .signup label.check { font-weight: 400; }
.dev-page .signup input.email {
  width: 100%; max-width: 28rem; padding: var(--s2) var(--s3);
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-prose);
}
.dev-page .signup input.email:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dev-page button.btn { font-family: var(--font-body); font-size: var(--fs-prose); }
.dev-page .signup .more { margin-top: var(--s5); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.dev-page .signup summary { color: var(--link); font-weight: 600; }

/* The Inspector mark (founder Q28, O2c): sized by its width/height attributes. */
.dev-page .mark { margin-bottom: var(--s3); }

/* Hero: the one loud element. */
.dev-page .hero { background: var(--chrome); color: var(--chrome-ink); border-top: 1px solid #2A3B50; }
.dev-page .hero .wrap { padding-top: var(--s8); padding-bottom: var(--s8); }
.dev-page .hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1;
  color: var(--chrome-ink); max-width: 20ch;
}
.dev-page .hero p { font-size: var(--fs-prose); color: var(--chrome-ink-2); max-width: var(--measure); margin-top: var(--s4); }
.dev-page .hero .actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.dev-page .hero .btn.quiet { color: var(--chrome-ink); border-color: var(--chrome-ink-2); }
.dev-page .hero .btn.quiet:hover { background: #22364D; }
.dev-page .hero a { color: var(--chrome-ink); }

/* Content. The class `page` sits on <main> itself, or (the home page, whose
   <main> opens with the hero) on a div inside it. */
.dev-page.page, .dev-page .page { padding-top: var(--s8); padding-bottom: var(--s9); }
.dev-page.page > .wrap > * + *, .dev-page .page > .wrap > * + * { margin-top: var(--s4); }
.dev-page h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: var(--head-w); line-height: 1.2; }
.dev-page .lede { font-size: var(--fs-prose); color: var(--ink-2); max-width: var(--measure); }

.dev-page section.band { border-top: 1px solid var(--rule-strong); padding-top: var(--s6); margin-top: var(--s8); }
.dev-page section.band:first-of-type { margin-top: var(--s7); }
.dev-page section.band h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: var(--head-w); line-height: 1.25; }
.dev-page section.band h3 { font-size: 1.1875rem; font-weight: var(--head-w); margin-top: var(--s5); }
.dev-page .prose { max-width: var(--measure); font-size: var(--fs-prose); line-height: 1.65; }
.dev-page .prose > * + * { margin-top: var(--s4); }
.dev-page .prose ul, .dev-page .prose ol { padding-left: 1.25em; }
.dev-page .prose li + li { margin-top: var(--s2); }

.dev-page .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s6); margin-top: var(--s5); }
.dev-page .cols > div { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.dev-page .cols h3 { margin-top: 0; }
.dev-page .cols p, .dev-page .cols li { font-size: var(--fs); }
.dev-page .cols ul { padding-left: 1.1em; margin-top: var(--s2); }
.dev-page .cols ul + p, .dev-page .cols p + p { margin-top: var(--s3); }

.dev-page .status {
  display: inline-block; border: 1px solid var(--rule-strong); color: var(--ink-2);
  font-size: var(--fs-small); padding: 0 0.5em; margin-left: var(--s2);
  vertical-align: 0.15em; font-weight: 400;
}
.dev-page .placeholder { background: var(--paper); border: 1px solid var(--rule); padding: var(--s5); max-width: var(--measure); }
.dev-page .placeholder p + p { margin-top: var(--s2); }

.dev-page .note { background: var(--accent-soft); padding: var(--s4) var(--s5); max-width: var(--measure); }
.dev-page .draft { border-left: 3px solid var(--warn); background: var(--paper); padding: var(--s4) var(--s5); max-width: var(--measure); color: var(--ink); }

.dev-page dl.faq { max-width: var(--measure); margin-top: var(--s5); }
.dev-page dl.faq dt { font-weight: var(--head-w); font-size: 1.1875rem; margin-top: var(--s6); }
.dev-page dl.faq dt:first-child { margin-top: 0; }
.dev-page dl.faq dd { margin-top: var(--s2); font-size: var(--fs-prose); line-height: 1.65; }
.dev-page dl.faq dd p + p { margin-top: var(--s3); }

.dev-page table { border-collapse: collapse; width: 100%; max-width: var(--measure); background: var(--paper); font-variant-numeric: tabular-nums lining-nums; }
.dev-page th, .dev-page td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule); vertical-align: top; }
.dev-page th { background: var(--surface-2); font-weight: var(--head-w); }
.dev-page .table-scroll { overflow-x: auto; max-width: 100%; }
/* A long hex value in running text wraps anywhere rather than overflowing; no
   soft hyphen, so a copy carries only the hex (QUIC post review). */
.dev-page .hex code { word-break: break-all; }

@media (max-width: 640px) {
  .dev-page, .dev-nav { --gutter: 1rem; --fs-prose: 1.0625rem; }
  .dev-page .hero .wrap { padding-top: var(--s7); padding-bottom: var(--s7); }
  .dev-page.page, .dev-page .page { padding-top: var(--s7); }
  .dev-nav .brand { width: 100%; margin-right: 0; }
}

/* v1 (docs/plans/shorenet-dev-v1.md): pricing, captures, muted notes */
.dev-page .muted { color: var(--ink-2); }
.dev-page .price { font-size: 1.6rem; font-weight: 600; margin: 0.25rem 0 0.75rem; }
.dev-page .capture h3 { margin-bottom: 0.25rem; }
.dev-page .files { list-style: none; padding: 0; }
.dev-page .files li { margin: 0.4rem 0; }
.dev-page .files code { font-size: 0.8rem; word-break: break-all; }
