:root {
  --ink: #22262e;
  --muted: #5d6470;
  --paper: #fbf8f2;
  --panel: #fff;
  --primary: #d9483b;
  --primary-dark: #a8322a;
  --note: #f4c95d;
  --soft: #fbe7e3;
  --line: #e6ddd4;
  --grid: rgba(34, 38, 46, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5.4vw, 60px);
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
}

h3 {
  font-size: 20px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--note);
  outline-offset: 4px;
}

.shell {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  background: var(--panel);
}

.skip:focus {
  top: 10px;
}

.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 8px;
  background: var(--primary);
}

.brand-mark::after {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--note);
  content: "";
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: var(--note);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

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

.cta:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(2px, 2px);
}

.puzzle-art {
  position: relative;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--ink);
}

.puzzle-art__label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.puzzle-art__sequence {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.puzzle-art__sequence span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
}

.puzzle-art__sequence span:last-child {
  border-style: dashed;
  border-color: var(--primary);
  color: var(--primary);
}

.puzzle-art__note {
  position: absolute;
  right: -12px;
  bottom: -18px;
  max-width: 190px;
  margin: 0;
  padding: 12px 14px;
  background: var(--note);
  box-shadow: 2px 3px 0 rgba(34, 38, 46, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transform: rotate(3deg);
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.facts div {
  padding: 22px 24px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--panel);
}

.facts strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
}

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

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

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

.card {
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--panel);
}

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

.card a {
  color: var(--primary);
  font-weight: 800;
  text-underline-offset: 5px;
}

.card-tag {
  display: block;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 46px;
  border-radius: 18px;
  background: var(--ink);
  color: #f2eee8;
  box-shadow: 8px 8px 0 var(--primary);
}

.band a {
  color: var(--note);
}

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

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

.center {
  text-align: center;
}

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

.article-hero {
  max-width: 860px;
  padding: 56px 0 30px;
}

.article-hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 270px;
  align-items: start;
  gap: 60px;
  padding-bottom: 64px;
}

.article section {
  margin-bottom: 36px;
}

.article h2 {
  font-size: 27px;
}

.article p,
.article li {
  color: #3a3f48;
}

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

.example {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: var(--panel);
}

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

.example strong {
  color: var(--primary);
}

.sidebar {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--panel);
}

.sidebar h2 {
  font-size: 21px;
}

.sidebar nav {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.sidebar .cta {
  width: 100%;
  margin-top: 24px;
  padding: 12px 18px;
  font-size: 15px;
}

details {
  padding: 20px 0;
  border-bottom: 2px dashed var(--line);
}

summary {
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
}

.legal-copy {
  max-width: 860px;
  padding: 55px 0;
}

.legal-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.legal-copy h2 {
  margin-top: 36px;
  font-size: 23px;
}

.legal-copy ul {
  padding-left: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}

.contact-grid section {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--panel);
}

.contact-grid h2 {
  font-size: 25px;
}

.fine {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 44px 0 24px;
  border-top: 2px solid var(--ink);
  background: var(--panel);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer .brand {
  margin-bottom: 12px;
  font-size: 19px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1000px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 40px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
  }
}

@media (max-width: 650px) {
  .shell {
    width: calc(100% - 32px);
  }

  .hero,
  .cards,
  .band,
  .facts,
  .footer-grid,
  .article-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding: 36px 0 48px;
  }

  .puzzle-art {
    padding: 22px 18px 34px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .puzzle-art__sequence {
    gap: 6px;
  }

  .puzzle-art__note {
    right: 8px;
  }

  .facts {
    gap: 12px;
  }

  .band {
    gap: 20px;
    padding: 28px 22px;
    box-shadow: 5px 5px 0 var(--primary);
  }

  .section {
    padding: 40px 0;
  }

  .article-hero {
    padding-top: 36px;
  }

  .sidebar {
    position: static;
  }

  .lead {
    font-size: 17px;
  }

  .legal-copy {
    padding: 36px 0;
  }

  .footer-grid {
    gap: 24px;
  }
}

@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;
  }
}
