@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #000; }
a:hover { opacity: 0.7; }

/* ── Screen-reader only ───────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Site wrap ────────────────────────────────────────────── */
.site-wrap {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.brand {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #000;
  text-transform: uppercase;
}

/* ── Primary nav ──────────────────────────────────────────── */
.primary-nav {
  flex: 1;
  overflow: hidden;
}

.primary-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav ol li a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.primary-nav ol li a:hover {
  border-color: #000;
  opacity: 1;
}

/* ── Header CTA buttons ───────────────────────────────────── */
.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cta-signup {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

.cta-signup:hover {
  background: #333;
  border-color: #333;
  opacity: 1;
}

.cta-login {
  background: transparent;
  color: #000;
  border: 2px solid #000;
}

.cta-login:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* ── Hamburger toggle ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: none;
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ───────────────────────────────────────────── */
.mobile-nav {
  border-top: 1px solid #e0e0e0;
  background: #fff;
  padding: 1rem 1.5rem;
}

.mobile-nav ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav ol li a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #f0f0f0;
  min-height: 44px;
  line-height: 1.3;
}

.mobile-cta {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.mobile-cta .cta {
  flex: 1;
  text-align: center;
}

/* ── Anchor strip ─────────────────────────────────────────── */
.anchor-strip {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.anchor-inner {
  display: flex;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
}

.anchor-inner a {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  transition: background 0.2s, border-color 0.2s;
}

.anchor-inner a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  opacity: 1;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.4rem;
}

/* ── Hero section (home) ──────────────────────────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
  align-items: stretch;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: repeating-linear-gradient(
    45deg,
    #f0f0f0,
    #f0f0f0 10px,
    #e8e8e8 10px,
    #e8e8e8 20px
  );
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 3rem 0 3rem 3rem;
}

.hero-copy h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  max-width: 40ch;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  background: transparent;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* ── Content section (home) ───────────────────────────────── */
.content-section {
  border-top: 2px solid #000;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Content with sidebar ─────────────────────────────────── */
.content-with-sidebar,
.guide-layout,
.inner-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  border-right: 2px solid #000;
  padding-right: 1.5rem;
}

.sidebar-heading {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sidebar-nav li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #eee;
  min-height: 36px;
  line-height: 1.4;
  transition: color 0.2s;
}

.sidebar-nav li a:hover {
  color: #555;
  opacity: 1;
}

/* ── Article body ─────────────────────────────────────────── */
.article-body {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 70ch;
}

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.article-body p { margin-bottom: 1rem; }

.article-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { opacity: 0.6; }

.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.article-body li { margin-bottom: 0.3rem; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.article-body th, .article-body td {
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.article-body th {
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-body blockquote {
  border-left: 4px solid #000;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background: #f8f8f8;
  font-style: italic;
}

/* ── Byline ───────────────────────────────────────────────── */
.byline {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 500;
}

.byline time { font-variant-numeric: tabular-nums; }

/* ── Stage pill ───────────────────────────────────────────── */
.stage-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Guide eyebrow fig / page eyebrow ─────────────────────── */
.guide-eyebrow-fig,
.page-eyebrow-fig {
  margin-bottom: 0.5rem;
}

.fig-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: #000;
}

.guide-meta-aside,
.page-label-aside {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── Guide hero img ───────────────────────────────────────── */
.guide-hero-figure {
  margin: 1rem 0 1.5rem;
}

.guide-hero-img {
  width: 100%;
  border-radius: 10px;
  max-height: 360px;
  object-fit: cover;
}

/* ── Section rule / guides section ───────────────────────────*/
.guides-section {
  border-top: 2px solid #000;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.guides-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-figure { margin-bottom: 0.5rem; }

/* ── Guide grid (home child cards) ───────────────────────────*/
.guide-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  border: 1.5px solid #000;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.22s;
}

.card:hover {
  box-shadow: 4px 4px 0 #000;
}

.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.card h3 a {
  text-decoration: none;
  color: #000;
}

.card h3 a:hover {
  text-decoration: underline;
  opacity: 1;
}

.card p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  flex: 1;
}

.card-meta {
  font-size: 0.75rem;
  color: #888;
}

/* ── Author section ───────────────────────────────────────── */
.author-section {
  margin-top: 2.5rem;
  border-top: 2px solid #000;
  padding-top: 1.5rem;
}

.author-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 65ch;
}

/* ── FAQ specifics ────────────────────────────────────────── */
.faq-body details {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
}

.faq-body details summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.faq-body details summary::-webkit-details-marker { display: none; }

.faq-body details[open] summary { color: #000; }

/* ── Changelog specifics ──────────────────────────────────── */
.changelog-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 3px solid #000;
  padding-left: 0.75rem;
  margin-top: 2rem;
}

/* ── Guide main wrapper ───────────────────────────────────── */
.guide-main { min-width: 0; }
.inner-main { min-width: 0; }

.inner-main section,
.guide-main section {
  display: flex;
  flex-direction: column;
}

.inner-main h1,
.guide-main h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid #000;
  background: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.footer-col dt {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.35rem;
}

.footer-col dd {
  margin: 0 0 0.4rem;
}

.footer-col dd a {
  font-size: 0.85rem;
  text-decoration: none;
  color: #000;
  display: inline-block;
  min-height: 28px;
  line-height: 1.5;
}

.footer-col dd a:hover {
  text-decoration: underline;
  opacity: 1;
}

.subscribe-blurb {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscribe-form input[type="email"] {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #000;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]:focus {
  border-color: #555;
}

.subscribe-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: #000;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #000;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.subscribe-form button:hover {
  background: #fff;
  color: #000;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  text-align: center;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.copyright {
  font-size: 0.78rem;
  color: #555;
}

.rg-notice {
  font-size: 0.72rem;
  color: #888;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }

  .hero-figure { min-height: 220px; }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 0;
  }

  .hero-lead { max-width: 100%; }

  .content-with-sidebar,
  .guide-layout,
  .inner-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 2px solid #000;
    padding-right: 0;
    padding-bottom: 1rem;
  }

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

  .footer-col--subscribe {
    grid-column: 1 / -1;
  }

  .anchor-strip { top: 60px; }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }

  .content-section,
  .guides-section {
    padding: 1.5rem 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .footer-col--subscribe { grid-column: auto; }

  .footer-bottom {
    padding: 1rem;
  }

  .hero-section { padding: 0 1rem; }

  .content-with-sidebar,
  .guide-layout,
  .inner-layout {
    padding: 1.25rem 1rem;
  }

  .inner-main h1,
  .guide-main h1 {
    font-size: 1.5rem;
  }

  .anchor-inner {
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}