/* Archivo, under the SIL Open Font License (fonts/OFL-archivo.txt), served from l11s.com itself so
   no visit reaches another company. */
@font-face {
  font-family: 'Archivo';
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  font-weight: 300 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0b0c;
  --ink: #ededea;
  --muted: #8b8a85;
  --faint: #55544f;
  --line: #222224;
  --accent: #c9a37b;
  --sans: 'Archivo', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything, too faint to notice as such. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: url(/noise.svg);
  opacity: 0.045;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.22em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.bar,
main,
.foot {
  width: 100%;
  max-width: calc(1240px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mark .dot {
  fill: var(--accent);
}

.mark rect {
  transform-box: view-box;
  transform-origin: 50% 87.5%;
  animation: grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mark rect:nth-child(2) {
  animation-delay: 0.08s;
}

.mark rect:nth-child(3) {
  animation-delay: 0.16s;
}

.mark .dot {
  animation: rise 0.6s 0.3s ease-out both;
}

@keyframes grow {
  from {
    transform: scaleY(0.15);
  }
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current] {
  color: var(--ink);
}

/* Hero */

.hero {
  padding-top: clamp(64px, 15vh, 200px);
  padding-bottom: clamp(72px, 14vh, 160px);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h1 .quiet {
  color: var(--faint);
}

/* The hero's lines rise in one after another. */
.hero h1 span,
.hero .intro {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 span:nth-child(2) {
  animation-delay: 0.12s;
}

.hero .intro {
  animation-delay: 0.28s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}

.intro {
  margin: clamp(32px, 5vw, 56px) 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Blocks: a label on the left, rows on the right, hairlines between. */

.block {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px 48px;
  padding-block: 40px 72px;
  border-top: 1px solid var(--line);
}

.label {
  margin: 0;
  font: 500 12px/1.9 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows > li,
.rows > div {
  display: grid;
  grid-template-columns: 3em 13em 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.rows > :first-child {
  padding-top: 0;
}

.rows > div {
  grid-template-columns: 13em 1fr;
}

.num {
  font: 500 12px/1 var(--mono);
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.25s;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rows > li p {
  transition: color 0.25s;
}

/* A row under the pointer comes forward. */
@media (hover: hover) {
  .rows > li:hover .num {
    opacity: 1;
  }

  .rows > li:hover h3 {
    transform: translateX(6px);
  }

  .rows > li:hover p {
    color: var(--ink);
  }
}

.rows p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

dt {
  font: 500 12px/1.9 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

dd {
  margin: 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* Privacy */

.prose {
  max-width: calc(46rem + 2 * var(--gutter));
  padding-top: clamp(64px, 12vh, 136px);
  padding-bottom: 80px;
}

.prose h1 {
  font-size: clamp(44px, 6vw, 72px);
}

.prose .intro {
  margin-bottom: 24px;
}

.prose h2 {
  margin: 40px 0 8px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.prose p a {
  color: var(--ink);
}

/* Footer */

.foot {
  margin-top: auto;
  overflow: hidden;
}

.foot-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font: 500 12px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-line a {
  text-decoration: none;
}

.wordmark {
  margin: 0 0 -0.04em;
  /* As wide as the content: the word sets about 2.75 times its size. */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 2.75), 450px);
  font-weight: 700;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: #151517;
  user-select: none;
}

/* Where the browser supports scroll-driven animations, the wordmark fills in as it comes into view. */
@supports (animation-timeline: view()) {
  .wordmark {
    animation: emerge linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  @keyframes emerge {
    from {
      color: var(--bg);
      transform: translateY(12%);
    }
  }
}

@media (max-width: 900px) {
  .block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px 56px;
  }

  .rows > li {
    grid-template-columns: 2.5em 1fr;
  }

  .rows > li p {
    grid-column: 2;
  }

  .rows > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .bar {
    padding-block: 20px;
  }

  nav {
    gap: 16px;
    font-size: 13px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
