/* omegapanel.net -- one stylesheet, no JavaScript, and every asset served
   from this origin. See backend/cmd/opanel-site. */

@font-face {
  font-family: Archivo; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/archivo-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/archivo-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/archivo-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: Archivo; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/archivo-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
}

:root {
  /* A near-black carrying the sidebar's blue-slate bias rather than a neutral
     grey, so the ground reads as chosen rather than as #111. */
  --ground: #101418;
  --surface: #171c21;
  --surface-2: #1c2229;
  --line: #262d34;
  --line-soft: #1e242a;
  --text: #e7ebee;
  --muted: #8d99a4;
  --dim: #6b7580;

  /* The real brand orange, from the 2020 wordmarks. --accent-soft is the same
     hue lifted for link text, because #ED5F20 on this ground is legible for a
     heading and muddy for a sentence. */
  --accent: #ED5F20;
  --accent-soft: #ff8b52;
  --accent-dim: rgba(237, 95, 32, 0.14);

  /* Semantic only. Used on the tier ticks and nowhere else; it is not a
     second accent. */
  --ok: #56c07f;

  --sans: Archivo, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: #12151a;
        padding: .6rem 1rem; z-index: 20; font-weight: 600; border-radius: 2px; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* ---------- the development notice ---------- */

/* The site describes a product that is not finished, and says so on every page
   rather than in small print at the bottom of one. It is a single block here
   and a single block in the template, so removing it at launch is two
   deletions rather than an archaeology exercise.

   Above the header and not sticky: it should be read once and then leave, not
   follow somebody down the page like a cookie bar. */
.notice {
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(237, 95, 32, .28);
  color: #f0b18d;
  font: 400 .8rem/1.5 var(--mono); letter-spacing: .02em;
}
.notice .wrap { padding-top: .7rem; padding-bottom: .7rem; }
.notice .pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .6rem; vertical-align: middle;
}

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

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 20, 24, .88);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between;
             gap: 2rem; min-height: 4.25rem; flex-wrap: wrap; }
.top .mark { display: flex; }
.top img { display: block; height: 24px; width: auto; }
.top nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .15s;
}
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- shared type ---------- */

h1 {
  font: 700 clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem)/1.04 var(--sans);
  letter-spacing: -.035em; margin: 0 0 1.25rem; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

/* The lede. Sized off the headline rather than the body so the opening reads
   as one composed block. */
h1 + p { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 40rem; }
h1 + p strong { color: var(--text); font-weight: 500; }

p, ul, ol { max-width: 42rem; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

ul { padding-left: 1.05rem; }
li { margin: .35rem 0; }
li::marker { color: var(--dim); }

strong { font-weight: 600; color: var(--text); }

code {
  font: .86em/1.4 var(--mono);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 2px; padding: .12em .4em; color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }

/* ---------- the prose page (home, pricing, 404) ---------- */

.prose { padding: 5rem 1.5rem 5rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font: 600 1.5rem/1.2 var(--sans); letter-spacing: -.02em;
  margin: 3.75rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.prose h3 {
  font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 2.25rem 0 .5rem;
}

/* The lead-in strip under the home page headline: the subject's own terms of
   art, in the subject's own typeface. Vernacular as content, not ornament. */
.prose blockquote {
  margin: 2.25rem 0 0; padding: 0; border: 0; max-width: 44rem;
}
.prose blockquote p {
  font: 400 .8rem/2 var(--mono); letter-spacing: .04em;
  color: var(--dim); text-transform: uppercase; margin: 0;
}
.prose blockquote strong { color: var(--muted); font-weight: 400; }

/* ---------- the datasheet page (capabilities) ---------- */

.sheet { padding: 5rem 1.5rem 5rem; }
.sheet > :first-child { margin-top: 0; }

/* Label left, substance right, hairline between -- a spec sheet, which is the
   document shape this audience reads every day. Collapses to one column on a
   phone, where a 12rem rail would leave the prose in a gutter. */
.spec {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0 3rem; border-top: 1px solid var(--line); padding: 2.5rem 0;
}
.spec > h2 {
  font: 500 .78rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: .3rem 0 0; align-self: start;
  position: sticky; top: 6rem;
}
.spec-body > :first-child { margin-top: 0; }
.spec-body > :last-child { margin-bottom: 0; }
.spec-body p { font-size: 1.02rem; color: #cfd6dc; max-width: 38rem; }
.spec-body p strong { color: var(--text); }

@media (max-width: 56rem) {
  .spec { grid-template-columns: 1fr; gap: .85rem; }
  .spec > h2 { position: static; }
}

/* ---------- the tier table ---------- */

.tiers { display: block; overflow-x: auto; max-width: 44rem; margin: 2rem 0; }
table.tiers { border-collapse: collapse; width: 100%; font-size: .94rem; }
.tiers th, .tiers td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tiers thead th {
  font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: .6rem;
}
.tiers thead th:not(:first-child), .tiers td { text-align: center; }
.tiers tbody th { font-weight: 400; color: #cfd6dc; white-space: nowrap; }
.tiers td { font-variant-numeric: tabular-nums; color: var(--muted); }
.tiers td.yes { color: var(--ok); font-weight: 600; }
.tiers td.no  { color: #4a555f; }
.tiers tr.always { background: var(--accent-dim); }
.tiers tr.always th { color: var(--text); font-weight: 500; white-space: normal; }
.tiers tbody tr:last-child th, .tiers tbody tr:last-child td { border-bottom: 0; }

/* ---------- call to action ---------- */

.prose p.cta, .sheet p.cta { margin-top: 2.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
p.cta a {
  font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--text); transition: border-color .15s, color .15s;
}
p.cta a:first-child {
  background: var(--accent); border-color: var(--accent); color: #14100d; font-weight: 600;
}
p.cta a:first-child:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
p.cta a:hover { border-color: var(--muted); color: #fff; }

/* ---------- forms ---------- */

.form { max-width: 40rem; margin: 2rem 0 0; }
.form p { margin: 0 0 1.5rem; max-width: none; }
.form label {
  display: block; margin-bottom: .5rem;
  font: 500 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.form .opt {
  text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 400;
}
.form span.opt { display: block; margin-top: .5rem; font: 400 .8rem/1.5 var(--sans); }

.form input[type="email"], .form input[type="text"], .form textarea, .form select {
  display: block; width: 100%; padding: .7rem .85rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 3px;
  font: 400 .95rem/1.5 var(--sans);
}
/* The sample box is code, so it is set in the code face -- and a monospace
   textarea is also the fastest way for somebody to see that what they pasted
   is what they meant to paste. */
.form textarea[name="sample"] { font: 400 .85rem/1.5 var(--mono); white-space: pre; }
.form textarea { resize: vertical; min-height: 6rem; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form ::placeholder { color: #566069; }

.form button {
  font: 600 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: 2px; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); color: #14100d;
}
.form button:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* The honeypot. Off-screen rather than display:none -- some form-fillers skip
   what is not rendered, and the point is to be filled in. */
.form .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

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

.foot {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2.5rem 0; color: var(--dim); font-size: .85rem;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.foot p { margin: 0; max-width: none; }

/* Somebody who has read the whole capabilities page and wants to talk needs to
   be told that there is not yet anywhere to write to -- silence reads as an
   oversight, and a made-up address would be worse than either. Dimmer than the
   line above it: it is an acknowledgement, not an offer. */
.foot .soon { margin-top: .4rem; color: #59636d; }
.foot .soon a { color: var(--muted); margin: 0; text-decoration: underline; }
.foot .soon a:hover { color: var(--text); }
.foot .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: .5rem; vertical-align: middle;
}
.foot a { color: var(--dim); margin-right: 1.4rem; text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 40rem) {
  .prose, .sheet { padding-top: 3rem; }
  .prose h2 { margin-top: 2.5rem; }
}
