:root {
  --color-paper: #F8F7F4;
  --color-paper-2: #EAE8E1;
  --color-ink: #1A1E24;
  --color-slate: #334155;
  --color-amber: #D97706;
  --color-sky: #0284C7;
  --color-white: #FFFFFF;

  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --text-display-size: clamp(2.25rem, 5vw + 1rem, 3rem);
  --text-display-line-height: 1.08;
  --text-display-weight: 600;
  --text-display-tracking: -0.02em;

  --text-h1-size: clamp(1.75rem, 3.5vw + 0.75rem, 2.25rem);
  --text-h1-line-height: 1.17;
  --text-h1-weight: 600;
  --text-h1-tracking: -0.01em;

  --text-h2-size: clamp(1.5rem, 2.5vw + 0.5rem, 1.75rem);
  --text-h2-line-height: 1.21;
  --text-h2-weight: 600;

  --text-h3-size: 1.375rem;
  --text-h3-line-height: 1.27;
  --text-h3-weight: 600;

  --text-h4-size: 1.125rem;
  --text-h4-line-height: 1.33;
  --text-h4-weight: 600;

  --text-body-l-size: 1.125rem;
  --text-body-l-line-height: 1.67;
  --text-body-l-weight: 400;

  --text-body-m-size: 1rem;
  --text-body-m-line-height: 1.625;
  --text-body-m-weight: 400;

  --text-body-s-size: 0.875rem;
  --text-body-s-line-height: 1.57;
  --text-body-s-weight: 400;

  --text-caption-size: 0.75rem;
  --text-caption-line-height: 1.5;
  --text-caption-weight: 500;
  --text-caption-tracking: 0.02em;

  --text-label-size: 0.6875rem;
  --text-label-line-height: 1.45;
  --text-label-weight: 600;
  --text-label-tracking: 0.08em;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --container-max: 1120px;
  --container-padding-mobile: 1.25rem;
  --container-padding-tablet: 2rem;
  --container-padding-desktop: 3rem;
  --text-column-max: 720px;

  --radius-sm: 2px;
  --radius-md: 4px;

  --border-color: var(--color-paper-2);
  --border-color-strong: var(--color-slate);
  --border-width: 1px;

  --shadow-subtle: 0 1px 2px rgba(26, 30, 36, 0.06);

  --transition-fast: 120ms ease-out;
  --transition-medium: 200ms ease-out;
}

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

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

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

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;
  padding: 0;
}

a {
  color: var(--color-sky);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sky);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-tracking);
  margin-block-end: var(--space-md);
}

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

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

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

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

h5,
h6 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: normal;
  margin-block-end: var(--space-xs);
}

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

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

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

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

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

blockquote {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid var(--color-amber);
  background-color: var(--color-paper-2);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}

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

blockquote p {
  margin-block-end: var(--space-sm);
}

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

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

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-tracking);
  color: var(--color-slate);
  margin-block-start: var(--space-xs);
}

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

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

th,
td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-block-end: var(--border-width) solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--color-ink);
  background-color: var(--color-paper-2);
}

hr {
  border: none;
  border-block-start: var(--border-width) solid var(--border-color);
  margin-block: var(--space-lg);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background-color: var(--color-paper-2);
  border-radius: var(--radius-sm);
}

code {
  padding: 0.15em 0.4em;
}

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

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

pre code {
  background: none;
  padding: 0;
}

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

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

mark {
  background-color: var(--color-amber);
  color: var(--color-white);
  padding: 0.1em 0.2em;
  border-radius: var(--radius-sm);
}

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

.text-column {
  max-width: var(--text-column-max);
  margin-inline: auto;
}

.surface {
  background-color: var(--color-paper);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
}

.surface-muted {
  background-color: var(--color-paper-2);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
}

.surface-dark {
  background-color: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-body-m-size);
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  min-width: 0;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-amber) 92%, black);
  border-color: color-mix(in srgb, var(--color-amber) 92%, black);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-sky);
  color: var(--color-white);
  border-color: var(--color-sky);
}

.btn-secondary:hover {
  background-color: color-mix(in srgb, var(--color-sky) 92%, black);
  border-color: color-mix(in srgb, var(--color-sky) 92%, black);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background-color: var(--color-paper-2);
  border-color: var(--color-sky);
  color: var(--color-sky);
}

.label {
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-slate);
}

.caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-tracking);
  color: var(--color-slate);
}

.tag {
  display: inline-block;
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-slate);
  background-color: var(--color-paper-2);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: 0;
}

.card {
  background-color: var(--color-paper);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--color-sky);
}

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

.panel {
  background-color: var(--color-paper-2);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

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

.quote-block {
  border-inline-start: 2px solid var(--color-amber);
  background-color: var(--color-paper-2);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  margin-block-end: var(--space-md);
}

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

.quote-block p {
  margin-block-end: var(--space-sm);
}

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

.quote-block cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-tracking);
  color: var(--color-slate);
  margin-block-start: var(--space-xs);
}

.media-16-9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.media-16-9 img,
.media-16-9 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-4-5 {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.media-4-5 img,
.media-4-5 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-1-1 {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.media-1-1 img,
.media-1-1 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  min-width: 0;
}

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

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

.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-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.flex-auto {
  flex: 0 1 auto;
  min-width: 0;
}

.flex-none {
  flex: 0 0 auto;
  min-width: 0;
}

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

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

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.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-ink);
  color: var(--color-paper);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-paper);
  text-decoration: none;
}

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

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

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

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

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }

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

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

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

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

  .grid-auto {
    grid-template-columns: 1fr;
  }
}