/* ============================================================
   gzliew.com — "Datasheet"
   Blueprint ground, instrument-amber signal, spec-column layout.
   ============================================================ */

:root {
  /* Ground */
  --blueprint:        #0E1A26;
  --blueprint-raised: #13212F;
  --blueprint-lit:    #17293A;

  /* Ink */
  /* Every text pair here clears WCAG AA (4.5:1) against all three grounds;
     --steel is the tightest at 5.4:1 on --blueprint-lit. */
  --paper:      #E9EFF4;
  --paper-soft: #9DB0C0;
  --steel:      #7EA1B8;

  /* Structure */
  --rule:       #24394C;
  --rule-lit:   #33526C;

  /* Signal */
  --signal:     #E9A33C;
  --signal-dim: #A8752A;

  /* Type */
  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Measure */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--blueprint);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--signal);
  color: var(--blueprint);
  font-family: var(--mono);
  font-size: 0.8rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Shell ---------- */

.bar,
.hero,
.tiers,
.contact,
.foot {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Top bar ---------- */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.6rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bar__name { color: var(--paper); }
.bar__role { color: var(--steel); }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* 24ch keeps the line break where the markup puts it, rather than letting
   the title wrap into four ragged lines. */
.hero__title {
  font-size: clamp(2.25rem, 6.6vw, 4.7rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.032em;
  max-width: 24ch;
}

.hero__lead {
  margin-top: clamp(1.5rem, 3.5vw, 2.1rem);
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--paper-soft);
}

.hero__action { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ---------- Rate readout (signature) ---------- */

.readout {
  margin-top: clamp(2.25rem, 5.5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-lit);
  border-bottom: 1px solid var(--rule);
}

.readout__cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(0.75rem, 2vw, 1.5rem)
           clamp(1.1rem, 2.6vw, 1.6rem) 0;
  border-right: 1px solid var(--rule);
}

.readout__cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.readout__rate {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.15;
}

.readout__cell--lit .readout__rate { color: var(--signal); }

.readout__unit {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.readout__label {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-soft);
}

/* ---------- Tiers ---------- */

.tiers {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* Escalation is carried by depth of ground + weight of the edge rule,
   not by numbering. Each grade sits one step brighter than the last. */
.tier {
  border-left: 2px solid var(--rule-lit);
  background: transparent;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3.5vw, 2.5rem);
  /* Hug the 44.5rem measure plus its padding, so the tinted blocks are not
     wider than the content they hold. */
  max-width: 49.75rem;
}

.tier--mid {
  border-left-color: var(--signal-dim);
  background: var(--blueprint-raised);
}

.tier--top {
  border-left-color: var(--signal);
  background: var(--blueprint-lit);
}

.tier__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.tier__name {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.tier__rate {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
}

.tier--top .tier__rate { color: var(--signal); }

.tier__unit {
  color: var(--steel);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
}

.tier__thesis {
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--paper-soft);
}

/* ---------- Spec table ---------- */

/* One measure for the whole block, so the rate in the head lands on the same
   right edge as the spec rules below it. 8.5 + 2 + 34 = 44.5rem. */
.tier__head,
.tier__thesis,
.spec {
  max-width: 44.5rem;
}

.spec {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 34rem);
  column-gap: 2rem;
}

.spec__key {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel);
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule);
}

.spec__val {
  margin: 0;
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule);
  color: var(--paper);
}

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--rule);
}

.contact__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.contact__lead {
  margin-top: 1.25rem;
  max-width: 48ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--paper-soft);
}

.contact__action {
  display: inline-block;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 0.95rem 1.6rem;
  background: var(--signal);
  color: var(--blueprint);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.contact__action:hover {
  background: #F2B457;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  gap: 0.6rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.foot__sep { color: var(--rule-lit); }

/* ---------- Narrow ---------- */

@media (max-width: 640px) {
  /* Let the title find its own break. The deliberate two-line split only has
     room on wide screens; forcing it here produces four ragged lines. */
  .hero__title br { display: none; }

  .readout {
    grid-template-columns: 1fr;
  }

  .readout__cell {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .readout__cell:last-child {
    border-bottom: 0;
  }

  .readout__label {
    margin-top: 0;
    margin-left: auto;
  }

  .spec {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .spec__key {
    padding-block: 0.9rem 0.2rem;
  }

  .spec__val {
    padding-block: 0 1.1rem;
    border-top: 0;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }
  .hero__title { animation-delay: 60ms; }
  .hero__lead  { animation-delay: 120ms; }
  .readout     { animation-delay: 180ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact__action { transition: none; }
}
