/* G-garry — shared styles */

:root {
  --paper:   #E8ECF1;
  --panel:   #FFFFFF;
  --ink:     #0F1D2B;
  --mute:    #5C6E80;
  --rule:    #C6D0DC;
  --hair:    #DDE3EB;
  --amber:   #B4661A;
  --teal:    #0C7C74;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E141B;
    --panel: #151D26;
    --ink:   #DEE6EE;
    --mute:  #8B9CAE;
    --rule:  #2A3644;
    --hair:  #212C38;
    --amber: #E0A55B;
    --teal:  #4FC0B4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--amber); }

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
}

/* ── top bar ───────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.topbar b { font-weight: 600; }

.topbar nav {
  display: flex;
  gap: 1.25rem;
  color: var(--mute);
}

.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.topbar nav [aria-current] { color: var(--ink); }

/* ── hero ──────────────────────────────────────────────── */

.hero { padding: 4.5rem 0 0; }

.eyebrow {
  margin: 0 0 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  color: var(--mute);
}

/* ── the network panel ─────────────────────────────────── */

.net {
  margin: 3.25rem 0 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.net table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.net th {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
  text-align: left;
  color: var(--mute);
  white-space: nowrap;
}

.net th + th { border-left: 1px solid var(--hair); }

.net .waterfall { width: 34%; }

.net .ticks {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  opacity: 0.75;
}

figure { margin: 0; }

figcaption {
  margin: 0.85rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mute);
}

/* ── section markers ───────────────────────────────────── */

.marker {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marker .key { color: var(--amber); font-weight: 500; }
.marker .leader { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-0.2em); }
.marker .val { color: var(--mute); }

h2 {
  margin: 1rem 0 0.9rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── lists ─────────────────────────────────────────────── */

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}

li:last-child { margin-bottom: 0; }

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--amber);
}

.mail { font-family: var(--mono); font-size: 0.9375rem; }

/* ── footer ────────────────────────────────────────────── */

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mute);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

footer nav { display: flex; gap: 1.25rem; }

/* ── load sequence ─────────────────────────────────────── */

.rise {
  opacity: 0;
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.rise:nth-child(1) { animation-delay: 0.04s; }
.rise:nth-child(2) { animation-delay: 0.12s; }
.rise:nth-child(3) { animation-delay: 0.2s; }

.net { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards; }

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

@media (prefers-reduced-motion: reduce) {
  .rise, .net { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero { padding-top: 3rem; }
  .topbar nav { gap: 1rem; }
  .net .hide-sm { display: none; }
  .net .ticks span:nth-child(n+3) { display: none; }
}
