:root {
  color-scheme: light;
  --bg: #f5f0e6;
  --paper: #fffdf7;
  --ink: #24201a;
  --muted: #70675c;
  --line: rgba(36, 32, 26, 0.14);
  --accent: #35695d;
  --accent-strong: #244a42;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(53, 105, 93, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 100%);
  background-size: 28px 28px, auto;
  font-family: "Avenir Next", "Gill Sans", sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

.page {
  max-width: 860px;
  margin: 42px auto 64px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(36, 32, 26, 0.08);
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 2.2em;
}

code {
  border-radius: 6px;
  padding: 0.15em 0.35em;
  background: rgba(53, 105, 93, 0.1);
}

.site-footer {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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