/* Orbios 3.0 — one screen, light paper. Type first, one accent, one slow light.
   No frameworks, no web fonts, no build step. */

:root {
  --paper:      #faf8f4;   /* warm off-white, not sterile #fff */
  --paper-sunk: #f3efe7;   /* wash under the hero light */
  --ink:        #14161a;   /* near-black */
  --muted:      #55595f;   /* AA on paper */
  --hair:       rgba(20, 22, 26, 0.14);
  --accent:     #3a3795;   /* one accent — family with the .io action */
  --accent-soft: rgba(58, 55, 149, 0.07);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vh, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);   /* 18 → 20px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- the one motion: a slow warm light behind the type ---- */

.orb {
  position: fixed;
  inset: -25vmin -20vmin auto auto;
  width: 96vmin;
  height: 96vmin;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(58, 55, 149, 0.075) 0%,
      rgba(58, 55, 149, 0.030) 36%,
      rgba(58, 55, 149, 0.000) 68%);
  animation: breathe 22s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { transform: scale(0.94) translateY(2vmin); opacity: 0.8; }
  to   { transform: scale(1.08) translateY(-2vmin); opacity: 1; }
}

/* ---- layout ---- */

.screen {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5.5vh, 4rem);
}

/* ---- head: centered hero, generous air ---- */

.head { text-align: center; }

.eyebrow {
  margin: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  font-size: 0.9375rem;                 /* 15px — never 11px chrome */
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.lede {
  margin: clamp(1rem, 2.4vh, 1.5rem) auto 0;
  font-size: clamp(1.375rem, 3.2vw, 1.9rem);
  font-weight: 450;
  letter-spacing: -0.012em;
  line-height: 1.3;
  max-width: 24ch;
  text-wrap: balance;
}

.sub {
  margin: clamp(0.75rem, 1.6vh, 1.1rem) auto 0;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--muted);
  max-width: 42ch;
  text-wrap: balance;
}

/* ---- three blocks: hairlines, not cards ---- */

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--hair);
  padding-top: clamp(1.5rem, 3vh, 2.25rem);
}

.three article {
  display: flex;
  flex-direction: column;      /* so the .go lines sit on one baseline across columns */
}

.three article + article {
  border-left: 1px solid var(--hair);
  padding-left: clamp(1.75rem, 4vw, 3rem);
}

.three h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.three p {
  margin: 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.125rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
}

.three strong { font-weight: 650; }

/* the two blocks that own a site say so — Founder OS has none, stays plain */

.three .go {
  margin: auto 0 0;
  padding-top: clamp(0.4rem, 1.1vh, 0.75rem);
  font-size: 1rem;
  line-height: 1.4;
}

.three .go a {
  display: inline-block;
  padding: 0.35rem 0;          /* touch target, not decoration */
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.three .go a span {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.three .go a:hover { border-bottom-color: var(--accent); }
.three .go a:hover span { transform: translateX(0.25rem); }

/* ---- doors: the product. Big labels, hairline rows, one solid action chip ---- */

.ask {
  margin: 0 0 clamp(0.5rem, 1.4vh, 1rem);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  font-weight: 550;
  letter-spacing: -0.01em;
}

.doors ol {
  --door-pad: clamp(0.5rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.doors li { border-bottom: 1px solid var(--hair); }

.doors li a {           /* rows only — the mailnote link lives in this section too */
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  padding: clamp(0.95rem, 2.2vh, 1.35rem) var(--door-pad);
  margin-inline: calc(-1 * var(--door-pad));
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 220ms ease;
}

.doors .idx {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.doors .label {
  flex: 1;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
  padding-bottom: 3px;
}

.doors .arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--accent);
  transition: background-color 240ms ease, color 240ms ease,
              transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.doors li a:hover,
.doors li a:focus-visible { background-color: var(--accent-soft); }

.doors li a:hover .label,
.doors li a:focus-visible .label { background-size: 100% 2px; }

.doors li a:hover .arrow,
.doors li a:focus-visible .arrow {
  background-color: var(--accent);
  color: var(--paper);
  transform: translateX(0.35rem);
}

.mailnote {
  margin: clamp(1rem, 2.2vh, 1.5rem) 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.mailnote a {
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 55, 149, 0.35);
}

.mailnote a:hover { border-bottom-color: var(--accent); }

/* ---- foot ---- */

.foot {
  border-top: 1px solid var(--hair);
  padding-top: clamp(1.1rem, 2.4vh, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
}

.foot nav { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.5rem); }

.foot nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease;
}

.foot nav a span { font-weight: 450; color: var(--muted); }
.foot nav a:hover,
.foot nav a:hover span { color: var(--accent); }

.fine {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

/* ---- focus ---- */

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

/* ---- entrance: staggered, once, cheap ---- */

.head, .three, .doors, .foot {
  animation: rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.head  { animation-delay:  60ms; }
.three { animation-delay: 200ms; }
.doors { animation-delay: 320ms; }
.foot  { animation-delay: 440ms; }

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

/* ---- mobile ---- */

@media (max-width: 720px) {
  body { place-items: start; }

  .head { text-align: left; }
  .lede { margin-inline: 0; max-width: none; }
  .sub  { margin-inline: 0; }

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

  .three article { padding: clamp(1rem, 3.5vw, 1.4rem) 0; }

  .three article + article {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
  }

  .three p { max-width: none; }

  .doors .arrow { width: 2.5rem; height: 2.5rem; }

  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
  .orb { transform: scale(1); opacity: 0.9; }
}
