:root {
  --color-paper: #FFF8E7;
  --color-ink: #1A2B4C;
  --color-ink-soft: #3A4A6B;
  --color-lime: #B4E33D;
  --color-orange: #FF7A00;
  --color-paper-dark: #F0E6D0;
  --color-ink-on-lime: #1A2B4C;
  --color-white-on-ink: #FFFFFF;
  --font-heading: "Space Grotesk", "Work Sans", sans-serif;
  --font-body: "Work Sans", "Space Grotesk", sans-serif;
  --text-display-size: clamp(2.5rem, 5vw + 1rem, 3rem);
  --text-display-line-height: 1.1;
  --text-display-weight: 700;
  --text-h1-size: clamp(2rem, 3.5vw + 0.75rem, 2.25rem);
  --text-h1-line-height: 1.2;
  --text-h1-weight: 700;
  --text-h2-size: clamp(1.5rem, 2.5vw + 0.5rem, 1.75rem);
  --text-h2-line-height: 1.3;
  --text-h2-weight: 600;
  --text-h3-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.375rem);
  --text-h3-line-height: 1.4;
  --text-h3-weight: 600;
  --text-body-size: 1rem;
  --text-body-line-height: 1.6;
  --text-body-weight: 400;
  --text-small-size: 0.875rem;
  --text-small-line-height: 1.5;
  --text-small-weight: 400;
  --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-padding: var(--space-4);
  --section-padding: var(--space-8);
  --section-padding-tablet: var(--space-7);
  --section-padding-mobile: var(--space-6);
  --card-padding: var(--space-5);
  --card-gap: var(--space-4);
  --radius-small: 0.25rem;
  --radius-medium: 0.5rem;
  --radius-large: 1rem;
  --border-ink: 1px solid var(--color-ink);
  --shadow-hover: 0 4px 12px rgba(26, 43, 76, 0.1);
  --focus-outline: 2px solid var(--color-orange);
  --min-touch-target: 2.75rem;
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line-height);
  margin-block-end: var(--space-4);
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
}

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

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

h4,
h5,
h6 {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: 600;
  margin-block-end: var(--space-3);
}

p {
  margin-block-end: var(--space-4);
  line-height: var(--text-body-line-height);
}

ul,
ol {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
}

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

blockquote {
  margin-block-end: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-lime);
  color: var(--color-ink-on-lime);
  border-radius: var(--radius-medium);
  font-weight: 600;
}

blockquote p {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-4);
}

figcaption {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-ink-soft);
  margin-block-start: var(--space-2);
}

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

hr {
  border: none;
  border-top: 1px solid var(--color-ink);
  margin-block: var(--space-6);
}

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

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

.card {
  background-color: var(--color-paper);
  border: var(--border-ink);
  border-radius: var(--radius-medium);
  padding: var(--card-padding);
  box-shadow: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-lime);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--min-touch-target);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-body-size);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-ink);
  color: var(--color-white-on-ink);
  border-color: var(--color-ink);
}

.btn-primary:hover {
  background-color: var(--color-ink-soft);
  border-color: var(--color-ink-soft);
  color: var(--color-white-on-ink);
}

.btn-secondary {
  background-color: var(--color-lime);
  color: var(--color-ink-on-lime);
  border-color: var(--color-lime);
}

.btn-secondary:hover {
  background-color: #a3cc2e;
  border-color: #a3cc2e;
  color: var(--color-ink-on-lime);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn-tertiary:hover {
  background-color: var(--color-paper-dark);
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-sm {
  min-height: 2.25rem;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-small-size);
}

.btn-lg {
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-h3-size);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-small-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-block-end: var(--space-2);
}

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

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

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

.flex-column {
  flex-direction: column;
  align-items: stretch;
}

.flex-center {
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-end {
  justify-content: flex-end;
}

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

.flex-align-start {
  align-items: flex-start;
}

.flex-align-end {
  align-items: flex-end;
}

.flex-align-stretch {
  align-items: stretch;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 0 0 auto;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-shrink-1 {
  flex-shrink: 1;
}

.grid {
  display: grid;
  gap: var(--card-gap);
}

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

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

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

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

.grid-cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid-cols-auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.grid-cols-auto-lg {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

@media (max-width: 64rem) {
  :root {
    --section-padding: var(--section-padding-tablet);
  }
}

@media (max-width: 48rem) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}