:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --surface: #fffaf1;
  --ink: #151817;
  --muted: #65706a;
  --line: #ded4c2;
  --teal: #23666f;
  --red: #ad3f32;
  --gold: #c99420;
  --green: #496f4a;
  --shadow: 0 18px 45px rgba(36, 31, 24, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(21, 24, 23, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 24, 23, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.65;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(246, 241, 231, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}
.brand strong { font-size: 1rem; letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
}
nav a:hover, nav a.active { background: var(--ink); color: var(--surface); }
main {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: clamp(44px, 8vh, 88px) 0 42px;
}
.hero-copy h1, .page-head h1, .article h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #3f4944;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.eyebrow, .section-label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}
.button.primary { background: var(--ink); color: var(--surface); }
.button.secondary { background: transparent; color: var(--ink); }
.hero-image {
  width: 100%;
  aspect-ratio: 1.36;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.band {
  margin: 8px 0 56px;
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-grid, .two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.band h2, .section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.band p { margin: 0; color: #404b45; font-size: 1.05rem; }
.content-section { padding: 8px 0 72px; }
.section-heading { margin-bottom: 22px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 10px 26px rgba(36, 31, 24, 0.07);
  text-decoration: none;
}
.post-card:hover { transform: translateY(-2px); border-color: rgba(35, 102, 111, 0.55); }
.post-meta { color: var(--green); font-size: 0.88rem; font-weight: 750; }
.post-card h3 { margin: 18px 0 10px; font-size: 1.32rem; line-height: 1.22; letter-spacing: 0; }
.post-card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tags span {
  padding: 5px 9px;
  border: 1px solid rgba(35, 102, 111, 0.26);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(35, 102, 111, 0.07);
  font-size: 0.8rem;
  font-weight: 750;
}
.page-head { padding: clamp(52px, 10vh, 104px) 0 44px; }
.page-head p { max-width: 760px; color: #404b45; font-size: 1.12rem; }
.article { max-width: 820px; margin: 0 auto; padding: 54px 0 88px; }
.back-link { display: inline-flex; margin-bottom: 28px; color: var(--teal); font-weight: 800; text-decoration: none; }
.article-body { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.article-body p, .article-body ul { margin: 0 0 20px; }
.article-body code { padding: 2px 6px; border-radius: 6px; background: rgba(21, 24, 23, 0.08); }
.article-body pre { overflow-x: auto; margin: 26px 0; padding: 18px; border-radius: 8px; background: #161817; color: #f8ead3; }
.article-body pre code { padding: 0; background: transparent; }
.timeline { display: grid; gap: 12px; }
.timeline-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline-row span { color: var(--red); font-weight: 850; }
.timeline-row p { margin: 0; color: var(--muted); }
.not-found { min-height: 58vh; }
.site-footer { position: relative; padding: 28px clamp(20px, 5vw, 72px) 36px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer p { margin: 0; }
@media (max-width: 900px) {
  .hero, .intro-grid, .two-column { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; }
  .hero-image { order: -1; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  nav { width: 100%; }
  nav a { flex: 1; }
  main { width: min(100% - 28px, 1160px); }
  .hero-copy h1, .page-head h1, .article h1 { font-size: 2.35rem; }
  .post-card { min-height: 230px; }
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
}
