/* Pixel Rainbow Inc. — corporate site
   Direction: documentary / registry. Restraint over ornament: the reader is
   verifying facts, so the page reads like a filed document, not a landing page.
   One brand device only — the spectrum hairline under the wordmark. */

:root {
  --paper:      #FBFAF6;
  --paper-2:    #F3F0E9;
  --ink:        #14202B;
  --ink-2:      #3E4C59;
  --muted:      #6B7885;
  --rule:       #DFD9CD;
  --rule-soft:  #EBE6DC;
  --accent:     #0E5C74;
  --accent-bg:  #E9F1F3;

  --spectrum: linear-gradient(90deg,
    #C7442E 0%, #D98B2B 20%, #C9B02F 40%,
    #4E9A5A 60%, #2F7FA8 80%, #6B5AA6 100%);

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:    'Public Sans', 'Segoe UI', Helvetica, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;

  /* 12px micro-modular grid */
  --s1: 6px;  --s2: 12px; --s3: 24px;
  --s4: 36px; --s5: 60px; --s6: 96px;

  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

/* ---------- shell ---------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--s3);
  padding-bottom: var(--s2);
}

.wordmark {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.wordmark__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
}

.wordmark__rule {
  display: block;
  height: 3px;
  width: 100%;
  min-width: 168px;
  margin-top: var(--s1);
  background: var(--spectrum);
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: var(--s3);
  font-size: 14px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav a[rel~="external"]::after {
  content: " ↗";
  color: var(--muted);
}

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

.hero { padding: var(--s5) 0 var(--s4); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  max-width: 20ch;
}

.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: 0;
}

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

.section {
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
}

.section__head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s3);
  align-items: baseline;
  margin-bottom: var(--s3);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: var(--s3) 0 var(--s2);
}

.section__body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s3);
}

.section__body > :first-child { grid-column: 2; }
.section__body > * { grid-column: 2; }

p { margin: 0 0 var(--s2); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

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

/* ---------- registry table (label / value) ---------- */

.registry {
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.registry__row {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.registry dt {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.registry dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.registry dd .mono,
.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: -0.01em;
}

address {
  font-style: normal;
  white-space: pre-line;
}

/* ---------- fact table ---------- */

.tablewrap { overflow-x: auto; margin: var(--s3) 0 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14.5px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 1px solid var(--rule-soft);
}

thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

/* ---------- lists ---------- */

.marks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}

.marks li {
  padding: var(--s1) 0 var(--s1) var(--s4);
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}

.marks li::before {
  position: absolute;
  left: 0;
  top: var(--s1);
  font-family: var(--font-mono);
  font-size: 13px;
}

.marks--yes li::before { content: "✓"; color: var(--accent); }
.marks--no  li::before { content: "✕"; color: #A2543F; }

ol.steps {
  max-width: var(--measure);
  padding-left: 1.2em;
  margin: 0;
}
ol.steps li { margin-bottom: var(--s1); }

/* ---------- callout ---------- */

.callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: var(--s3);
  margin: var(--s3) 0 0;
  max-width: var(--measure);
}

.callout p { font-size: 15.5px; }

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

.foot {
  border-top: 1px solid var(--rule);
  margin-top: var(--s5);
  padding: var(--s4) 0 var(--s5);
  font-size: 14px;
  color: var(--muted);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: space-between;
}

.foot a { color: var(--ink-2); }

/* ---------- entrance: one orchestrated moment ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise .6s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .reveal:nth-child(1) { animation-delay: .04s; }
  .reveal:nth-child(2) { animation-delay: .12s; }
  .reveal:nth-child(3) { animation-delay: .20s; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .section__head,
  .section__body { grid-template-columns: 1fr; gap: var(--s2); }
  .section__head { margin-bottom: var(--s2); }
  .section__body > * { grid-column: 1; }
  .section__num { display: block; }
  .registry__row { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s2) 0; }
  .masthead { position: static; }
  .nav { gap: var(--s2) var(--s3); flex-wrap: wrap; }
}
