@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #12161d;
  --slate: #56606f;
  --line: #d8dde4;
  --cobalt: #2440c9;
  /* Each product keeps its own colour; pages set --accent to theirs. */
  --recorder: #d93025;
  --bull: #e8a030;
  --accent: var(--cobalt);
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.wrap {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0;
}

.lead {
  max-width: 34rem;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--slate);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 1rem;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  gap: 1.6rem;
  padding-block: clamp(2.5rem, 9vw, 6.5rem) clamp(2.5rem, 7vw, 5rem);
}

.hero-product {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 3rem;
}

.hero-product h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem);
  max-width: 16ch;
}

.hero-text {
  display: grid;
  gap: 1.4rem;
}

.kind {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--slate);
  font-size: 1rem;
  font-weight: 600;
}

.kind img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.93);
}

/* Products on the home page: rows, each tinted by its own product */

.shelf {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.shelf > h2 {
  padding-bottom: 1.2rem;
}

.product {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6rem 2rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}

.product:last-child {
  border-bottom: 1px solid var(--line);
}

.product > img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.95rem;
}

.product-text {
  display: grid;
  gap: 0.45rem;
}

.product-text .what {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
}

.product-text p {
  max-width: 32rem;
}

.product-text .actions {
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Specimens: a small live piece of each product, built in markup */

.specimen {
  width: 17rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.3;
}

.popup {
  display: grid;
  gap: 0.7rem;
}

.popup .record {
  padding: 0.7rem;
  border-radius: 0.6rem;
  background: var(--recorder);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.popup .left {
  color: var(--slate);
  text-align: center;
}

.popup .option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate);
}

.popup .box {
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--slate);
  border-radius: 0.2rem;
}

.popup .box.on {
  border-color: #1e8e3e;
  background: #1e8e3e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.guess {
  display: grid;
  gap: 0.9rem;
  background: #fbf7ee;
  border-color: #e6dcc6;
}

.guess .digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.guess .digits span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 0.7rem;
  background: #f1eada;
  font-size: 1.7rem;
  font-weight: 800;
}

.guess .answer {
  color: var(--slate);
  font-weight: 600;
  text-align: center;
}

/* Product pages */

.section {
  display: grid;
  gap: 1.3rem;
  padding-block: clamp(2rem, 5vw, 3.2rem);
  border-top: 1px solid var(--line);
}

.section > p,
.section > ul,
.section > ol {
  max-width: 40rem;
}

.section ul,
.section ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.3rem;
}

.prices {
  display: grid;
  max-width: 44rem;
}

.price {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.3rem 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.price:first-child {
  border-top: 1px solid var(--line);
}

.price .amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.note {
  color: var(--slate);
  font-size: 1rem;
}

/* Long text: the privacy policy */

.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.prose h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3rem);
}

.prose h2 {
  padding-top: 1.4rem;
  font-size: 1.5rem;
}

.prose ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.3rem;
}

.prose code {
  font-size: 0.92em;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-block: 2rem 3rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

@media (max-width: 46rem) {
  body {
    font-size: 1.0625rem;
  }

  .hero-product {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }

  .product {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 1.1rem;
  }

  .product > img {
    width: 3.25rem;
    height: 3.25rem;
    align-self: start;
  }

  .product .specimen {
    grid-column: 1 / -1;
  }

  .specimen {
    width: min(100%, 19rem);
  }

  .price {
    grid-template-columns: minmax(0, 1fr);
  }
}
