@charset "UTF-8";

:root {
  --sandstone-base: #F7F3E9;
  --sandstone-raised: #E5DED0;
  --highland-olive: #647653;
  --terracotta-alert: #B66C50;
  --antique-brass: #B49A65;
  --ink-forest: #343A35;
  --parchment-muted: #6B6A5E;
  --focus-ring: #B66C50;

  --font-heading: "Marcellus", serif;
  --font-body: "Vollkorn", serif;
  --font-ui: "Manrope", sans-serif;

  --text-display: 56px;
  --text-h1: 44px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-body-large: 18px;
  --text-body: 16px;
  --text-ui: 15px;
  --text-caption: 13px;
  --text-overline: 12px;

  --leading-display: 1.05;
  --leading-h1: 1.1;
  --leading-h2: 1.2;
  --leading-h3: 1.3;
  --leading-h4: 1.35;
  --leading-body-large: 1.65;
  --leading-body: 1.6;
  --leading-ui: 1.4;
  --leading-caption: 1.45;
  --leading-overline: 1.4;

  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --space-6xl: 128px;

  --container-max: 1200px;
  --container-reading: 720px;
  --container-gutter: clamp(20px, 5vw, 64px);

  --border-hairline: 1px solid rgba(52, 58, 53, 0.2);
  --border-subtle: 1px solid rgba(52, 58, 53, 0.12);
  --border-brass: 1px solid var(--antique-brass);
  --border-ink: 1px solid rgba(52, 58, 53, 0.3);

  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-round: 50%;

  --shadow-subtle: 0 1px 2px rgba(52, 58, 53, 0.06);

  --transition-fast: 150ms ease-out;
  --transition-instant: 0ms linear;

  --focus-outline: 3px solid var(--focus-ring);
  --focus-offset: 2px;
}

*,
*::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);
  line-height: var(--leading-body);
  color: var(--ink-forest);
  background-color: var(--sandstone-base);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--highland-olive);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--highland-olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink-forest);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, var(--text-h1));
  line-height: var(--leading-h1);
  letter-spacing: -0.01em;
  margin-block-end: var(--space-xl);
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, var(--text-h2));
  line-height: var(--leading-h2);
  margin-block-end: var(--space-lg);
}

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

h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  margin-block-end: var(--space-md);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-forest);
  margin-block-end: var(--space-lg);
  overflow-wrap: break-word;
}

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

blockquote {
  border-left: 3px solid var(--antique-brass);
  background-color: var(--sandstone-base);
  padding: var(--space-lg) var(--space-xl);
  margin-block-end: var(--space-xl);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--ink-forest);
}

blockquote p {
  font-size: inherit;
  line-height: inherit;
  font-style: inherit;
  margin-block-end: 0;
}

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

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

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

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

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

li {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-forest);
  margin-block-end: var(--space-sm);
}

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

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

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

figcaption {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: 0.02em;
  color: var(--parchment-muted);
  border-top: 1px solid var(--antique-brass);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  text-align: left;
}

hr {
  border: none;
  border-top: 2px solid var(--antique-brass);
  margin-block: var(--space-3xl);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-forest);
}

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

th,
td {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-subtle);
  vertical-align: top;
}

th {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  background-color: var(--sandstone-raised);
  color: var(--ink-forest);
}

caption {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: 0.02em;
  color: var(--parchment-muted);
  text-align: left;
  padding-block-end: var(--space-sm);
}

address {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  color: var(--ink-forest);
  margin-block-end: var(--space-xl);
}

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

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

pre {
  background-color: var(--sandstone-raised);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  overflow-x: auto;
  margin-block-end: var(--space-xl);
}

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

small {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--parchment-muted);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

mark {
  background-color: rgba(180, 154, 101, 0.25);
  color: var(--ink-forest);
  padding: 0 var(--space-xs);
}

abbr[title] {
  text-decoration: underline dotted;
  text-decoration-color: var(--antique-brass);
  text-underline-offset: 3px;
  cursor: help;
}

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

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

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

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-5xl);
  }
}

.surface-raised {
  background-color: var(--sandstone-raised);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
}

.surface-base {
  background-color: var(--sandstone-base);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
}

.card-editorial {
  background-color: var(--sandstone-raised);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
}

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

.card-monster {
  background-color: var(--sandstone-base);
  border: var(--border-subtle);
  border-left: 3px solid var(--antique-brass);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  box-shadow: var(--shadow-subtle);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), filter var(--transition-fast);
  text-decoration: none;
}

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

.btn:active {
  filter: brightness(0.96);
}

.btn-primary {
  background-color: var(--highland-olive);
  color: var(--sandstone-base);
  border-color: var(--highland-olive);
}

.btn-primary:hover {
  background-color: #5a6b4b;
  border-color: #5a6b4b;
  color: var(--sandstone-base);
}

.btn-secondary {
  background-color: #000;
  color: var(--terracotta-alert);
  border-color: var(--terracotta-alert);
}

.btn-secondary:hover {
  background-color: var(--terracotta-alert);
  color: var(--sandstone-base);
  border-color: var(--terracotta-alert);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--highland-olive);
  border-color: transparent;
  padding-inline: var(--space-md);
}

.btn-tertiary:hover {
  background-color: rgba(100, 118, 83, 0.08);
  color: var(--highland-olive);
}

.overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-overline);
  line-height: var(--leading-overline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highland-olive);
  margin-block-end: var(--space-sm);
}

.caption {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: 0.02em;
  color: var(--parchment-muted);
}

.body-large {
  font-family: var(--font-body);
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--ink-forest);
}

.ui-text {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  color: var(--ink-forest);
}

.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-lg);
  z-index: 1000;
  background-color: var(--highland-olive);
  color: var(--sandstone-base);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-ui);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: var(--space-lg);
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}