:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel-soft: #111418;
  --text: #f2f0ea;
  --muted: #a9adb5;
  --line: #2a2f37;
  --accent: #d8b36a;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 179, 106, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(216, 179, 106, 0.55);
  text-underline-offset: 0.22em;
}

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

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-block;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

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

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

main {
  padding: 58px 0 24px;
}

.intro {
  padding-bottom: 48px;
}

.eyebrow,
.post-meta,
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 11vw, 6.7rem);
  font-weight: 500;
}

.page-title {
  max-width: 13ch;
}

.post-title {
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  font-weight: 500;
}

.lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-heading a {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.post-list {
  display: grid;
}

.post-preview {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.post-preview h3 a {
  text-decoration-thickness: 1px;
}

.post-preview p:last-child {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--muted);
}

.page-copy,
.post-body {
  max-width: 680px;
}

.page-copy p,
.post-body p {
  margin: 0 0 1.3rem;
  color: #d9d6ce;
  font-size: 1.08rem;
}

.post-body {
  margin-top: 42px;
}

.post-body h2 {
  margin: 2.2rem 0 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer {
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.redirect-note {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

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

  .site-nav {
    gap: 10px 12px;
  }

  main {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.8rem);
  }
}
