/* Eremitech: answer-sheet direction.
   Ultramarine ballpoint blue, graphite pencil, white paper. One family, self-hosted. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  --blue: #2a3de0;
  --blue-deep: #1d2bb0;
  --blue-tint: #e8ebfc;
  --graphite: #17181c;
  --grey: #5a5e68;
  --paper: #ffffff;
  --sheet: #f6f7fb;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }

/* links: underline sweeps in on hover */
.link {
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .25s ease;
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #ffb400; outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--graphite); padding: .6rem 1rem; }
.skip:focus { left: 0; z-index: 10; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; overflow: hidden; }
.site-header { padding-block: 1.75rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.wordmark svg { width: 1.05rem; height: 1.05rem; display: block; }
.site-header nav { display: flex; gap: 2rem; font-size: 1rem; font-weight: 500; }

.hero-body { padding-top: clamp(3.5rem, 9vw, 8rem); }
h1 {
  font-size: clamp(2.9rem, 8.6vw, 7rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700;
  max-width: 11.5ch;
}
.hero-lede { margin-top: 2.25rem; max-width: 34rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; color: #e3e7ff; }
.hero-actions { margin-top: 2.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem; }

.btn {
  display: inline-flex; align-items: center; min-height: 3.4rem; padding: 0 1.75rem;
  border-radius: 14px; background: #fff; color: var(--blue-deep);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-tint); }
.btn:active { transform: translateY(0); }
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: var(--blue-deep); }

/* the answer row: cropped by the edge of the hero */
.answers { display: block; width: 100%; height: auto; margin-top: clamp(3rem, 7vw, 6rem); }
.answers circle { fill: transparent; stroke: #fff; stroke-width: 5; }
.answers text { fill: #fff; font: 700 84px var(--font); text-anchor: middle; }
.answers .pick circle { animation: fill-in .5s ease 1.1s both; }
.answers .pick text { animation: ink-in .5s ease 1.1s both; }
@keyframes fill-in { to { fill: #fff; } }
@keyframes ink-in { to { fill: var(--blue); } }

/* ---------- Content ---------- */
section.part { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.muted { color: var(--grey); }

.how h2 { max-width: 16ch; }
.steps { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.step { display: grid; gap: .75rem 2rem; }
.step .n { font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: .9; font-weight: 700; letter-spacing: -0.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.step p { color: var(--grey); max-width: 30rem; }
@media (min-width: 900px) {
  .step { grid-template-columns: 9rem 1fr 1fr; align-items: baseline; }
}

/* sample question */
.sample { background: var(--blue-tint); border-radius: 36px; padding: clamp(1.5rem, 5vw, 4.5rem); margin-inline: calc(var(--gutter) * -0.5); display: grid; gap: 3rem; }
.sample-intro p { margin-top: 1.25rem; max-width: 26rem; color: #3b4067; }
@media (min-width: 960px) { .sample { grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 5rem; } }

.sheet { background: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.sheet .subject { font-size: .95rem; font-weight: 600; color: var(--blue); }
.sheet .q { margin-top: .6rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 650; }
.choices { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .85rem; }
.choices li { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; line-height: 1.35; }
.bub {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--graphite); display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
}
.bub.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.source { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e3e5ee; font-size: 1rem; color: var(--grey); }
.source b { color: var(--graphite); font-weight: 650; }
.note { margin-top: 1.25rem; font-size: .9rem; color: #5b6086; }

/* early access */
.access .wrap { display: grid; gap: 2.5rem 6rem; align-items: end; }
.access h2 { max-width: 13ch; }
.access p { max-width: 30rem; margin-bottom: 2rem; color: var(--grey); }
@media (min-width: 900px) { .access .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #c9ccd6; padding-block: clamp(4rem, 8vw, 6.5rem) 2.5rem; }
.site-footer h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.foot-grid { display: grid; gap: 3rem 6rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contacts small { display: block; font-size: .95rem; color: #9aa0b0; margin-bottom: .15rem; }
.contacts a { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; }
.legal { margin-top: clamp(3rem, 7vw, 5rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .95rem; color: #9aa0b0; }
.legal a { color: #c9ccd6; }

/* ---------- Imprint ---------- */
.hero.slim .site-header { padding-block: 1.75rem; }
.doc { padding-block: clamp(3.5rem, 8vw, 6rem); }
.doc h1 { color: var(--graphite); font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: none; margin-bottom: 2.5rem; }
.facts { margin: 0; max-width: 46rem; display: grid; }
.facts > div { display: grid; gap: .1rem 2rem; padding-block: 1.05rem; border-top: 1px solid #e3e5ee; }
.facts > div:last-child { border-bottom: 1px solid #e3e5ee; }
.facts dt { color: var(--grey); font-size: 1rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--blue); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 13rem 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .answers .pick circle { animation: none; fill: #fff; }
  .answers .pick text { animation: none; fill: var(--blue); }
  .btn, .link { transition: none; }
}
