/* The static pages (landing, policy, terms, support, 404). Tokens from design/dibs.css. No JS, and no
   inline styles, so the pages run under a CSP of style-src 'self'. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/MartianMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --volt: #ccff3d;
  --volt-deep: #b7ee1f;
  --ink: #0f110e;
  --ink2: #50554b;
  --ink3: #7a7f73;
  --ground: #f2f3ee;
  --card: #ffffff;
  --fill: #e7e9e1;
  --line: #dcdfd5;
  --text-color: var(--ink);
  --link: var(--ink);
  --display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0c0a;
    --card: #171915;
    --fill: #22251f;
    --line: #30342b;
    --text-color: #f4f6ef;
    --ink2: #a9aea1;
    --ink3: #a9aea1;
    --link: var(--volt);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text-color);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

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

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.site-header {
  padding: max(20px, env(safe-area-inset-top)) 0 12px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text-color);
  text-decoration: none;
}

main {
  flex: 1;
  padding: 16px 0 48px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  font-stretch: 80%;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

h2 {
  font-weight: 700;
  font-stretch: 92%;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* landing */
.hero {
  background: var(--volt);
  color: var(--ink);
  border-radius: 28px;
  padding: 32px 24px 28px;
}

.hero .lede {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.4;
  color: #2a2e26;
  max-width: 32em;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 17px;
  text-decoration: none;
}

.store.soon {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(15, 17, 14, 0.3);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border-radius: 24px;
  padding: 20px 20px 22px;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
}

.steps p {
  margin-top: 6px;
  color: var(--ink2);
}

/* text pages and the 404 */
.page h1 {
  font-size: clamp(36px, 9vw, 56px);
}

.page p {
  margin-top: 16px;
}

.page .home {
  font-weight: 600;
}

/* policy, terms and support */
.prose h1 {
  margin-bottom: 8px;
}

.prose h2 {
  margin-top: 32px;
}

.prose h2 + p,
.prose h2 + ul {
  margin-top: 8px;
}

.prose p {
  max-width: 38em;
}

.prose ul {
  margin: 16px 0 0;
  padding-left: 1.25em;
  max-width: 38em;
}

.prose li {
  margin-top: 8px;
}

.prose .draft {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.prose .meta {
  margin-top: 12px;
  color: var(--ink2);
  font-size: 15px;
}

/* footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .hero {
    padding: 56px 48px 48px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
