/* ---------- reset ---------- */

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

html {
  height: 100%;
  line-height: 1.5;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

svg { display: block; }
a { color: inherit; }

/* ---------- palette ---------- */

:root {
  --bw: #0C0D0F;
  --wb: #F4F4F1;
  --main: #C9CDD3;
  --alt: #8A8F98;
  --line: #2A2C31;
  --accent: #ECECE7;
  --on-accent: #15181D;
  --lake: #488785;

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, monospace;

  --serif-scale: 1.1;
}

/* ---------- page ---------- */

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bw);
  color: var(--main);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 1 0%; }

main, section[id] { scroll-margin-top: 4rem; }

.wrap {
  max-width: 45rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-bottom: 6rem; }

/* ---------- type ---------- */

.title-hero,
.title-section,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--wb);
}

.title-hero,
.title-section {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.title-hero    { font-size: calc(2.25rem  * var(--serif-scale)); }
.title-section { font-size: calc(1.875rem * var(--serif-scale)); }

h3 {
  font-size: calc(1.25rem * var(--serif-scale));
  line-height: 1.75rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--wb);
}

.lede {
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--main);
}

.section-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--alt);
}

.roles {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.bright { color: var(--wb); }
.muted  { color: var(--alt); }

.footer-note {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--alt);
}

.link-quiet {
  cursor: pointer;
  color: var(--main);
  text-decoration: underline;
  text-decoration-color: var(--alt);
  text-underline-offset: 2px;
  transition: color 150ms, text-decoration-color 150ms;
}

.link-quiet:hover {
  color: var(--wb);
  text-decoration-color: var(--main);
}

/* ---------- button ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: all 200ms;
}

.btn-primary:hover {
  background: var(--lake);
  color: #fff;
  transform: translateY(-0.125rem);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:focus { outline: none; }

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- hero and its flock ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-inner {
  padding-block: 8rem;
  text-align: center;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  color: var(--main);
}

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

.rule {
  width: 4rem;
  border-top: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

.org {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.org-body { flex: 1 1 0%; }

.mark {
  width: 4rem;
  height: 4rem;
  color: var(--wb);
}

/* ---------- spacing ---------- */

.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-9  { margin-top: 2.25rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-4  { margin-bottom: 1rem; }

/* ---------- 404 ---------- */

.notice {
  padding-block: 7rem;
  text-align: center;
}

.notice .title-hero { text-wrap: balance; }

.notice .lede { max-width: 32rem; color: var(--alt); }

.notice-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.notice .actions { justify-content: center; }

/* ---------- the one breakpoint ---------- */

@media (min-width: 640px) {
  .title-hero    { font-size: calc(3rem    * var(--serif-scale)); }
  .title-section { font-size: calc(2.25rem * var(--serif-scale)); }

  .hero-inner { padding-block: 11rem; }
  .notice     { padding-block: 10rem; }

  .org { flex-direction: row; }
}
