:root {
  color-scheme: dark;
  --night: #090304;
  --night-raised: #211315;
  --glass: rgba(45, 28, 31, 0.78);
  --ember: #ff6f61;
  --ember-soft: #e7a08a;
  --ivory: #fff4dd;
  --muted: #c7aaa2;
  --line: rgba(255, 111, 97, 0.24);
  --paper: #ffe9c4;
  --ink: #2b171a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(128, 38, 35, 0.32), transparent 38rem),
    linear-gradient(180deg, #170708 0%, var(--night) 38rem);
  color: var(--ivory);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ember-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ivory);
}

.site-shell {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.9rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ember-soft);
}

main {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ember-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.2rem;
}

p,
li {
  color: #ead8d0;
}

.lede {
  max-width: 55ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
}

.updated {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.paper-card,
.glass-card {
  margin-top: 2rem;
  border-radius: 1.6rem;
  padding: clamp(1.35rem, 5vw, 2rem);
}

.paper-card {
  background: linear-gradient(145deg, #fff0d1, var(--paper));
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
}

.paper-card h2,
.paper-card p,
.paper-card li,
.paper-card a {
  color: var(--ink);
}

.paper-card h2 {
  margin-top: 0;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 111, 97, 0.12);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--ember);
  color: #fff;
}

.legal-copy {
  max-width: 68ch;
}

.legal-copy ul {
  padding-left: 1.25rem;
}

.legal-copy strong {
  color: var(--ivory);
}

.contact-link {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  font-weight: 750;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: inherit;
}

@media (max-width: 540px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 3.25rem;
  }

  .button-row,
  .button {
    width: 100%;
  }
}

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