:root {
  --ink: #0e1412;
  --paper: #e7efe8;
  --muted: #8a9a90;
  --line: rgba(231, 239, 232, 0.14);
  --accent: #c4a35a;
  --accent-2: #2f6f5e;
  --link: #e8c86a;
  --link-hover: #f5e6b8;
  --glow: rgba(47, 111, 94, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --max: 720px;
  --max-wide: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 640px at 78% -8%, var(--glow), transparent 55%),
    radial-gradient(800px 460px at -8% 28%, rgba(196, 163, 90, 0.14), transparent 50%),
    linear-gradient(165deg, #0a100e 0%, #121a17 45%, #0e1412 100%);
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(14, 20, 18, 0.78);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  background: currentColor;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.brand:hover .brand-logo { color: var(--link-hover); }
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}
.top nav a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.82;
  font-size: 0.95rem;
}
.top nav a:hover { opacity: 1; color: var(--link-hover); }
.top nav a.is-active { opacity: 1; color: var(--accent); }

main {
  width: min(100% - 2.5rem, var(--max-wide));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.hero-blog h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.hero-blog .lede {
  color: rgba(231, 239, 232, 0.78);
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 0 0 2rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.post-card {
  display: block;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 26, 23, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  border-color: rgba(196, 163, 90, 0.45);
  transform: translateY(-2px);
  color: inherit;
}
.post-card time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  font-weight: 550;
}
.post-card p {
  margin: 0;
  color: rgba(231, 239, 232, 0.72);
  font-size: 0.98rem;
}

.article {
  width: min(100%, var(--max));
  margin: 0 auto;
}
.article header {
  margin-bottom: 2rem;
}
.article .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.article .deck {
  color: rgba(231, 239, 232, 0.78);
  font-size: 1.12rem;
  margin: 0;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 550;
}
.article p { margin: 0 0 1.15rem; }
.article ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.article li { margin-bottom: 0.45rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: rgba(231, 239, 232, 0.88);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.cta-box {
  margin-top: 2.5rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(47, 111, 94, 0.12);
}
.cta-box p { margin: 0 0 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--accent);
  color: #14110a;
}
.btn.primary:hover { filter: brightness(1.06); color: #14110a; }
.btn.ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--link-hover); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link-hover); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.55;
}

.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(18, 26, 23, 0.45);
}
.toc h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.65rem;
  font-weight: 550;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.toc li { margin-bottom: 0.35rem; font-size: 0.95rem; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 560;
  color: var(--paper);
}
.faq details p {
  margin: 0.65rem 0 0;
  color: rgba(231, 239, 232, 0.82);
}

.related {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}
.related ul { margin: 0; padding-left: 1.15rem; }
.related li { margin-bottom: 0.4rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article h2 { scroll-margin-top: 5rem; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--link-hover); }
.foot-inner {
  width: min(100%, var(--max-wide));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; }
}
