@charset "UTF-8";

:root {
  --color-harbour-navy: #0B1F2E;
  --color-warm-ivory: #F5F0E8;
  --color-dark-teal: #0F3A3A;
  --color-muted-copper: #B87333;
  --color-muted-copper-light: #D4944A;
  --color-felt-green: #1E4D3A;
  --color-crimson: #A32638;
  --color-ink: #1A1A1A;
  --color-smoke: #6B7280;

  --color-copper-30: rgba(184, 115, 51, 0.3);
  --color-ivory-15: rgba(245, 240, 232, 0.15);
  --color-navy-60: rgba(11, 31, 46, 0.6);

  --font-heading: "Oswald", sans-serif;
  --font-body: "Source Serif 4", serif;

  --text-display-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  --text-display-line-height: 1.05;
  --text-display-weight: 700;
  --text-display-tracking: -0.02em;

  --text-h1-size: clamp(2.25rem, 4vw + 0.75rem, 3rem);
  --text-h1-line-height: 1.1;
  --text-h1-weight: 700;
  --text-h1-tracking: -0.01em;

  --text-h2-size: clamp(1.875rem, 3vw + 0.5rem, 2.25rem);
  --text-h2-line-height: 1.15;
  --text-h2-weight: 600;
  --text-h2-tracking: 0;

  --text-h3-size: clamp(1.5rem, 2vw + 0.5rem, 1.75rem);
  --text-h3-line-height: 1.2;
  --text-h3-weight: 600;
  --text-h3-tracking: 0;

  --text-h4-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.375rem);
  --text-h4-line-height: 1.25;
  --text-h4-weight: 600;
  --text-h4-tracking: 0;

  --text-body-large-size: 1.25rem;
  --text-body-large-line-height: 1.6;
  --text-body-large-weight: 400;
  --text-body-large-tracking: 0;

  --text-body-size: 1.0625rem;
  --text-body-line-height: 1.65;
  --text-body-weight: 400;
  --text-body-tracking: 0;

  --text-body-small-size: 0.9375rem;
  --text-body-small-line-height: 1.6;
  --text-body-small-weight: 400;
  --text-body-small-tracking: 0;

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

  --text-overline-size: 0.75rem;
  --text-overline-line-height: 1.4;
  --text-overline-weight: 600;
  --text-overline-tracking: 0.12em;

  --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;
  --space-5xl: 8rem;

  --container-max: 80rem;
  --container-padding-mobile: 1.5rem;
  --container-padding-desktop: 3rem;
  --container-narrow: 45rem;

  --radius-none: 0;
  --radius-button: 2px;
  --radius-card: 4px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);

  --focus-outline-width: 2px;
  --focus-outline-offset: 2px;
  --focus-outline-color: var(--color-muted-copper);

  --transition-fast: 150ms ease;
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--text-body-weight);
  letter-spacing: var(--text-body-tracking);
  color: var(--color-warm-ivory);
  background-color: var(--color-harbour-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
ul,
ol,
dl,
table,
address {
  margin-block-end: var(--space-md);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
blockquote:last-child,
figure:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
table:last-child,
address:last-child {
  margin-block-end: 0;
}

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

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-tracking);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
}

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--text-h4-weight);
  letter-spacing: var(--text-h4-tracking);
}

h5 {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: 600;
  letter-spacing: 0;
}

h6 {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--text-body-weight);
  letter-spacing: var(--text-body-tracking);
}

blockquote {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: 400;
  letter-spacing: 0;
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid var(--color-muted-copper);
}

figure {
  margin-inline: 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-smoke);
  margin-block-start: var(--space-xs);
}

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

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--text-body-weight);
  letter-spacing: var(--text-body-tracking);
  margin-block-end: var(--space-xs);
}

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

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

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

dl dt {
  font-weight: 600;
  margin-block-end: var(--space-2xs);
}

dl dd {
  margin-inline-start: 0;
  margin-block-end: var(--space-sm);
}

dl dd:last-child {
  margin-block-end: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

th,
td {
  text-align: start;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-ivory-15);
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-caption-size);
}

address {
  font-style: normal;
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

pre,
code,
kbd,
samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

hr {
  border: none;
  border-top: 1px solid var(--color-copper-30);
  margin-block: var(--space-xl);
}

:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

::selection {
  background-color: var(--color-muted-copper);
  color: var(--color-harbour-navy);
}

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

.container-full {
  width: 100%;
  margin-inline: auto;
}

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

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

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

.surface-navy {
  background-color: var(--color-harbour-navy);
  color: var(--color-warm-ivory);
}

.surface-ivory {
  background-color: var(--color-warm-ivory);
  color: var(--color-ink);
}

.surface-teal {
  background-color: var(--color-dark-teal);
  color: var(--color-warm-ivory);
}

.surface-felt {
  background-color: var(--color-felt-green);
  color: var(--color-warm-ivory);
}

.card {
  background-color: var(--color-warm-ivory);
  color: var(--color-ink);
  border: 1px solid var(--color-copper-30);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.card-dark {
  background-color: var(--color-harbour-navy);
  color: var(--color-warm-ivory);
  border: 1px solid var(--color-ivory-15);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.card-elevated {
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  min-height: 2.75rem;
}

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

.btn-primary {
  background-color: var(--color-muted-copper);
  color: var(--color-harbour-navy);
  border-color: var(--color-muted-copper);
}

.btn-primary:hover {
  background-color: var(--color-muted-copper-light);
  border-color: var(--color-muted-copper-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-warm-ivory);
  border-color: var(--color-muted-copper);
}

.btn-secondary:hover {
  background-color: var(--color-muted-copper);
  color: var(--color-harbour-navy);
}

.btn-danger {
  background-color: var(--color-crimson);
  color: var(--color-warm-ivory);
  border-color: var(--color-crimson);
}

.btn-danger:hover {
  background-color: #B82E42;
  border-color: #B82E42;
}

.btn-sm {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-md);
  min-height: 2.25rem;
}

.btn-lg {
  font-size: 1rem;
  padding: var(--space-md) var(--space-xl);
  min-height: 3.25rem;
}

.link {
  color: var(--color-warm-ivory);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-muted-copper);
  text-decoration: underline;
  text-decoration-color: var(--color-muted-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-active {
  color: var(--color-muted-copper);
}

.link-on-light {
  color: var(--color-ink);
}

.link-on-light:hover {
  color: var(--color-muted-copper);
  text-decoration: underline;
  text-decoration-color: var(--color-muted-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.overline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-overline-size);
  line-height: var(--text-overline-line-height);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-tracking);
  text-transform: uppercase;
  color: var(--color-muted-copper);
  margin-block-end: var(--space-sm);
}

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-tracking);
  text-transform: uppercase;
}

.body-large {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: var(--text-body-large-weight);
  letter-spacing: var(--text-body-large-tracking);
}

.body-small {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  font-weight: var(--text-body-small-weight);
  letter-spacing: var(--text-body-small-tracking);
}

.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-smoke);
}

.caption-on-dark {
  color: rgba(245, 240, 232, 0.7);
}

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

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

.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 0 auto;
}

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

.gap-2xs { gap: var(--space-2xs); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

.mt-2xs { margin-block-start: var(--space-2xs); }
.mt-xs { margin-block-start: var(--space-xs); }
.mt-sm { margin-block-start: var(--space-sm); }
.mt-md { margin-block-start: var(--space-md); }
.mt-lg { margin-block-start: var(--space-lg); }
.mt-xl { margin-block-start: var(--space-xl); }
.mt-2xl { margin-block-start: var(--space-2xl); }
.mt-3xl { margin-block-start: var(--space-3xl); }
.mt-4xl { margin-block-start: var(--space-4xl); }
.mt-5xl { margin-block-start: var(--space-5xl); }

.mb-2xs { margin-block-end: var(--space-2xs); }
.mb-xs { margin-block-end: var(--space-xs); }
.mb-sm { margin-block-end: var(--space-sm); }
.mb-md { margin-block-end: var(--space-md); }
.mb-lg { margin-block-end: var(--space-lg); }
.mb-xl { margin-block-end: var(--space-xl); }
.mb-2xl { margin-block-end: var(--space-2xl); }
.mb-3xl { margin-block-end: var(--space-3xl); }
.mb-4xl { margin-block-end: var(--space-4xl); }
.mb-5xl { margin-block-end: var(--space-5xl); }

.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: 10000;
  background-color: var(--color-muted-copper);
  color: var(--color-harbour-navy);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-button);
  transition: top var(--transition-fast);
}

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

@media (min-width: 48rem) {
  .section {
    padding-block: var(--space-4xl);
  }

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
