:root {
  --bg: #faf7f1;
  --ink: #14130f;
  --muted: #8b857a;
  --faint: #b3ada2;
  --hairline: rgba(20, 19, 15, 0.1);
  --hover: rgba(20, 19, 15, 0.035);
  --hover-strong: rgba(20, 19, 15, 0.08);
  --chip-bg: rgba(20, 19, 15, 0.06);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --ink: #f2ede4;
    --muted: #8f8a80;
    --faint: #6b665e;
    --hairline: rgba(242, 237, 228, 0.12);
    --hover: rgba(242, 237, 228, 0.045);
    --hover-strong: rgba(242, 237, 228, 0.1);
    --chip-bg: rgba(242, 237, 228, 0.08);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}

@media (max-width: 480px) {
  .page {
    padding-top: 56px;
  }
}

/* Masthead */

.wordmark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark sup {
  font-size: 8px;
  font-weight: 400;
  vertical-align: super;
  margin-left: 1px;
}

/* Intro */

.intro {
  margin-top: 72px;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.headline-muted {
  color: var(--muted);
}

.lede {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
}

/* Sections */

.section {
  margin-top: 72px;
}

.label {
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  margin-bottom: 8px;
}

/* Products */

.products {
  list-style: none;
  display: grid;
  gap: 8px;
}

.product {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--hover);
  transition: background-color 0.15s ease;
}

.product:hover {
  background: var(--hover-strong);
}

.product-name {
  font-weight: 500;
  white-space: nowrap;
}

.product-desc {
  color: var(--muted);
  flex: 1;
  min-width: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  color: var(--faint);
}

.product:hover .arrow {
  color: var(--ink);
  transform: translate(1px, -1px);
}

.arrow {
  transition: transform 0.15s ease, color 0.15s ease;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--chip-bg);
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .product {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .product-desc {
    flex-basis: 100%;
    order: 3;
  }
}

/* Prose */

.prose {
  max-width: 54ch;
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

/* Link lists */

.links {
  list-style: none;
}

.links li {
  padding: 3px 0;
}

.links a,
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}

.links a:hover,
.prose a:hover {
  border-bottom-color: var(--ink);
}

/* Footer */

.footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--faint);
}

.fineprint {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.fineprint-links {
  display: flex;
  gap: 16px;
}

.fineprint a {
  color: var(--faint);
  text-decoration: none;
}

.fineprint a:hover {
  color: var(--ink);
}

/* Document pages (privacy, terms) */

.doc {
  margin-top: 64px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.doc .doc-note {
  color: var(--muted);
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 36px 0 8px;
}

.doc p,
.doc li {
  color: var(--muted);
  margin-bottom: 10px;
}

.doc strong {
  color: var(--ink);
  font-weight: 500;
}

.doc ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.doc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.doc a:hover {
  border-bottom-color: var(--ink);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .masthead,
  .intro,
  .section,
  .footer {
    animation: rise 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }

  .intro { animation-delay: 0.05s; }
  .section:nth-of-type(2) { animation-delay: 0.1s; }
  .section:nth-of-type(3) { animation-delay: 0.15s; }
  .section:nth-of-type(4) { animation-delay: 0.2s; }
  .footer { animation-delay: 0.25s; }

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