:root {
  --color-paper: #e9e1cf;
  --color-paper-white: #f7f3e8;
  --color-paper-deep: #d8ccb5;
  --color-soot: #211e1a;
  --color-soot-muted: #625b50;
  --color-burgundy: #762f35;
  --color-burgundy-deep: #531f27;
  --color-quote-tint: #e2d6be;
  --color-rule: #9b907c;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --text-2xs: 0.75rem;
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.5rem;
  --text-display: clamp(3rem, 7vw, 6.5rem);

  --leading-tight: 0.88;
  --leading-headline: 1.02;
  --leading-subhead: 1.12;
  --leading-section: 1.2;
  --leading-body: 1.55;
  --leading-lead: 1.5;
  --leading-small: 1.35;
  --leading-micro: 1.15;

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

  --container-max: 90rem;
  --container-padding: clamp(1.5rem, 5vw, 4.5rem);

  --surface-page: var(--color-paper);
  --surface-raised: var(--color-paper-white);
  --surface-inset: var(--color-paper-deep);
  --surface-quote: var(--color-quote-tint);

  --border-subtle: 1px solid var(--color-rule);
  --border-ink: 1px solid var(--color-soot);
  --border-accent: 1px solid var(--color-burgundy);
  --rule-double: 3px double var(--color-soot);

  --shadow-paper: 0 5px 18px rgb(33 30 26 / 12%);

  --radius-none: 0;
  --radius-control: 2px;

  --focus-outline: 3px solid var(--color-burgundy-deep);
  --focus-offset: 3px;

  --transition-fast: 160ms ease;
  --transition-standard: 220ms ease;
}

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

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

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--surface-page);
  color: var(--color-soot);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

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

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

img,
video {
  height: auto;
}

img[width][height],
video[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

a {
  color: inherit;
  text-decoration-color: var(--color-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-burgundy);
  text-decoration-color: currentcolor;
}

a:active {
  color: var(--color-burgundy-deep);
}

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

button,
select {
  cursor: pointer;
}

button {
  border: 0;
  border-radius: var(--radius-control);
}

input,
select,
textarea {
  border: var(--border-ink);
  border-radius: var(--radius-none);
  background: var(--surface-raised);
  padding: var(--space-3) var(--space-4);
  line-height: var(--leading-body);
}

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

input::placeholder,
textarea::placeholder {
  color: var(--color-soot-muted);
  opacity: 1;
}

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

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

input[type="file"]::file-selector-button {
  margin-inline-end: var(--space-3);
  border: var(--border-ink);
  border-radius: var(--radius-none);
  background: var(--surface-page);
  color: var(--color-soot);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  cursor: pointer;
}

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

legend {
  padding-inline: var(--space-2);
  color: var(--color-soot);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-section);
}

label {
  display: inline-block;
  margin-block-end: var(--space-2);
  color: var(--color-soot);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

caption {
  margin-block-end: var(--space-2);
  color: var(--color-soot-muted);
  font-size: var(--text-xs);
  text-align: left;
}

th,
td {
  border-bottom: var(--border-subtle);
  padding: var(--space-3);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

th {
  color: var(--color-soot);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

blockquote {
  margin: 0 0 var(--space-5);
  border-inline-start: 3px solid var(--color-burgundy);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  color: var(--color-soot);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: var(--leading-subhead);
}

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

blockquote cite {
  display: block;
  color: var(--color-soot-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: var(--leading-small);
  text-transform: uppercase;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: var(--color-soot);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: var(--leading-tight);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: var(--leading-headline);
}

h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: var(--leading-subhead);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-subhead);
}

h5 {
  font-size: var(--text-lg);
  line-height: var(--leading-section);
}

h6 {
  font-size: var(--text-md);
  line-height: var(--leading-lead);
}

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

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-inline-start: 1.35em;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-block: var(--space-2) 0;
}

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

dt {
  color: var(--color-soot);
  font-weight: 700;
}

dd {
  margin: 0 0 var(--space-3);
  padding: 0;
}

address {
  margin: 0 0 var(--space-4);
  font-style: normal;
}

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

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 0.16em;
  cursor: help;
}

mark {
  background: var(--color-quote-tint);
  color: inherit;
  padding-inline: 0.12em;
}

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

code,
kbd,
samp {
  background: var(--color-paper-deep);
  padding: 0.08em 0.25em;
}

pre {
  margin: 0 0 var(--space-5);
  overflow-x: auto;
  border: var(--border-subtle);
  background: var(--surface-raised);
  padding: var(--space-4);
  font-size: 0.875em;
  line-height: 1.5;
}

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

::selection {
  background: var(--color-burgundy);
  color: var(--color-paper-white);
}

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

.container--wide {
  max-width: none;
}

.surface-paper {
  background: var(--surface-page);
}

.surface-white {
  background: var(--surface-raised);
}

.surface-deep {
  background: var(--surface-inset);
}

.surface-quote {
  background: var(--surface-quote);
}

.panel {
  border: var(--border-subtle);
  background: var(--surface-raised);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.panel > :last-child,
.content-group > :last-child,
.compact-group > :last-child,
.quote-panel > :last-child,
.notice > :last-child {
  margin-block-end: 0;
}

.content-group > :last-child:is(ul, ol, dl, figure, blockquote, pre, table),
.compact-group > :last-child:is(ul, ol, dl, figure, blockquote, pre, table),
.panel > :last-child:is(ul, ol, dl, figure, blockquote, pre, table),
.quote-panel > :last-child:is(ul, ol, dl, figure, blockquote, pre, table),
.notice > :last-child:is(ul, ol, dl, figure, blockquote, pre, table) {
  margin-block-end: 0;
}

.content-group {
  min-width: 0;
}

.compact-group {
  min-width: 0;
}

.compact-group > :not(:last-child) {
  margin-block-end: var(--space-2);
}

.rule-top {
  border-top: var(--border-subtle);
}

.rule-bottom {
  border-bottom: var(--border-subtle);
}

.rule-double {
  border-top: var(--rule-double);
  border-bottom: var(--rule-double);
}

.editorial-label,
.department-marker,
.byline-row,
.dateline,
.archive-label {
  color: var(--color-soot-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--leading-micro);
  text-transform: uppercase;
}

.editorial-label,
.department-marker {
  color: var(--color-burgundy);
}

.byline-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
}

.byline-row > * {
  min-width: 0;
}

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

.drop-cap::first-letter {
  float: left;
  margin: 0.03em 0.1em 0 0;
  color: var(--color-burgundy);
  font-family: var(--font-heading);
  font-size: 3.2em;
  font-weight: 700;
  line-height: 0.76;
}

.quote-panel {
  border-block: var(--border-subtle);
  background: var(--surface-quote);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.quote-panel::before {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-block-end: var(--space-4);
  background: var(--color-burgundy);
  content: "";
}

.notice {
  border: var(--border-subtle);
  border-top: 3px solid var(--color-burgundy);
  background: var(--surface-raised);
  padding: clamp(var(--space-5), 4vw, var(--space-6));
}

.archive-note {
  border-block: var(--border-subtle);
  background: var(--surface-inset);
  padding: var(--space-4) var(--space-5);
}

.image-frame {
  overflow: hidden;
  border: var(--border-ink);
  background: var(--color-paper-deep);
}

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

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

.button,
.button-secondary,
.button-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: var(--leading-small);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button {
  border: var(--border-accent);
  background: var(--color-burgundy);
  color: var(--color-paper-white);
}

.button:hover {
  background: var(--color-burgundy-deep);
  color: var(--color-paper-white);
  box-shadow: inset 0 0 0 1px var(--color-paper-white);
}

.button-secondary {
  border: var(--border-ink);
  background: var(--surface-raised);
  color: var(--color-soot);
}

.button-secondary:hover {
  border-color: var(--color-burgundy);
  background: var(--color-paper);
  color: var(--color-burgundy-deep);
}

.button-link {
  border: 0;
  background: transparent;
  color: var(--color-soot);
  padding-inline: 0;
  text-decoration: underline;
  text-decoration-color: var(--color-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.button-link:hover {
  color: var(--color-burgundy);
}

.button > *,
.button-secondary > *,
.button-link > * {
  min-width: 0;
}

.form-field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  margin-block-end: var(--space-4);
}

.form-field > input,
.form-field > select,
.form-field > textarea {
  width: 100%;
}

.form-error {
  margin: var(--space-2) 0 0;
  color: var(--color-burgundy-deep);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: var(--leading-small);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: var(--border-subtle);
  scrollbar-color: var(--color-burgundy) var(--color-paper-deep);
  scrollbar-width: thin;
}

.table-scroll > table {
  min-width: 36rem;
  margin: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  border: var(--border-ink);
  background: var(--color-paper-white);
  color: var(--color-soot);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 43.75rem) {
  :root {
    --container-padding: 1.5rem;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.75rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.75rem);
  }

  h3 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  blockquote {
    padding-inline-start: var(--space-4);
  }

  fieldset {
    padding: var(--space-4);
  }

  .panel,
  .quote-panel,
  .notice {
    padding: var(--space-5);
  }

  .table-scroll > table {
    min-width: 30rem;
  }
}

@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;
  }
}