:root {
  --paper: #000;
  --ink: #E1DCC9;
  --felt: #2f5233;
  --felt-dark: #223d27;
  --brass: #b98430;
  --line: #d8d2be;
  --third-color: #9f6928;
}

:root {
    --main-color: #000;
    --second-color: #1F150C;
    
    --inverse-color: #E1DCC9;
    --blue: #5b7cde;
    --red: #ed6060;
    --green: #4bba4b;
    --orange: #e0a95b;
    --radius: 0.6em;
    --radius-lg: 1em;
    --gap: 1em;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2 {
  font-family: "DM Sans", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

b { font-weight: 600; color: var(--third-color); }

a { color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand span {
  font-family: "DM Sans", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--brass);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 26, 20, 0.75) 0%, rgba(20, 26, 20, 0) 55%);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  color: var(--ink);
}

.hero-caption p {
  margin: 0.4rem 0 0;
  max-width: 40ch;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-caption strong {
  font-family: "DM Sans", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
}

/* ---------- content ---------- */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

section + section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

section p {
  margin: 0 0 1rem;
}

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

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--third-color);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--third-color);
}

/* ---------- 404 ---------- */

.error-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: left;
}

.error-page .code {
  font-family: "DM Sans", Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--felt);
  margin-bottom: 0.5rem;
}

.error-page a {
  display: inline-block;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--brass);
  text-decoration: none;
  color: var(--ink);
}

/* ---------- responsive & accessibility ---------- */

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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