:root {
  color-scheme: dark;
  --bg: #12100d;
  --panel: #1a1713;
  --panel-border: #2f2a23;
  --text: #f5efe5;
  --muted: #c4b8a5;
  --accent: #d39c4a;
  --accent-soft: rgba(211, 156, 74, 0.16);
  --shadow: rgba(0, 0, 0, 0.28);
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background: linear-gradient(180deg, #16120e 0%, #0f0d0b 100%);
  color: var(--text);
}

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

a:hover {
  color: #efb867;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(10, 8, 6, 0.92);
  border-bottom: 1px solid var(--panel-border);
}

.site-footer {
  border-top: 1px solid var(--panel-border);
  border-bottom: 0;
  margin-top: 3rem;
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
}

.page-card {
  margin: 2rem 0;
  padding: 1.8rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 20px 48px var(--shadow);
}

.page-header {
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--panel-border);
}

.page-header h1 {
  margin: 0;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero {
  margin-bottom: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--accent-soft);
  border: 1px solid rgba(211, 156, 74, 0.28);
  border-radius: 14px;
}

h2,
h3 {
  line-height: 1.2;
  margin-top: 2rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95em;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

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

  .page-card {
    padding: 1.2rem;
  }
}
