:root {
  --bg: #f6f1e8;
  --bg-elevated: #fffaf3;
  --bg-card: #ffffff;
  --text: #1c1915;
  --muted: #5c564c;
  --accent: #c86a04;
  --accent-2: #9a4f00;
  --accent-soft: rgba(247, 147, 26, 0.16);
  --border: rgba(40, 28, 10, 0.12);
  --shadow: 0 18px 40px rgba(80, 50, 10, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(247, 147, 26, 0.22), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(247, 147, 26, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  font-family: "Source Serif 4", Georgia, serif;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M0 139.5H140M139.5 0V140' stroke='%23000000' stroke-opacity='0.04'/%3E%3C/svg%3E");
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.84rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(247, 147, 26, 0.12);
}

main { max-width: 740px; margin: 0 auto; padding: 56px 24px 100px; }

.hero { padding: 12px 0 28px; }

.kicker {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.35rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lede { font-size: 1.18rem; color: var(--muted); max-width: 40rem; }

.meta {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 22px;
}

.disclaimer {
  margin: 32px 0 40px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.86rem;
  color: var(--muted);
}

h2 { font-size: 1.5rem; margin: 52px 0 14px; font-weight: 600; letter-spacing: -0.015em; }
p { margin-bottom: 16px; }

blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #3a342c;
}

.timeline { margin: 28px 0; border-left: 1px solid var(--border); padding-left: 24px; }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-date {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-grid { display: grid; gap: 14px; margin: 24px 0 8px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

.next {
  margin-top: 72px;
  padding: 28px;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.next h2 { margin-top: 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px 56px;
  text-align: center;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
}

.home-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 88px 24px 36px;
  text-align: center;
}

.home-hero .mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  display: block;
}

.home-hero h1 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.home-hero .lede { margin: 0 auto; }

.rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 28px auto 0;
  border: 0;
}

.chapters {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 24px 96px;
  display: grid;
  gap: 14px;
}

.chapter {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.chapter:hover {
  border-color: rgba(247, 147, 26, 0.55);
  text-decoration: none;
  transform: translateY(-2px);
  color: inherit;
}

.chapter.soon {
  opacity: 0.55;
  box-shadow: none;
}

.chapter .num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter h2 { margin: 8px 0 8px; font-size: 1.45rem; }
.chapter p { color: var(--muted); margin: 0; }

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.note-label {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.note h2 { margin: 0 0 8px; font-size: 1.28rem; }
.note .when {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.note dl { margin: 0; }
.note dt {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
}
.note dd { color: var(--muted); margin: 4px 0 0; }
.template { opacity: 0.7; border-style: dashed; box-shadow: none; }

@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .home-hero { padding-top: 56px; }
}
