:root {
  --color-lake-blue: #4A90D9;
  --color-reed-green: #6B8E23;
  --color-sand: #F5DEB3;
  --color-sunset-orange: #FF8C00;
  --color-ink: #1A2E3A;
  --color-muted-ink: #4A5A6A;
  --color-white: #FFFFFF;
  --color-deep-water: #1E3A5F;
  --color-border-light: #E0D5C0;

  --font-heading: Georgia, serif;
  --font-body: Arial, sans-serif;

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

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

  --weight-display: 700;
  --weight-h1: 700;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-body: 400;
  --weight-small: 400;
  --weight-caption: 400;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --container-max: 1200px;
  --container-padding: 16px;

  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.1);

  --transition-color: 150ms ease;
  --transition-transform: 200ms ease;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-sand);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-h1);
  line-height: var(--leading-h1);
  color: var(--color-ink);
}

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

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

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

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

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

p:last-child {
  margin-block-end: 0;
}

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

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

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

blockquote {
  margin: 0;
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--color-lake-blue);
  color: var(--color-muted-ink);
}

blockquote:last-child {
  margin-block-end: 0;
}

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

a:hover {
  color: var(--color-deep-water);
}

a:focus-visible {
  outline: 2px solid var(--color-lake-blue);
  outline-offset: 2px;
}

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

img {
  border-radius: var(--radius-medium);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-small);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-lake-blue);
  outline-offset: 2px;
}

input,
select,
textarea {
  background-color: var(--color-sand);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-lake-blue);
  outline: none;
}

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

label {
  display: block;
  margin-block-end: var(--space-2);
  font-weight: var(--weight-h3);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
}

table:last-child {
  margin-block-end: 0;
}

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

th {
  background-color: var(--color-white);
  font-weight: var(--weight-h3);
  color: var(--color-ink);
}

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

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-muted-ink);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-medium) var(--radius-medium);
}

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

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

.surface-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.surface-card--featured {
  padding: var(--space-5);
}

.surface-dark {
  background-color: var(--color-deep-water);
  color: var(--color-sand);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5,
.surface-dark h6 {
  color: var(--color-sand);
}

.surface-dark a {
  color: var(--color-lake-blue);
}

.surface-dark a:hover {
  color: var(--color-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  min-height: 44px;
  border-radius: var(--radius-small);
  font-weight: var(--weight-h3);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--transition-color), color var(--transition-color), transform var(--transition-transform), box-shadow var(--transition-color);
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary {
  background-color: var(--color-lake-blue);
  color: var(--color-white);
  border-color: var(--color-lake-blue);
}

.btn--primary:hover {
  background-color: #3A7BC4;
  color: var(--color-white);
}

.btn--accent {
  background-color: var(--color-sunset-orange);
  color: var(--color-ink);
  border-color: var(--color-sunset-orange);
}

.btn--accent:hover {
  background-color: #E67E00;
  color: var(--color-ink);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-lake-blue);
  border-color: var(--color-lake-blue);
}

.btn--secondary:hover {
  background-color: rgba(74, 144, 217, 0.08);
  color: var(--color-deep-water);
}

.btn--success {
  background-color: var(--color-reed-green);
  color: var(--color-white);
  border-color: var(--color-reed-green);
}

.btn--success:hover {
  background-color: #5A7A1D;
  color: var(--color-white);
}

.btn--small {
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.btn--large {
  padding: var(--space-4) var(--space-6);
  min-height: 52px;
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-sand);
  color: var(--color-ink);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: var(--weight-h3);
}

.badge--lake {
  background-color: rgba(74, 144, 217, 0.12);
  color: var(--color-lake-blue);
  border-color: rgba(74, 144, 217, 0.3);
}

.badge--reed {
  background-color: rgba(107, 142, 35, 0.12);
  color: var(--color-reed-green);
  border-color: rgba(107, 142, 35, 0.3);
}

.badge--sunset {
  background-color: rgba(255, 140, 0, 0.12);
  color: var(--color-sunset-orange);
  border-color: rgba(255, 140, 0, 0.3);
}

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

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

.flex--inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

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

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

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

.flex--between {
  align-items: center;
  justify-content: space-between;
}

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

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

.flex--gap-sm {
  gap: var(--space-3);
}

.flex--gap-lg {
  gap: var(--space-6);
}

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

.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-4);
}

.content-list:last-child {
  margin-block-end: 0;
}

.content-list > li {
  margin-block-end: var(--space-3);
}

.content-list > li:last-child {
  margin-block-end: 0;
}

.content-list--spaced > li {
  margin-block-end: var(--space-4);
}

.content-list--spaced > li:last-child {
  margin-block-end: 0;
}

@media (max-width: 767px) {
  :root {
    --text-display: 1.75rem;
    --text-h1: 1.5rem;
    --text-h2: 1.25rem;
    --text-h3: 1.125rem;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .surface-card {
    padding: var(--space-3);
  }

  .surface-card--featured {
    padding: var(--space-4);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-display: 2.25rem;
    --text-h1: 1.75rem;
    --text-h2: 1.375rem;
    --text-h3: 1.1875rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-display: 2.5rem;
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
  }
}