:root {
  --color-sky-blue: #87CEEB;
  --color-carrot-orange: #FF8C42;
  --color-carrot-orange-dark: #E67E22;
  --color-warm-cream: #FDF6E3;
  --color-grass-green: #7CB342;
  --color-charcoal: #2E2E2E;
  --color-red-accent: #D32F2F;
  --color-white: #FFFFFF;

  --font-heading: "Fredoka One", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-handwritten: "Comic Sans MS", cursive;

  --text-h1: 2.5rem;
  --text-h2: 2rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  --leading-h1: 1.2;
  --leading-h2: 1.25;
  --leading-h3: 1.3;
  --leading-h4: 1.4;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --leading-caption: 1.4;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --container-max: 1200px;
  --container-padding-desktop: 24px;
  --container-padding-tablet: 16px;
  --container-padding-mobile: 16px;

  --surface-cream: var(--color-warm-cream);
  --surface-sky: var(--color-sky-blue);
  --surface-charcoal: var(--color-charcoal);
  --surface-white: var(--color-white);

  --border-structural: 2px solid var(--color-charcoal);
  --border-dashed: 1px dashed var(--color-charcoal);
  --border-image-frame: 1px solid var(--color-charcoal);
  --border-image-inner: 2px solid var(--color-warm-cream);

  --shadow-taped: 0 2px 8px rgba(46, 46, 46, 0.1);
  --shadow-taped-hover: 0 4px 16px rgba(46, 46, 46, 0.18);
  --shadow-focus: 0 0 0 3px rgba(46, 46, 46, 0.35);

  --radius-card: 8px;
  --radius-button: 8px;
  --radius-input: 4px;
  --radius-taped: 0px;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-sky-blue);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-carrot-orange-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-input);
}

ul,
ol {
  list-style-position: inside;
  margin-block-end: var(--space-md);
}

li {
  line-height: var(--leading-body);
}

ul li::marker {
  color: var(--color-carrot-orange);
}

ol li::marker {
  color: var(--color-charcoal);
  font-weight: 700;
}

blockquote {
  border-inline-start: 4px solid var(--color-carrot-orange);
  padding-inline-start: var(--space-md);
  margin-block-end: var(--space-md);
  font-style: italic;
  color: var(--color-charcoal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  font-weight: 400;
  line-height: var(--leading-h1);
  margin-block-end: var(--space-md);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: var(--space-lg);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: var(--space-md);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-sm);
}

h4 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  margin-block-end: var(--space-sm);
}

h5,
h6 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-sm);
}

p {
  margin-block-end: var(--space-md);
  overflow-wrap: break-word;
}

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

caption,
figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-charcoal);
}

hr {
  border: none;
  border-top: var(--border-dashed);
  margin-block: var(--space-lg);
}

code,
pre {
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  background-color: var(--color-warm-cream);
  border-radius: var(--radius-input);
}

code {
  padding: 2px 6px;
}

pre {
  padding: var(--space-md);
  overflow-x: auto;
  margin-block-end: var(--space-md);
  border: var(--border-structural);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-md);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

th,
td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-bottom: var(--border-dashed);
}

th {
  font-family: var(--font-heading);
  font-weight: 400;
  background-color: var(--color-warm-cream);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-desktop);
}

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

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

.surface-charcoal {
  background-color: var(--surface-charcoal);
  color: var(--color-warm-cream);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.2;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-button);
  text-decoration: none;
  min-height: 48px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background-color: var(--color-carrot-orange);
  color: var(--color-white);
  border: 2px solid var(--color-carrot-orange);
}

.btn-primary:hover {
  background-color: var(--color-carrot-orange-dark);
  border-color: var(--color-carrot-orange-dark);
  color: var(--color-white);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: var(--border-structural);
}

.btn-secondary:hover {
  background-color: var(--color-warm-cream);
  color: var(--color-charcoal);
  transform: scale(1.02);
}

.btn-charcoal {
  background-color: var(--color-charcoal);
  color: var(--color-warm-cream);
  border: 2px solid var(--color-charcoal);
}

.btn-charcoal:hover {
  background-color: var(--color-warm-cream);
  color: var(--color-charcoal);
  transform: scale(1.02);
}

.card {
  background-color: var(--surface-cream);
  border: var(--border-structural);
  border-radius: var(--radius-card);
  padding: var(--space-md);
}

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

.taped {
  position: relative;
  border-radius: var(--radius-taped);
  box-shadow: var(--shadow-taped);
  transform: rotate(1.5deg);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.taped:hover {
  transform: rotate(0deg);
  box-shadow: var(--shadow-taped-hover);
}

.taped-2 {
  transform: rotate(-1.5deg);
}

.taped-2:hover {
  transform: rotate(0deg);
}

.taped-3 {
  transform: rotate(2.5deg);
}

.taped-3:hover {
  transform: rotate(0deg);
}

.tape-strip {
  position: absolute;
  width: 80px;
  height: 24px;
  background-color: rgba(253, 246, 227, 0.75);
  border: 1px dashed rgba(46, 46, 46, 0.3);
  z-index: 1;
}

.tape-strip-top-left {
  top: -10px;
  left: -20px;
  transform: rotate(-35deg);
}

.tape-strip-bottom-right {
  bottom: -10px;
  right: -20px;
  transform: rotate(35deg);
}

.img-framed {
  border: var(--border-image-frame);
  padding: 2px;
  background-color: var(--color-warm-cream);
  border-radius: var(--radius-taped);
}

.img-framed img {
  border-radius: 0;
}

.carrot-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--color-charcoal);
}

.carrot-marker::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-inline-start: 7px solid transparent;
  border-inline-end: 7px solid transparent;
  border-block-end: 14px solid var(--color-carrot-orange);
  transform: rotate(0deg);
  flex-shrink: 0;
}

.carrot-marker::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  background-color: var(--color-grass-green);
  border-radius: 50% 50% 0 0;
  transform: rotate(-20deg);
  flex-shrink: 0;
  margin-inline-start: -4px;
}

.motion-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-charcoal);
  position: relative;
  flex-shrink: 0;
}

.motion-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-inline-start: 8px solid var(--color-charcoal);
  border-block-start: 5px solid transparent;
  border-block-end: 5px solid transparent;
}

.motion-line-vertical {
  width: 2px;
  height: 40px;
}

.motion-line-vertical::after {
  right: -4px;
  top: auto;
  bottom: -1px;
  border-inline-start: 5px solid transparent;
  border-inline-end: 5px solid transparent;
  border-block-start: 8px solid var(--color-charcoal);
  border-block-end: none;
}

.verified-fact {
  background-color: var(--surface-cream);
  border: var(--border-structural);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  position: relative;
}

.verified-fact::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-grass-green);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-inline-end: var(--space-sm);
  flex-shrink: 0;
}

.editorial-note {
  background-color: var(--surface-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-family: var(--font-handwritten);
  position: relative;
}

.editorial-note > :last-child {
  margin-block-end: 0;
}

.alert {
  background-color: var(--surface-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  color: var(--color-charcoal);
}

.alert > :last-child {
  margin-block-end: 0;
}

.tip {
  background-color: var(--surface-cream);
  border-inline-start: 4px solid var(--color-grass-green);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  color: var(--color-charcoal);
}

.tip > :last-child {
  margin-block-end: 0;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  background-color: var(--color-charcoal);
  color: var(--color-warm-cream);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-input);
  text-decoration: none;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-warm-cream);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
select,
textarea {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: var(--border-structural);
  border-radius: var(--radius-input);
  min-height: 48px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-carrot-orange);
  box-shadow: var(--shadow-focus);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  font-weight: 700;
  margin-block-end: var(--space-xs);
  color: var(--color-charcoal);
}

fieldset {
  border: var(--border-structural);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  margin-block-end: var(--space-md);
}

legend {
  font-family: var(--font-heading);
  padding-inline: var(--space-sm);
}

::selection {
  background-color: var(--color-carrot-orange);
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-warm-cream);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-charcoal);
  border-radius: 6px;
  border: 2px solid var(--color-warm-cream);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-carrot-orange-dark);
}

@media (max-width: 1199px) {
  .container {
    padding-inline: var(--container-padding-tablet);
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  h4 {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--container-padding-mobile);
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  h4 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
  }

  .taped,
  .taped-2,
  .taped-3 {
    transform: rotate(1deg);
  }

  .taped:hover,
  .taped-2:hover,
  .taped-3:hover {
    transform: rotate(0deg);
  }

  .tape-strip {
    width: 60px;
    height: 18px;
  }

  .tape-strip-top-left {
    top: -8px;
    left: -12px;
  }

  .tape-strip-bottom-right {
    bottom: -8px;
    right: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .taped,
  .taped-2,
  .taped-3 {
    transform: rotate(0deg);
  }

  .btn:hover {
    transform: none;
  }
}