@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/azeret-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --counter: #D5DCD3;
  --text: #2A2D34;
  --text-soft: #444A51;
  --text-faint: #50565D;
  --line: #B7C0B5;
  --field: #FDFDFA;
  --field-border: #2A2D34;
  --placeholder: #666B73;
  --chip-border: #6A726A;
  --button: #2A2D34;
  --button-hover: #40444C;
  --button-text: #FDFDFA;
  --focus: #2A2D34;
  --bad: #8F2424;

  --paper: #FDFDFA;
  --ink: #2A2D34;
  --ink-faded: #666B73;
  --rule: #BFC3BA;
  --stamp: #1E7B4F;
  --shadow-near: rgb(38 52 40 / .14);
  --shadow-far: rgb(38 52 40 / .18);

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --counter: #1C221F;
    --text: #E6EAE4;
    --text-soft: #BCC3BA;
    --text-faint: #A3ABA2;
    --line: #38423C;
    --field: #262D29;
    --field-border: #8C968C;
    --placeholder: #939C92;
    --chip-border: #7F897F;
    --button: #E6EAE4;
    --button-hover: #FFFFFF;
    --button-text: #1C221F;
    --focus: #E6EAE4;
    --bad: #F1A49C;

    --paper: #EFEEE8;
    --ink-faded: #5C6169;
    --rule: #B6BAB0;
    --stamp: #1B7048;
    --shadow-near: rgb(0 0 0 / .35);
    --shadow-far: rgb(0 0 0 / .45);
  }
}

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

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

body {
  margin: 0;
  background: var(--counter);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

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

.sr-only, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-head { padding-block: 32px 0; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "slip" "explain";
  row-gap: 44px;
  padding-block: 44px 80px;
}
.intro { grid-area: intro; }
.slip { grid-area: slip; }
.explain { grid-area: explain; }

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -.032em;
  font-weight: 700;
  max-width: 12ch;
}

.lede {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-soft);
}

.cta { margin-top: 34px; }
.signup { max-width: 460px; }
.signup-row { display: flex; gap: 8px; }

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.signup input[type="email"]::placeholder { color: var(--placeholder); opacity: 1; }
.signup input[type="email"]:focus-visible { outline-offset: 2px; }
.signup input[aria-invalid="true"] { border-color: var(--bad); }

.signup button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.signup button:hover { background: var(--button-hover); }
.signup button:disabled { cursor: progress; }

.msg { margin-top: 10px; font-size: 15px; font-weight: 500; }
.msg:empty { display: none; }
.msg.is-bad, .survey-status.is-bad { color: var(--bad); }

.fine { margin-top: 12px; font-size: 15px; color: var(--text-faint); }

.slip {
  width: 100%;
  max-width: 400px;
  padding-top: 14px;
  clip-path: inset(0 -60px -80px -60px);
}

.paper-wrap {
  rotate: 1.2deg;
  filter: drop-shadow(0 1px 1px var(--shadow-near)) drop-shadow(0 14px 18px var(--shadow-far));
}

.paper {
  padding: 28px 26px 46px;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.75 var(--mono);
  font-variant-numeric: tabular-nums;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
}

.r-head { margin-bottom: 18px; text-align: center; line-height: 1.5; }
.r-head b { display: block; font-size: 15px; font-weight: 600; }
.r-note { display: block; font-size: 13px; color: var(--ink-faded); }

.r-table { width: 100%; border-collapse: collapse; }
.r-table th { padding: 0; font-weight: inherit; text-align: left; }
.r-table td { padding: 0 0 0 16px; text-align: right; white-space: nowrap; vertical-align: top; }

.r-table tbody + tbody { border-top: 1.5px dashed var(--rule); }
.r-out tr:last-child > * { padding-bottom: 12px; }
.r-less > * { color: var(--ink-faded); }

.r-total { font-size: 17px; font-weight: 650; }
.r-total th, .r-total td { padding-block: 12px; }

.r-cats { font-size: 13.5px; }
.r-cats td { color: var(--ink-faded); }
.r-group th { padding-top: 12px; color: var(--ink-faded); font-size: 13px; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 3px 11px 4px 10px;
  border: 2px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font-size: 12.5px;
  font-weight: 600;
  rotate: -4deg;
  transform-origin: left center;
}
.stamp::after {
  content: "";
  width: 5px;
  height: 10px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

@media (prefers-reduced-motion: no-preference) {
  .paper-wrap { animation: feed 1.5s cubic-bezier(.3, .55, .25, 1) .3s both; }
}

@keyframes feed {
  from { translate: 0 calc(-100% - 14px); rotate: 0deg; }
  80% { translate: 0 0; rotate: 0deg; }
  to { translate: 0 0; rotate: 1.2deg; }
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.005em;
}

.note { margin-top: 28px; max-width: 46ch; }
.note p { margin-top: 6px; color: var(--text-soft); }

.steps { padding-block: 8px 72px; }
.step-list {
  display: grid;
  gap: 36px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step-list li { counter-increment: step; max-width: 44ch; }
.step-list li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--text-faint);
}
.step-list p { margin-top: 6px; color: var(--text-soft); }

.privacy { padding-block: 24px 72px; }
.privacy h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.14;
  font-weight: 650;
  letter-spacing: -.025em;
}
.privacy p { margin-top: 18px; max-width: 50ch; font-size: 19px; color: var(--text-soft); }

.end {
  display: grid;
  gap: 64px;
  padding-block: 0 72px;
}

.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 58ch; padding-bottom: 18px; color: var(--text-soft); }

.join-lede { margin-top: 10px; color: var(--text-soft); }
.join .cta { margin-top: 24px; }

.joined-title { font-size: 20px; font-weight: 700; }
.joined-title:focus-visible { outline-offset: 4px; }
.joined-note { margin-top: 4px; color: var(--text-soft); overflow-wrap: anywhere; }
.survey { margin-top: 22px; }
.survey-intro { font-size: 15px; color: var(--text-faint); }

.ask { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.ask legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-weight: 600; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--chip-border);
  border-radius: 999px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--button); background: var(--button); color: var(--button-text); }
.survey-status { margin-top: 14px; font-size: 15px; font-weight: 500; }
.survey-status:empty { display: none; }

.site-foot { padding-block: 28px 44px; font-size: 15px; color: var(--text-faint); }

@media (max-width: 480px) {
  .wrap { padding-inline: 20px; }
  .signup-row { flex-direction: column; }
  .paper { padding: 24px 18px 42px; font-size: 13px; }
  .r-table td { padding-left: 12px; }
  .r-total { font-size: 16px; }
  .r-cats { font-size: 13px; }
}

@media (min-width: 820px) {
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

@media (min-width: 920px) {
  .site-head { padding-top: 40px; }
  .top {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    grid-template-areas: "intro slip" "explain slip";
    column-gap: clamp(56px, 7vw, 104px);
    row-gap: 88px;
    padding-block: 72px 104px;
  }
  .slip { align-self: start; max-width: 440px; }
  .paper { padding: 32px 30px 50px; font-size: 15px; }
  .r-head b { font-size: 16px; }
  .r-note, .r-group th { font-size: 14px; }
  .r-total { font-size: 18px; }
  .r-cats { font-size: 14.5px; }
  .stamp { font-size: 13px; }
  .steps { padding-block: 16px 96px; }
  .privacy { padding-block: 40px 96px; }
  .end { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; padding-bottom: 88px; }
}

@media (min-width: 920px) and (min-height: 760px) {
  .slip { position: sticky; top: 24px; }
}
