/* codonhq.com: one stylesheet for every page. The palette is the robot's (web/public/favicon.svg):
   night #0B1020, body #161D2D-#1E2638, edge #2A3550, cyan #70F3FF, lime #C8FF6E. Light mode keeps
   the hues, darkened for contrast on paper. No external fonts, scripts or trackers. */

:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --edge: #D5DCE8;
  --text: #121826;
  --muted: #4A5568;
  --accent: #00707C;
  --accent-2: #3B6600;
  --banner-bg: #FFF4D6;
  --banner-text: #5A3B00;
  --banner-edge: #E8C66A;
  --code-bg: #EEF2F8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020;
    --surface: #161D2D;
    --edge: #2A3550;
    --text: #E6ECF5;
    --muted: #9AA6BC;
    --accent: #70F3FF;
    --accent-2: #C8FF6E;
    --banner-bg: #2B2410;
    --banner-text: #FFE08A;
    --banner-edge: #6B5512;
    --code-bg: #1E2638;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1020;
  --surface: #161D2D;
  --edge: #2A3550;
  --text: #E6ECF5;
  --muted: #9AA6BC;
  --accent: #70F3FF;
  --accent-2: #C8FF6E;
  --banner-bg: #2B2410;
  --banner-text: #FFE08A;
  --banner-edge: #6B5512;
  --code-bg: #1E2638;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--edge); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.signin { color: var(--accent); font-weight: 600; }

.site-footer { border-top: 1px solid var(--edge); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

main { padding-top: 32px; }

/* The landing page */
.hero { padding: 40px 0 16px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .accent { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--edge); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #0B1020; }
.button:hover { border-color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 40px 0; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 20px; }
.card h2, .card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .price { font-size: 34px; font-weight: 700; color: var(--text); margin: 4px 0 2px; }
.card .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* Long-form pages (pricing, legal) */
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 8px 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--edge); }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 72ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .caps { text-transform: none; font-weight: 600; letter-spacing: 0.005em; }
.doc code { background: var(--code-bg); padding: 1px 5px; border-radius: 5px; font-size: 0.92em; overflow-wrap: anywhere; }
.toc { background: var(--surface); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 20px; font-size: 15px; }
.toc ol { columns: 2 220px; margin: 6px 0 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--edge); }
th { color: var(--muted); font-weight: 600; }

/* The DRAFT banner every legal page carries until the operator approves the text */
.draft-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border: 1px solid var(--banner-edge);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-weight: 600;
}
.draft-banner span { font-weight: 400; }

.note { color: var(--muted); font-size: 15px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { margin-left: 0; width: 100%; }
  .hero { padding-top: 20px; }
}
