@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2");
}

:root {
  --ink: #15332a;
  --ink-soft: #2c4d42;
  --paper: #f5f1e6;
  --card: #fffdf8;
  --line: #d9d1bd;
  --muted: #5a6a62;
  --accent: #e4572e;
  --accent-dark: #b8401b;
  --butter: #f3c64b;
  --mint: #d5e8dc;
  --radius: 18px;
  --shadow: 6px 6px 0 rgba(21, 51, 42, 0.14);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 51, 42, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 7vw, 58px);
}

h2 {
  font-size: clamp(26px, 4.6vw, 38px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1.5px solid var(--ink);
  background: rgba(245, 241, 230, 0.94);
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.home-mark {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
  padding: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
}

.home-mark i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
}

.home-mark i:nth-child(5) {
  background: var(--accent);
}

.home-mark i:nth-child(3),
.home-mark i:nth-child(7) {
  background: var(--butter);
}

.nav-toggle {
  display: none;
  padding: 9px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mint);
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.cta::after {
  width: 10px;
  height: 10px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.cta:hover {
  background: var(--accent-dark);
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 8vw, 84px) 0 40px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--butter);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
}

.matrix {
  position: relative;
  padding: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.matrix__label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.matrix__grid span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px);
}

.matrix__grid span:nth-child(odd) {
  background: var(--mint);
}

.matrix__grid .is-open {
  background: var(--butter) !important;
  animation: tile-pulse 2.4s ease-in-out infinite;
}

.matrix__hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

@keyframes tile-pulse {
  50% {
    transform: scale(0.93);
  }
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.facts div {
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.facts p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 26px;
}

.section-heading p {
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .section-heading {
  margin-right: auto;
  margin-left: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card p {
  flex: 1;
  color: var(--muted);
}

.card a {
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 20px 0;
  padding: clamp(26px, 5vw, 46px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}

.band .eyebrow {
  color: var(--ink);
}

.band p {
  color: #d6e2da;
}

.band a {
  color: var(--butter);
  font-weight: 800;
}

/* Article pages */
.article {
  max-width: 760px;
  padding: clamp(36px, 7vw, 70px) 0 40px;
}

.article h2 {
  margin-top: 34px;
  font-size: clamp(24px, 4vw, 32px);
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

.note {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1.5px solid var(--ink);
  border-left-width: 8px;
  border-radius: 14px;
  background: var(--card);
}

.note p:last-child {
  margin: 0;
}

.puzzle {
  margin: 24px 0;
  padding: 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.puzzle h2 {
  margin-top: 0;
}

.puzzle .tip {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-list details {
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.company {
  padding: 14px 16px;
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
  background: var(--card);
}

.company img {
  display: block;
  width: 100%;
  max-width: 343px;
  height: auto;
  mix-blend-mode: multiply;
}

.more {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1.5px solid var(--line);
}

.more ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.more ul a {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 30px 20px 26px;
  border-top: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.footer p {
  max-width: 760px;
  margin: 0 auto;
}

.footer__company {
  display: block;
  width: 100%;
  max-width: 329px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

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

/* Reveal motion */
.reveal {
  animation: rise 0.6s ease both;
}

.reveal-2 {
  animation-delay: 0.12s;
}

.reveal-3 {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .matrix {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px 20px 18px;
    border-bottom: 1.5px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .cards,
  .facts {
    grid-template-columns: 1fr;
  }

  .cta {
    width: 100%;
  }

  .hero {
    gap: 28px;
  }

  .matrix {
    max-width: 280px;
    padding: 18px;
  }
}

/* Cookiebot mobile layout */
@media (max-width: 600px) {
  div#CybotCookiebotDialog {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 75dvh !important;
    margin: 0 !important;
    transform: none !important;
    scale: 1 !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
  }
}
