:root {
  --color-canvas: #0b2328;
  --color-moss: #52794e;
  --color-paper: #e7e5cb;
  --color-aqua: #83d7ce;
  --color-pink: #d47c9d;
  --color-ink: #102d30;
  --color-muted: #b9c7b8;
  --color-focus: #f2c66d;

  --color-border-light: rgb(231 229 203 / 30%);
  --color-border-aqua: rgb(131 215 206 / 30%);
  --color-border-moss: rgb(82 121 78 / 55%);
  --color-paper-surface: rgb(231 229 203 / 96%);
  --color-paper-surface-soft: rgb(231 229 203 / 94%);
  --color-aqua-soft: rgb(131 215 206 / 12%);
  --color-moss-soft: rgb(82 121 78 / 16%);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Noto Sans", Arial, sans-serif;

  --text-meta: 0.75rem;
  --text-label: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-card-title: 1.5rem;
  --text-section-title: clamp(1.75rem, 3vw, 2rem);
  --text-display: clamp(2.25rem, 5vw, 3rem);

  --line-meta: 1.333;
  --line-label: 1.429;
  --line-body: 1.625;
  --line-lead: 1.611;
  --line-heading: 1.08;

  --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;
  --reading-max: 45rem;
  --page-gutter: 2rem;
  --section-space: 4rem;

  --radius-small: 0.625rem;
  --radius-panel: 1rem;
  --radius-image: 1.75rem;
  --radius-pill: 999px;

  --border-subtle: 1px solid var(--color-border-light);
  --border-aqua: 1px solid var(--color-border-aqua);
  --border-moss: 1px solid var(--color-border-moss);

  --shadow-float: 0 10px 28px rgb(0 0 0 / 22%);
  --transition-fast: 160ms ease-out;
}

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

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

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: break-word;
  background-color: var(--color-canvas);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--line-body);
  text-rendering: optimizeLegibility;
}

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

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

img,
video {
  height: auto;
}

img {
  object-fit: cover;
}

svg {
  fill: currentColor;
}

iframe {
  border: 0;
}

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

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

button,
input,
select,
textarea {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  border-radius: var(--radius-small);
}

button {
  border: 0;
}

a {
  color: var(--color-aqua);
  text-decoration-color: rgb(131 215 206 / 65%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

a:hover {
  color: var(--color-paper);
  text-decoration-color: currentColor;
}

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

::selection {
  background: var(--color-aqua);
  color: var(--color-ink);
}

:target {
  scroll-margin-top: 6rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--space-4);
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: var(--line-heading);
  overflow-wrap: anywhere;
}

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

h2 {
  font-size: var(--text-section-title);
}

h3 {
  font-size: var(--text-card-title);
  line-height: 1.18;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  line-height: 1.2;
}

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

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

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

ul li::marker,
ol li::marker {
  color: var(--color-aqua);
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) 0 var(--space-3) var(--space-4);
  border-inline-start: 3px solid var(--color-pink);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  line-height: var(--line-lead);
}

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

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

hr {
  height: 1px;
  margin-block: var(--space-6);
  border: 0;
  background: var(--color-border-light);
}

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

strong {
  font-weight: 700;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code,
kbd,
samp {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--border-aqua);
  border-radius: var(--radius-small);
  background: rgb(16 45 48 / 55%);
  color: var(--color-paper);
  font-size: 0.875em;
}

table {
  width: 100%;
  margin-block: 0 var(--space-5);
  border-collapse: collapse;
  border-spacing: 0;
  overflow-wrap: anywhere;
}

caption {
  margin-block-end: var(--space-2);
  color: var(--color-muted);
  text-align: start;
}

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

th {
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: var(--space-4);
  border: var(--border-subtle);
}

legend {
  padding-inline: var(--space-2);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border-aqua);
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 0.6875rem 0.75rem;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: rgb(16 45 48 / 65%);
}

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

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

input[type="file"]::file-selector-button {
  margin-inline-end: var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-moss);
  color: var(--color-paper);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  cursor: pointer;
}

details {
  margin-block: 0 var(--space-3);
  border: var(--border-subtle);
  border-radius: var(--radius-small);
  background: rgb(231 229 203 / 5%);
}

summary {
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-4);
  color: var(--color-paper);
  font-weight: 700;
  cursor: pointer;
}

details > :not(summary) {
  padding-inline: var(--space-4);
}

details > :last-child {
  padding-block-end: var(--space-4);
}

details[open] summary {
  border-block-end: 1px solid var(--color-border-light);
}

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

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

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

.surface {
  border: var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--color-paper-surface);
  color: var(--color-ink);
  padding: var(--space-5);
}

.surface > :last-child,
.panel > :last-child,
.stack > :last-child,
.compact-group > :last-child,
.content-flow > :last-child {
  margin-block-end: 0;
}

.panel {
  border: var(--border-subtle);
  border-radius: var(--radius-panel);
  background: rgb(231 229 203 / 6%);
  padding: var(--space-5);
}

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

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

.content-flow > * + * {
  margin-block-start: var(--space-4);
}

.content-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: 0 var(--space-4);
  padding-inline-start: 1.4em;
}

.content-list > li {
  min-width: 0;
}

.eyebrow,
.meta,
.label {
  color: var(--color-muted);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--line-label);
  text-transform: uppercase;
}

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

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

.button,
.button-secondary,
.button-link {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.625rem 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button {
  background: var(--color-aqua);
  color: var(--color-ink);
}

.button:hover {
  background: #a0e5dd;
  color: var(--color-ink);
}

.button-secondary {
  background: var(--color-moss);
  color: var(--color-paper);
}

.button-secondary:hover {
  background: #638d5f;
  color: var(--color-paper);
}

.button-link {
  border-color: var(--color-border-aqua);
  background: transparent;
  color: var(--color-aqua);
}

.button-link:hover {
  border-color: var(--color-aqua);
  background: var(--color-aqua-soft);
  color: var(--color-paper);
}

.image-frame {
  overflow: hidden;
  border: var(--border-aqua);
  border-radius: var(--radius-image);
  background: var(--color-canvas);
}

.image-frame > img,
.image-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--contain > img,
.image-frame--contain > picture > img {
  object-fit: contain;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  transform: translateY(-200%);
  border-radius: var(--radius-small);
  background: var(--color-focus);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 47.99rem) {
  :root {
    --page-gutter: 1.25rem;
    --section-space: 2.75rem;
  }

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

  .surface,
  .panel {
    padding: var(--space-4);
  }

  h2 {
    font-size: 1.75rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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

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