/* Hill Labs — hill-labs.co
   A studio site, deliberately spare. Identity comes from restraint: cool blue-grey
   plotting paper, ink with a blue cast, and one saturated ultramarine that appears
   only on links and structural rules — never as decoration. Serif carries the
   voice; monospace is confined to labels so the page reads as an engineering
   document rather than a landing page.

   No external fonts, scripts or images: every byte is same-origin, which is what
   makes the strict Content-Security-Policy in nginx.conf honest rather than
   aspirational. */

:root {
  --paper: #eef1f4;
  --paper-raised: #f7f9fb;
  --ink: #12161c;
  --muted: #5c6773;
  --rule: #c9d2da;
  --data: #2f4de0;
  --data-soft: #dde3fb;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 60ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  /* Faint plotting grid — paper texture, not chrome. */
  background-image:
    linear-gradient(to right, rgba(47, 77, 224, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 77, 224, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Utility face: eyebrows, labels, keys. Never body copy. */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

a { color: var(--data); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: 0.5rem; z-index: 10;
  background: var(--ink); color: var(--paper-raised); padding: 0.5rem 0.75rem;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: 1.125rem 0; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--data); }
.masthead nav { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--data); text-decoration: underline; }

/* ---------- hero: the one oversized statement ---------- */
.hero { padding: clamp(3.5rem, 12vw, 8rem) 0 clamp(3rem, 9vw, 6rem); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0.875rem 0 0; max-width: 26ch;
}
.hero h1 em { font-style: italic; color: var(--data); }
.hero__lede { margin: 1.75rem 0 0; max-width: var(--measure); color: var(--muted); font-size: 1.0625em; }

/* ---------- sections ---------- */
.section { padding: clamp(2.75rem, 7vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.25; margin: 0.625rem 0 1.125rem; max-width: 32ch;
}
.section > p { max-width: var(--measure); margin: 0; }
.section > p + p { margin-top: 1rem; }

/* capabilities — a plain list, sized for scanning */
.caps { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .caps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.caps h3 {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; color: var(--ink);
  margin: 0 0 0.5rem; padding-top: 0.75rem; border-top: 2px solid var(--data);
}
.caps p { margin: 0; font-size: 0.9375em; color: var(--muted); max-width: 34ch; }

/* company facts — a definition list, because that is what this content is */
.facts { margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.facts__row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: 0.8125rem 0; border-bottom: 1px solid var(--rule);
}
.facts dt, .facts dd { margin: 0; }
@media (max-width: 34rem) { .facts__row { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule); padding: 2rem 0 3rem;
  display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; align-items: baseline;
}
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot a, .foot .label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; }

/* ---------- legal documents ---------- */
.doc { padding: clamp(2.5rem, 7vw, 4rem) 0 3.5rem; }
.doc h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 1.45rem + 1.4vw, 2.25rem);
  margin: 0.625rem 0 0.375rem; letter-spacing: -0.01em;
}
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; margin: 2.125rem 0 0.5rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.125rem; }
.doc li + li { margin-top: 0.375rem; }

/* Marks a value the operator must fill in before the page is relied on. */
.todo {
  background: var(--data-soft); border-bottom: 1px solid var(--data);
  padding: 0 0.2em; font-family: var(--mono); font-size: 0.875em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
