

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

* {
  margin: 0;
  padding: 0;
}

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

:root {
  --surface-base: #141414;
  --surface-raised: #1a1a1a;
  --surface-sunken: #212121;
  --surface-plate: #f6f1e8;

  --action-primary: #a41f1c;
  --action-hover: #c62f28;
  --action-disabled: #6b6b6b;

  --highlight: #d6a552;
  --highlight-soft: rgba(214, 165, 82, 0.14);
  --glow: rgba(164, 31, 28, 0.38);

  --content-strong: #ffffff;
  --content-muted: #d1d1d1;
  --content-faint: #9a9a9a;
  --content-inverse: #241512;

  --line: rgba(214, 165, 82, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);

  --edge: 0.875em;
  --edge-pill: 1em;
  --motion: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Merriweather Sans', 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1.0625em;
  line-height: 1.7;
  background: var(--surface-base);
  color: var(--content-muted);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--content-strong);
  line-height: 1.18;
}

h1 {
  font-size: 2.25em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.85em;
}

h3 {
  font-size: 1.2em;
}

h4 {
  font-size: 1.02em;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--action-primary);
  color: var(--content-strong);
}

:focus-visible {
  outline: 0.125em solid var(--highlight);
  outline-offset: 0.2em;
}

@media (min-width: 62em) {
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.1em;
  }
}
