:root {
  --color-cream: #fff9f0;
  --color-cobalt: #4361ee;
  --color-yellow: #ffb703;
  --color-tangerine: #fb8500;
  --color-blueberry: #2b2d42;
  --color-white: #ffffff;
  --color-line: #e8dccb;

  --font-body: "Atkinson Hyperlegible", Arial, sans-serif;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 3vw, 2.625rem);
  --text-3xl: clamp(2rem, 5vw, 4rem);
  --text-4xl: clamp(2.75rem, 7vw, 5rem);

  --leading-tight: 1.02;
  --leading-heading: 1.08;
  --leading-body: 1.5;
  --leading-relaxed: 1.625;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --container-max: 75rem;
  --container-reading: 45rem;
  --container-padding: 1.5rem;

  --radius-badge: 0.375rem;
  --radius-control: 0.625rem;
  --radius-feature: 1.125rem;

  --border-width: 2px;
  --border-strong: var(--border-width) solid var(--color-blueberry);

  --shadow-hard: 5px 5px 0 var(--color-blueberry);
  --shadow-hard-lg: 8px 8px 0 var(--color-blueberry);
  --shadow-button: 4px 4px 0 var(--color-blueberry);

  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
}

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

html {
  min-width: 320px;
  background: var(--color-cream);
  color: var(--color-blueberry);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: var(--leading-body);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--color-cream);
  color: var(--color-blueberry);
}

body.is-scroll-locked {
  overflow: hidden;
}

main,
header,
footer,
section,
article,
aside,
nav,
form,
fieldset,
figure,
picture,
details,
dialog {
  min-width: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  font-style: italic;
}

img[width][height] {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input,
select,
textarea {
  width: 100%;
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-white);
  min-height: 2.75rem;
  padding: 0.6875rem 0.75rem;
  line-height: 1.5;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

select {
  appearance: auto;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  accent-color: var(--color-cobalt);
}

input[type="file"] {
  padding: var(--space-2);
}

::placeholder {
  color: color-mix(in srgb, var(--color-blueberry) 65%, transparent);
  opacity: 1;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration-color: var(--color-cobalt);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-cobalt);
}

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

::selection {
  background: var(--color-yellow);
  color: var(--color-blueberry);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: var(--color-blueberry);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-heading);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.12;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.16;
}

h5,
h6 {
  font-size: var(--text-lg);
  line-height: 1.22;
}

p {
  margin: 0 0 var(--space-4);
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding: 0;
}

ul {
  list-style: none !important;
}

ol {
  padding-inline-start: 1.5rem;
}

.content-list,
.rich-text ul,
.rich-text ol,
.entry-content ul,
.entry-content ol {
  display: grid;
  gap: var(--space-2);
}

.content-list > li,
.rich-text ul > li,
.entry-content ul > li {
  position: relative;
  padding-inline-start: 1.25rem;
}

.content-list > li::before,
.rich-text ul > li::before,
.entry-content ul > li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-cobalt);
  content: "";
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-inline-start: 4px solid var(--color-tangerine);
  background: var(--color-white);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.43;
}

hr {
  height: 0;
  margin: var(--space-6) 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}

small {
  font-size: var(--text-xs);
  line-height: 1.34;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

address {
  margin: 0 0 var(--space-4);
  font-style: normal;
}

table {
  width: 100%;
  margin: 0 0 var(--space-5);
  border-collapse: collapse;
  border: var(--border-strong);
  background: var(--color-white);
  text-align: start;
}

caption {
  margin-bottom: var(--space-2);
  font-weight: 700;
  text-align: start;
}

th,
td {
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  overflow-wrap: anywhere;
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--color-yellow);
  font-weight: 700;
}

code,
kbd,
samp,
pre {
  font-family: "Courier New", monospace;
}

code,
kbd {
  border-radius: var(--radius-badge);
  background: var(--color-yellow);
  padding: 0.1em 0.3em;
}

pre {
  margin: 0 0 var(--space-5);
  overflow: auto;
  padding: var(--space-4);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-blueberry);
  color: var(--color-white);
}

.container {
  width: min(100% - (2 * var(--container-padding)), var(--container-max));
  margin-inline: auto;
}

.container--reading {
  width: min(100% - (2 * var(--container-padding)), var(--container-reading));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-9);
}

.stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.stack--tight {
  gap: var(--space-2);
}

.stack--compact {
  gap: var(--space-3);
}

.stack--spacious {
  gap: var(--space-6);
}

.stack--editorial {
  gap: var(--space-7);
}

.cluster {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster--tight {
  gap: var(--space-2);
}

.cluster--spacious {
  gap: var(--space-5);
}

.cluster > * {
  min-width: 0;
}

.frame {
  border: var(--border-strong);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-hard);
}

.frame--feature {
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-hard-lg);
}

.surface-white {
  background: var(--color-white);
}

.surface-cobalt {
  background: var(--color-cobalt);
  color: var(--color-white);
}

.surface-cobalt :is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-white);
}

.surface-blueberry {
  background: var(--color-blueberry);
  color: var(--color-white);
}

.surface-blueberry :is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-white);
}

.surface-yellow {
  background: var(--color-yellow);
  color: var(--color-blueberry);
}

.surface-tangerine {
  background: var(--color-tangerine);
  color: var(--color-blueberry);
}

.card {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-white);
  box-shadow: var(--shadow-hard);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card > :last-child {
  margin-bottom: 0;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--color-blueberry);
}

.card--feature {
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-hard-lg);
}

.card--yellow {
  background: var(--color-yellow);
}

.card--tangerine {
  background: var(--color-tangerine);
}

.card--cobalt {
  background: var(--color-cobalt);
  color: var(--color-white);
}

.card--cobalt :is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-white);
}

.badge {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.25rem 0.5rem;
  border: var(--border-strong);
  border-radius: var(--radius-badge);
  background: var(--color-yellow);
  color: var(--color-blueberry);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.badge--cobalt {
  background: var(--color-cobalt);
  color: var(--color-white);
}

.badge--cream {
  background: var(--color-cream);
}

.badge--tangerine {
  background: var(--color-tangerine);
}

.button,
button.button,
input[type="submit"].button,
input[type="button"].button,
input[type="reset"].button {
  display: inline-flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-cobalt);
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.button:hover,
.button:focus-visible {
  background: var(--color-cobalt);
  color: var(--color-white);
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-blueberry);
}

.button--secondary {
  background: var(--color-cream);
  color: var(--color-blueberry);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--color-tangerine);
  color: var(--color-blueberry);
}

.button--yellow {
  background: var(--color-yellow);
  color: var(--color-blueberry);
}

.button--yellow:hover,
.button--yellow:focus-visible {
  background: var(--color-tangerine);
  color: var(--color-blueberry);
}

.button--full {
  width: 100%;
}

.icon-button {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-white);
  color: var(--color-blueberry);
}

.nav-toggle {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: var(--space-2);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-white);
  color: var(--color-blueberry);
}

.nav-toggle > span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.field {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}

.field > label,
.field > legend {
  font-weight: 700;
}

.field > :is(input, select, textarea):focus {
  border-color: var(--color-cobalt);
  outline: 3px solid var(--color-tangerine);
  outline-offset: 2px;
}

.form-note {
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.43;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: var(--border-strong);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-hard);
  background: var(--color-yellow);
}

.image-frame--soft {
  border-radius: var(--radius-feature);
}

.image-frame > img,
.image-frame > picture > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-frame::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 1.5rem;
  height: 1.5rem;
  border-top: var(--border-strong);
  border-left: var(--border-strong);
  background: var(--color-yellow);
  content: "";
}

.image-frame--cobalt::after {
  background: var(--color-cobalt);
}

.image-frame--tangerine::after {
  background: var(--color-tangerine);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-4);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-yellow);
  color: var(--color-blueberry);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  overflow-y: auto;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-blueberry) 82%, transparent);
}

.age-gate.is-active,
.age-gate[open] {
  display: grid;
}

.age-gate__dialog {
  position: relative;
  width: min(100%, 36rem);
  max-height: calc(100vh - (2 * var(--space-4)));
  overflow-y: auto;
  padding: var(--space-6);
  border: var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--color-cream);
  box-shadow: var(--shadow-hard-lg);
}

.age-gate__dialog > :last-child {
  margin-bottom: 0;
}

.age-gate__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.age-gate__actions > * {
  min-width: 0;
  flex: 1 1 12rem;
}

@media (max-width: 44.9375rem) {
  :root {
    --container-padding: 1rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .card,
  .age-gate__dialog {
    padding: var(--space-4);
  }

  .age-gate__actions {
    flex-direction: column;
  }

  .age-gate__actions > * {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 45rem) and (max-width: 74.9375rem) {
  .section {
    padding-block: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .button:hover {
    transform: none;
  }
}