:root {
  --dark: #100f0c;
  --dark-2: #16140f;
  --cream: #f4f0e6;
  --cream-2: #ede7da;
  --cream-3: #e4ddcf;
  --white: #ffffff;
  --ink: #15130f;
  --ink-2: rgba(21, 19, 15, 0.72);
  --ink-3: rgba(21, 19, 15, 0.48);
  --line: rgba(21, 19, 15, 0.1);
  --line-strong: rgba(21, 19, 15, 0.18);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --sand: #d8c8a6;
  --shadow: 0 24px 56px rgba(16, 15, 12, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
    linear-gradient(180deg, #f6f2e9 0%, #f2ede3 100%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 15, 12, 0.92);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.82rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.email-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.email-cta:hover {
  background: var(--cream);
}

.hero {
  padding: 72px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.hero-panel,
.hero-aside,
.surface-card,
.article-card,
.callout-card,
.contact-card,
.placeholder-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 230, 0.96));
  border-radius: var(--radius-lg);
  padding: 48px;
}

.hero-aside {
  background: linear-gradient(180deg, #17150f, #0f0e0b);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-panel h1,
.page-intro h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-panel p,
.page-intro p,
.intro-copy {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 60ch;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
}

.button-primary {
  background: var(--dark);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.mini-button {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-note {
  padding: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-list,
.check-list,
.article-card ul,
.article-card ol,
.topic-list {
  margin: 0;
  padding-left: 18px;
}

.hero-list li,
.check-list li,
.article-card li,
.topic-list li {
  margin-bottom: 8px;
}

.section {
  padding: 24px 0 40px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head h2,
.article-card h2,
.article-card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.section-head p {
  max-width: 54ch;
  color: var(--ink-2);
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card,
.surface-card,
.contact-card,
.callout-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
}

.topic-card {
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-card .tag,
.surface-card .tag,
.callout-card .tag,
.contact-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.topic-card h3,
.surface-card h3,
.callout-card h3,
.contact-card h3,
.article-card h2,
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.topic-card p,
.surface-card p,
.callout-card p,
.contact-card p,
.article-card p,
.article-card li {
  color: var(--ink-2);
}

.topic-card strong,
.article-card strong {
  color: var(--ink);
}

.topic-card .meta-link,
.text-link {
  color: var(--ink);
  font-weight: 600;
}

.multi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.surface-card,
.callout-card,
.contact-card {
  padding: 28px;
}

.shortcut-list,
.footer-links,
.inline-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shortcut-list li + li,
.footer-links li + li,
.inline-links li + li {
  margin-top: 10px;
}

.shortcut-list a,
.footer-links a,
.inline-links a,
.contact-row a,
.article-card a,
.topic-card a,
.callout-card a,
.contact-card a {
  text-decoration: underline;
  text-decoration-color: rgba(21, 19, 15, 0.18);
  text-underline-offset: 3px;
}

.shortcut-list a:hover,
.footer-links a:hover,
.inline-links a:hover,
.contact-row a:hover,
.article-card a:hover {
  text-decoration-color: currentColor;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0 56px;
}

.sidebar {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sidebar-nav,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li + li,
.toc-list li + li {
  margin-top: 8px;
}

.sidebar-nav a,
.toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current="page"],
.toc-list a:hover,
.toc-list a.is-active {
  background: var(--cream-2);
  color: var(--ink);
}

.page-intro {
  padding-top: 28px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.06);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.article-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 36px;
}

.article-card + .article-card {
  margin-top: 18px;
}

.article-card h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 1.35rem;
  margin: 24px 0 10px;
}

.article-card p + p {
  margin-top: 12px;
}

.article-card ul,
.article-card ol {
  margin-top: 12px;
}

.callout-card {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 236, 223, 0.96));
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row strong {
  display: block;
  margin-bottom: 2px;
}

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--green-soft);
  color: var(--dark);
}

.placeholder-card {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(
      -45deg,
      rgba(21, 19, 15, 0.03),
      rgba(21, 19, 15, 0.03) 12px,
      transparent 12px,
      transparent 24px
    );
  border-radius: 22px;
  padding: 26px;
  margin-top: 18px;
}

.placeholder-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.placeholder-card span {
  color: var(--ink-2);
}

.site-footer {
  margin-top: 40px;
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.62);
  max-width: 54ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.footer-links li + li {
  margin-top: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .hero-grid,
  .multi-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 28px 24px;
    background: rgba(16, 15, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header[data-open="true"] .header-nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .email-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-panel,
  .hero-aside,
  .article-card,
  .surface-card,
  .contact-card,
  .callout-card {
    padding: 24px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-panel h1,
  .page-intro h1 {
    font-size: 2.5rem;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }
}
