/* Claero Dynamics — site stylesheet.
 *
 * Palette C1 "Morning Air" from .claude/skills/claero-design/SKILL.md — the READING-screen
 * palette, which is what a website is. The dashboards' A1 signal-orange is deliberately NOT
 * used here: the two accent families are an explicit design decision (Blake, 2026-07-27),
 * and measuring and reading are different modes. What carries across is the grammar — the
 * type scale, the tabular figures, the value+unit treatment — not the hue.
 *
 * Type scale is the app's: 12 / 14 / 17 / 22 / 28 / 40 / 64.
 * Display face is Avenir Next Condensed Demibold, the condensed-numeral motif; it ships with
 * macOS and iOS, so no webfont is loaded and no external request is made.
 */

:root {
  color-scheme: light dark;

  --surface: #EAF3FA;
  --card: #FFFFFF;
  --ink: #1C2B33;
  --ink2: #4A5D68;
  --accent: #147D8C;
  --accent-ink: #0C5B67;
  --rule: #D3E2ED;

  --sev-ok: #1E7D32;
  --sev-warn: #B45309;
  --sev-info: #33586B;

  --display: "Avenir Next Condensed", "Avenir Next", "HelveticaNeue-CondensedBold",
             system-ui, -apple-system, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 46rem;
  --wide: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #101214;
    --card: #191D20;
    --ink: #F2F5F7;
    --ink2: #9AA6AD;
    --accent: #37D6C4;
    --accent-ink: #37D6C4;
    --rule: #2B3237;

    --sev-ok: #4ED964;
    --sev-warn: #FFB020;
    --sev-info: #7FB8D9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--measure); margin-inline: auto; padding: 0 1.25rem; }
.wrap-wide { max-width: var(--wide); margin-inline: auto; padding: 0 1.25rem; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* --- site header ------------------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;          /* glove-sized targets are an app rule; harmless discipline here */
  flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.site-nav { display: flex; gap: 1.4rem; font-size: 14px; }
.site-nav a { color: var(--ink2); text-decoration: none; }
.site-nav a:hover { color: var(--accent-ink); text-decoration: underline; }

/* --- hero -------------------------------------------------------------------------- */

.hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
/* Streamline motif — background texture only, and there are no numerals in the hero.
   Inline SVG data URI so the page stays self-contained. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23147D8C' stroke-width='1.5'%3E%3Cpath d='M-50 90 C 300 40, 700 40, 1250 96'/%3E%3Cpath d='M-50 150 C 300 92, 700 92, 1250 158'/%3E%3Cpath d='M-50 210 C 300 148, 700 148, 1250 220'/%3E%3Cpath d='M-50 270 C 300 205, 700 205, 1250 282'/%3E%3Cpath d='M-50 330 C 300 262, 700 262, 1250 344'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: .13;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
}
.hero .lede { font-size: 22px; line-height: 1.45; color: var(--ink2); margin: 0 0 1.5rem; max-width: 34rem; }
.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 .9rem;
}

/* --- generic sections -------------------------------------------------------------- */

section { padding: 3.25rem 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0;
  margin: 0 0 .35rem;
}
h3 { font-size: 17px; margin: 0 0 .3rem; }
.section-sub { color: var(--ink2); margin: 0 0 1.75rem; font-size: 17px; }

/* --- app grid ---------------------------------------------------------------------- */

.apps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.app {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;             /* C1 reading-screen radius, 14–18 pt */
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.app-head { display: flex; align-items: center; gap: .7rem; }
.app-head img { width: 46px; height: 46px; border-radius: 10px; display: block; flex: none; }
.app-name { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0; line-height: 1.1; }
.app p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.55; flex: 1; }
.app-links { display: flex; gap: .9rem; font-size: 14px; margin-top: .35rem; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .12rem .5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  vertical-align: 2px;
}
.tag-soon { color: var(--sev-warn); }

/* --- prose / legal pages ----------------------------------------------------------- */

.doc { padding: 2.75rem 0 4rem; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.1; margin: 0 0 .3rem; }
.doc h2 { font-size: 22px; margin: 2.4rem 0 .5rem; }
.doc .sub { color: var(--ink2); margin: 0 0 2rem; font-size: 14px; }
.doc code { font-size: .9em; background: var(--card); padding: .1rem .35rem; border-radius: 4px; border: 1px solid var(--rule); }
.doc ul { padding-left: 1.15rem; }
.doc li { margin: .35rem 0; }

table { border-collapse: collapse; width: 100%; margin: .9rem 0; font-size: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; padding: .6rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--sev-info); }
thead th { white-space: nowrap; }
tbody th { min-width: 9rem; }

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: .9rem 1.1rem;
  margin: 1.4rem 0;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
}
.note strong { color: var(--ink); }

/* --- footer ------------------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--card);
  padding: 2.25rem 0;
  color: var(--ink2);
  font-size: 14px;
}
.site-foot .wrap-wide { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink2); }
.legal { max-width: 40rem; font-size: 12px; line-height: 1.6; margin: 0; }

/* Anything live/measured uses tabular figures — the app's rule, kept for consistency
   wherever the site prints a value. */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

@media (max-width: 34rem) {
  .hero { padding: 2.75rem 0 2.25rem; }
  section { padding: 2.5rem 0; }
  .doc h1 { font-size: 28px; }
}
