/* Deliberate Software — graphite ink on warm paper, reversed in dark mode. */

:root {
  --graphite: #27282b;
  --warm: #fbf8f3;
  --ink: var(--graphite);
  --paper: var(--warm);
  --tint: #f3eee5;
  --muted: #5c5d61;
  --line: #dcd7cf;
  --inv-muted: #bdb9b2;
  --inv-line: #6a6b70;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --max: 1120px;
  --pad: 32px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: var(--warm);
    --paper: var(--graphite);
    --tint: #313236;
    --muted: #bdb9b2;
    --line: #4a4b50;
    --inv-muted: #5c5d61;
    --inv-line: #b5b0a8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
@media (max-width: 560px) { :root { --pad: 20px; } }

/* ---------- small caps labels ---------- */

.eyebrow, .byline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { letter-spacing: 0.34em; }
.eyebrow--tight { letter-spacing: 0.3em; }
.eyebrow--status { letter-spacing: 0.2em; }
.eyebrow--number { letter-spacing: 0.2em; text-transform: none; }
.byline { letter-spacing: 0.42em; padding-left: 0.42em; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 500; cursor: pointer;
}
.button--small { min-height: 44px; padding: 0 18px; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button--inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }

/* ---------- logos ---------- */

.mark {
  display: block; flex: none;
  width: 112px; height: 112px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(251, 248, 243, 0.9);
  box-shadow: 0 0 0 1px rgba(39, 40, 43, 0.22), 0 0 18px 2px rgba(39, 40, 43, 0.2);
}
.mark__art { display: block; width: 100%; height: 100%; }

/* Animation start states apply only when JavaScript is running,
   so without it the logos simply show their finished state. */
.mark--journey .glow { opacity: 0.55; }
.js .mark--journey .sun  { transform: translateY(34px); }
.js .mark--journey .glow { transform-origin: 50px 66px; transform: scale(0.4); opacity: 0; }
.js .mark--journey .hz   { stroke-dasharray: 52; stroke-dashoffset: 52; }
.mark--journey.play .sun  { animation: journey-rise 3600ms cubic-bezier(0.22, 0.61, 0.30, 1) 0.2s forwards; }
.mark--journey.play .glow { animation: journey-glow 3840ms ease-out 0.2s forwards; }
.mark--journey.play .hz   { animation: journey-draw 2160ms linear 0.2s forwards; }
@keyframes journey-rise { from { transform: translateY(34px); } to { transform: translateY(0); } }
@keyframes journey-glow { 0% { opacity: 0; transform: scale(0.4); } 45% { opacity: 0; transform: scale(0.5); } 100% { opacity: 0.55; transform: scale(1); } }
@keyframes journey-draw { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 0; } }

.js .mark--graphite .p-pencil { transform: translateY(76px); }
.js .mark--graphite .p-glow   { transform-origin: 50px 34px; transform: scale(0.4); opacity: 0; }
.js .mark--graphite .p-hz     { stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.mark--graphite .p-glow { opacity: 0.45; }
.mark--graphite.play .p-pencil { animation: graphite-rise 3600ms cubic-bezier(0.22, 0.61, 0.30, 1) 0.2s forwards; }
.mark--graphite.play .p-glow   { animation: graphite-glow 3840ms ease-out 0.2s forwards; }
.mark--graphite.play .p-hz     { animation: graphite-draw 2160ms linear 0.2s forwards; }
@keyframes graphite-rise { from { transform: translateY(76px); } to { transform: translateY(0); } }
@keyframes graphite-glow { 0% { opacity: 0; transform: scale(0.4); } 45% { opacity: 0; transform: scale(0.5); } 100% { opacity: 0.45; transform: scale(1); } }
@keyframes graphite-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .mark--journey .sun, .js .mark--graphite .p-pencil { transform: none; animation: none; }
  .js .mark--journey .hz, .js .mark--graphite .p-hz { stroke-dashoffset: 0; animation: none; }
  .js .mark--journey .glow { opacity: 0.55; transform: none; animation: none; }
  .js .mark--graphite .p-glow { opacity: 0.45; transform: none; animation: none; }
}

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

.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px; height: 34px;
  position: relative; top: -3px;  /* the name has no descenders: center on the caps */
  box-shadow: 0 0 0 1px rgba(39, 40, 43, 0.22), 0 0 6px 1px rgba(39, 40, 43, 0.18);
}
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }

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

.hero { padding-top: 120px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 32px; }
.hero--short { padding-top: 96px; padding-bottom: 120px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero__title em { font-style: italic; }
.hero__lead { font-size: 20px; max-width: 34em; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
@media (max-width: 560px) { .hero { padding-top: 72px; padding-bottom: 72px; } }

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

.section { border-top: 1px solid var(--line); }
.section > .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -0.015em; }
.section__title--large { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; max-width: 20ch; }

/* ---------- app cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 40px 40px;
  display: flex; flex-direction: column; gap: 28px;
  scroll-margin-top: 24px;
}
@media (max-width: 560px) { .card { padding: 36px 24px 28px; } }
.card__brand {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 0 32px; border-bottom: 1px solid var(--line);
}
.card__name { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; padding-top: 22px; }
.card__copy { display: flex; flex-direction: column; gap: 12px; }
.card__headline { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; }
.card__body p { color: var(--muted); }
.card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; }
.card__actions .button { min-height: 44px; padding: 0 22px; }

.reflection { margin: 0; border-radius: 14px; background: var(--tint); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.reflection__quote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }

.graph { display: block; width: 100%; height: auto; color: var(--ink); }
.graph .paper-fill { fill: var(--paper); }
.graph__labels { font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; }

/* ---------- principles ---------- */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.principle { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 20px; }
.principle h3 { font-size: 20px; font-weight: 600; }
.principle p { color: var(--muted); }

/* ---------- waitlist ---------- */

.waitlist { background: var(--ink); color: var(--paper); scroll-margin-top: 0; }
.waitlist__inner {
  padding-top: 96px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.waitlist__intro { display: flex; flex-direction: column; gap: 14px; max-width: 28em; }
.waitlist__intro p, .waitlist label, .interests legend { color: var(--inv-muted); }
.waitlist__heading { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
.waitlist__form { display: flex; flex-direction: column; gap: 20px; flex: 0 1 460px; min-width: 0; }
.interests { margin: 0; padding: 0; border: 0; }
.interests legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
.interests__options { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist .interest {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid var(--inv-line); border-radius: 999px;
  color: var(--paper); cursor: pointer;
}
.interest input { width: 18px; height: 18px; margin: 0; accent-color: var(--paper); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; }
.field__row { display: flex; flex-wrap: wrap; gap: 10px; }
.field__row input {
  flex: 1 1 220px; min-width: 0; min-height: 48px;
  padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--inv-line); background: transparent; color: var(--paper);
  font: inherit;
}
.field__row input::placeholder { color: var(--inv-muted); }
.waitlist :focus-visible { outline-color: var(--paper); }

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

.footer {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.footer__brand { display: flex; flex-direction: column; gap: 2px; }
.brand--footer { font-size: 20px; font-weight: 400; gap: 10px; color: var(--ink); }
.brand--footer .mark { width: 28px; height: 28px; top: -2px; }
.footer__tagline {
  font-weight: 600; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  padding-left: 40.5px;  /* lines up with the D in the name */
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
