@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --card: #faf9f5;
  --ring: #c96442;
  --input: #b4b2a7;
  --muted: #ede9de;
  --accent: #e9e6dc;
  --border: #dad9d4;
  --radius: 0.5rem;
  --chart-1: #b05730;
  --chart-2: #9c87f5;
  --chart-3: #ded8c4;
  --chart-4: #dbd3f0;
  --chart-5: #b4552d;
  --popover: #ffffff;
  --primary: #c96442;
  --sidebar: #f5f4ee;
  --secondary: #e9e6dc;
  --background: #faf9f5;
  --foreground: #3d3929;
  --destructive: #141413;
  --sidebar-ring: #b5b5b5;
  --sidebar-accent: #e9e6dc;
  --sidebar-border: #ebebeb;
  --card-foreground: #141413;
  --sidebar-primary: #c96442;
  --muted-foreground: #83827d;
  --accent-foreground: #28261b;
  --popover-foreground: #28261b;
  --primary-foreground: #ffffff;
  --sidebar-foreground: #3d3d3a;
  --secondary-foreground: #535146;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #343434;
  --sidebar-primary-foreground: #fbfbfb;
}

.dark {
  --card: #262624;
  --ring: #d97757;
  --input: #52514a;
  --muted: #1b1b19;
  --accent: #1a1915;
  --border: #3e3e38;
  --chart-1: #b05730;
  --chart-2: #9c87f5;
  --chart-3: #1a1915;
  --chart-4: #2f2b48;
  --chart-5: #b4552d;
  --popover: #30302e;
  --primary: #d97757;
  --sidebar: #1f1e1d;
  --secondary: #faf9f5;
  --background: #262624;
  --foreground: #c3c0b6;
  --destructive: #ef4444;
  --sidebar-ring: #b5b5b5;
  --sidebar-accent: #0f0f0e;
  --sidebar-border: #ebebeb;
  --card-foreground: #faf9f5;
  --sidebar-primary: #343434;
  --muted-foreground: #b7b5a9;
  --accent-foreground: #f5f4ee;
  --popover-foreground: #e5e5e2;
  --primary-foreground: #ffffff;
  --sidebar-foreground: #c3c0b6;
  --secondary-foreground: #30302e;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #c3c0b6;
  --sidebar-primary-foreground: #fbfbfb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 100, 66, 0.13), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(156, 135, 245, 0.12), transparent 28rem),
    linear-gradient(rgba(61,57,41,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,57,41,0.035) 1px, transparent 1px),
    var(--background);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250,249,245,0.2), rgba(250,249,245,0.84) 72%);
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px;
  border: 1px solid rgba(218, 217, 212, 0.82);
  border-radius: 16px;
  background: rgba(250,249,245,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(61, 57, 41, 0.07);
}

.brand { display: inline-flex; align-items: center; gap: 10px; padding-left: 4px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px rgba(201,100,66,0.28);
  font-weight: 900;
}
.brand-text { font-size: 17px; }

.nav { display: flex; align-items: center; gap: 3px; }
.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--secondary-foreground);
  font-size: 14px;
  font-weight: 650;
}
.nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.nav .nav-cta { background: var(--foreground); color: #fff; padding-inline: 15px; }
.nav .nav-cta:hover { background: var(--primary); color: #fff; }

main, .footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  min-height: calc(100vh - 110px);
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 26px;
  align-items: center;
}

.hero-copy { padding: 24px 0; }
.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  color: var(--secondary-foreground);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill span { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 5px rgba(201,100,66,0.14); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--foreground);
}
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 16px; }
h3 { font-size: 25px; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.hero-text { max-width: 640px; color: var(--muted-foreground); font-size: 18px; line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button, .signup button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.button:hover, .signup button:hover { transform: translateY(-1px); }
.primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 14px 32px rgba(201,100,66,0.22); }
.primary:hover { background: #b4552d; }
.secondary { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--border); }
.secondary:hover { background: var(--accent); color: var(--accent-foreground); }
.dark-text { color: var(--foreground); }

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.72), rgba(250,249,245,0.66)),
    radial-gradient(circle at 85% 14%, rgba(201,100,66,0.24), transparent 12rem),
    var(--card);
  box-shadow: 0 28px 80px rgba(61,57,41,0.13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 76px 24px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, rgba(201,100,66,0.14) 0 8px, transparent 8px 18px);
}
.hero-card::after {
  content: '';
  position: absolute;
  left: 24px;
  bottom: 155px;
  width: 170px;
  height: 170px;
  border-radius: 28px;
  border: 1px solid rgba(201,100,66,0.24);
  background: linear-gradient(135deg, rgba(222,216,196,0.82), rgba(233,230,220,0.38));
  transform: rotate(-8deg);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted-foreground); font-family: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card-top strong { color: var(--primary); font-size: 28px; letter-spacing: -0.08em; }
.hero-card h2 { margin-top: auto; max-width: 360px; font-size: clamp(28px, 3.2vw, 42px); }
.hero-card p { max-width: 340px; color: var(--muted-foreground); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.metric-grid div { border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,0.44); padding: 14px; }
.metric-grid strong { display: block; font-size: 25px; letter-spacing: -0.02em; color: var(--foreground); }
.metric-grid span { color: var(--muted-foreground); font-size: 12px; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 4px 0 84px;
}
.signal-strip div {
  min-height: 172px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(250,249,245,0.72);
}
.signal-strip .index, .framework-card span, .post-meta {
  font-family: inherit;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.signal-strip strong { display: block; margin: 30px 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.signal-strip p { color: var(--muted-foreground); line-height: 1.55; margin-bottom: 0; }

.section { margin: 86px 0; }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.eyebrow { margin-bottom: 12px; color: var(--primary); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading > p:last-child { color: var(--muted-foreground); font-size: 17px; line-height: 1.7; }

.posts-grid { display: grid; grid-template-columns: 1.15fr 0.92fr 0.92fr; gap: 14px; }
.post-card {
  min-height: 372px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(61,57,41,0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(61,57,41,0.12); border-color: rgba(201,100,66,0.35); }
.featured-post { background: var(--foreground); color: #faf9f5; }
.post-card p { color: var(--muted-foreground); line-height: 1.68; }
.featured-post p { color: rgba(250,249,245,0.68); }
.post-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.featured-post .post-meta { color: #d97757; }
.post-card a { width: fit-content; color: var(--primary); font-weight: 850; }
.featured-post a { color: #d97757; }

.framework { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.framework-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(61,57,41,0.06);
}
.intro-card { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, #f5f4ee, #faf9f5); }
.step-card p { color: var(--muted-foreground); line-height: 1.68; }
.dark-card { background: #262624; color: #faf9f5; border-color: #3e3e38; }
.dark-card p { color: #b7b5a9; }

.workshops, .newsletter {
  display: grid;
  grid-template-columns: 1fr 0.85fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--accent);
}
.workshops p, .newsletter p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 0; }
.newsletter { grid-template-columns: 1fr 0.9fr; background: #262624; color: #faf9f5; border-color: #3e3e38; }
.newsletter .eyebrow { color: #d97757; }
.newsletter p { color: #b7b5a9; }
.signup { display: grid; gap: 12px; }
.signup input {
  width: 100%;
  min-height: 48px;
  padding: 14px 15px;
  border: 1px solid #52514a;
  border-radius: var(--radius);
  background: #30302e;
  color: #faf9f5;
  font: inherit;
  outline: none;
}
.signup input:focus { border-color: #d97757; box-shadow: 0 0 0 4px rgba(217,119,87,0.14); }
.signup input::placeholder { color: #b7b5a9; }
.signup button { background: #d97757; color: #fff; }
.signup-note { color: #d97757; min-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
}

.article-page { max-width: 920px; margin: 0 auto; padding: 54px 22px 100px; }
.article-page .back { display: inline-flex; margin-bottom: 26px; color: var(--primary); font-weight: 850; }
.article-shell {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 28px 80px rgba(61,57,41,0.11);
}
.article-shell h1 {
  font-family: inherit;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 28px;
}
.article-shell h2 {
  font-family: inherit;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--foreground);
}
.article-shell p, .article-shell li {
  font-family: inherit;
  color: var(--foreground);
  font-size: 19px;
  line-height: 1.85;
  max-width: 68ch;
}
.article-shell ul { padding-left: 22px; margin-bottom: 24px; }
.article-shell li { margin-bottom: 6px; }
.article-shell p a, .article-shell li a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.article-shell p a:hover, .article-shell li a:hover { text-decoration-thickness: 2px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-kicker span { font-family: inherit; font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }
.article-figure { margin: 32px 0; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--border); }
.article-figure figcaption { font-size: 13px; color: var(--muted-foreground); text-align: center; margin-top: 8px; }

/* ── Resources ─────────────────────────────────────────────────────── */
.resource-tag { display: inline-block; font-family: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: 6px; padding: 4px 10px; margin-bottom: 14px; }

/* Hub page */
.resources-page { max-width: 1100px; margin: 0 auto; padding: 54px 22px 100px; }
.resources-hero { max-width: 620px; margin-bottom: 56px; }
.resources-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 16px; }
.resources-hero-sub { font-size: 17px; color: var(--muted-foreground); line-height: 1.7; }
.resources-hero-sub a { color: var(--primary); text-decoration: none; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 72px; }
.resource-card-item { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.15s; }
.resource-card-item:hover { box-shadow: 0 8px 32px rgba(61,57,41,0.10); }
.resource-card-item h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.resource-card-item p { font-size: 15px; color: var(--muted-foreground); line-height: 1.65; margin: 0; flex: 1; }
.resource-meta { display: flex; gap: 12px; font-family: inherit; font-size: 11px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; }
.resource-link { display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--primary); text-decoration: none; margin-top: 4px; }
.resource-link:hover { text-decoration: underline; }
.resource-card-cta { background: var(--foreground); border-color: var(--foreground); }
.resource-card-cta h3, .resource-card-cta p { color: var(--background); }
.resource-card-cta .resource-meta { color: color-mix(in srgb, var(--background) 60%, transparent); }
.resource-card-cta .resource-tag { background: color-mix(in srgb, var(--background) 12%, transparent); border-color: color-mix(in srgb, var(--background) 25%, transparent); color: var(--background); }
.resource-card-cta .resource-link { color: var(--background); }
.resources-subscribe-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.resources-subscribe-strip h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; margin-bottom: 10px; }
.resources-subscribe-strip p { color: var(--muted-foreground); font-size: 15px; line-height: 1.7; }

/* Resource detail page */
.resource-detail-page { max-width: 760px; margin: 0 auto; padding: 54px 22px 100px; }
.resource-detail-page .back { display: inline-flex; margin-bottom: 28px; color: var(--primary); font-weight: 700; text-decoration: none; font-size: 14px; }
.resource-detail-header { margin-bottom: 40px; }
.resource-detail-header h1 { font-family: inherit; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 12px 0 16px; }
.resource-detail-sub { font-size: 18px; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 16px; }
.resource-detail-meta { display: flex; gap: 16px; font-family: inherit; font-size: 12px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; }
.resource-detail-meta a { color: var(--primary); text-decoration: none; }

/* Email gate */
.resource-gate { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(32px, 5vw, 56px); text-align: center; margin-bottom: 40px; }
.resource-gate-inner { max-width: 480px; margin: 0 auto; }
.resource-gate h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.015em; margin-bottom: 12px; }
.resource-gate p { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.resource-gate small { display: block; margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }
.gate-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.gate-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); font-size: 15px; color: var(--foreground); outline: none; }
.gate-form input:focus { border-color: var(--primary); }
.gate-form button { padding: 12px 20px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }

/* Resource content */
.resource-content { display: none; }
.resource-what-you-get { background: color-mix(in srgb, var(--primary) 8%, var(--background)); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 16px; padding: 28px 32px; margin-bottom: 40px; }
.resource-what-you-get h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.resource-what-you-get ul { padding-left: 20px; margin: 0; }
.resource-what-you-get li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; color: var(--foreground); }
.resource-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.resource-step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.resource-step:last-child { border-bottom: none; }
.step-number { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 8px; padding: 6px 10px; height: fit-content; flex-shrink: 0; letter-spacing: 0.04em; }
.step-body h3 { font-family: inherit; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.step-body p { font-family: inherit; font-size: 17px; line-height: 1.8; color: var(--muted-foreground); margin-bottom: 12px; }
.step-body ul { padding-left: 20px; margin-bottom: 0; }
.step-body li { font-family: inherit; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); margin-bottom: 6px; }
.code-block { display: block; font-family: ui-monospace, 'Cascadia Code', Menlo, 'Courier New', monospace; font-size: 13px; background: var(--foreground); color: var(--background); padding: 12px 16px; border-radius: 10px; margin: 12px 0; overflow-x: auto; white-space: pre; }
.resource-tips { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; margin-bottom: 48px; }
.resource-tips h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.resource-tips li { font-size: 15px; line-height: 1.75; color: var(--muted-foreground); margin-bottom: 8px; }
.resource-cta-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); }
.resource-cta-strip p { flex: 1; min-width: 200px; font-size: 15px; color: var(--muted-foreground); margin: 0; }

.resources-banner { padding: 0 22px; }
.resources-banner-inner { background: var(--foreground); color: var(--background); border-radius: 24px; padding: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.resources-banner-inner h2 { font-size: clamp(24px, 3.5vw, 38px); letter-spacing: -0.02em; margin-bottom: 10px; color: var(--background); }
.resources-banner-inner p { font-size: 15px; color: color-mix(in srgb, var(--background) 65%, transparent); line-height: 1.7; }
.resources-banner-inner p a { color: var(--background); }
.resources-banner-inner .eyebrow { color: color-mix(in srgb, var(--background) 50%, transparent); }
.resources-banner-links { display: flex; flex-direction: column; gap: 10px; }
.resources-banner-item { display: flex; flex-direction: column; gap: 4px; background: color-mix(in srgb, var(--background) 8%, transparent); border: 1px solid color-mix(in srgb, var(--background) 15%, transparent); border-radius: 12px; padding: 14px 18px; text-decoration: none; transition: background 0.15s; }
.resources-banner-item:hover { background: color-mix(in srgb, var(--background) 14%, transparent); }
.resources-banner-item .resource-tag { background: color-mix(in srgb, var(--background) 12%, transparent); border-color: color-mix(in srgb, var(--background) 20%, transparent); color: color-mix(in srgb, var(--background) 70%, transparent); }
.resources-banner-item strong { font-size: 14px; font-weight: 700; color: var(--background); }

/* ── Hero social proof ────────────────────────────────────────────── */
.hero-social { margin-top: 18px; }
.hero-social a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-foreground);
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-social a:hover { color: var(--primary); }
.hero-social a span { opacity: 0.5; }
.hero-social a span:first-child,
.hero-social a span:nth-child(3) { opacity: 1; color: var(--foreground); font-weight: 700; }

/* ── Hero card resource link ──────────────────────────────────────── */
.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
}
.hero-card-link:hover { opacity: 0.8; }

/* ── 1:1 session tags ─────────────────────────────────────────────── */
.workshops-body { display: flex; flex-direction: column; }
.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.session-tags span {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ── Work with me, light variant ──────────────────────────────────── */
#work-with-me { background: var(--accent); border-color: var(--border); }
#work-with-me p { margin-bottom: 0; }
.session-tags span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  color: var(--secondary-foreground);
}

/* ── Drop pages ───────────────────────────────────────────────────── */
/* Layout reuses .article-page / .article-shell / .article-kicker */
.drop-description {
  font-size: 18px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 28px;
}
.drop-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.drop-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.drop-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--foreground);
  color: var(--background);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 28px;
}
.drop-body { margin-bottom: 32px; }
.drop-body p { font-size: 17px; line-height: 1.8; color: var(--muted-foreground); margin-bottom: 16px; max-width: 68ch; }
.drop-resources { border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 28px; }
.drop-resources h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.drop-resources ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.drop-resources li { font-size: 15px; color: var(--muted-foreground); }
.drop-resources li a { color: var(--primary); font-weight: 600; text-decoration: none; }
.drop-resources li a:hover { text-decoration: underline; }
.drop-cta { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }

/* ── Drops index ──────────────────────────────────────────────────── */
.drops-empty { color: var(--muted-foreground); text-align: center; padding: 60px 0; grid-column: 1 / -1; font-size: 16px; }

@media (max-width: 680px) {
  .resources-subscribe-strip { grid-template-columns: 1fr; }
  .gate-form { flex-direction: column; }
  .resource-step { flex-direction: column; gap: 12px; }
  .resources-grid { grid-template-columns: 1fr; }
  .resources-banner-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero, .framework, .workshops, .newsletter { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 52px; }
  .hero-card { min-height: 460px; }
  .signal-strip, .posts-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-column: span 2; }
}

@media (max-width: 640px) {
  main, .footer, .site-header { width: min(100% - 24px, 1120px); }
  .nav a { font-size: 13px; padding: 9px 10px; }
  h1 { font-size: clamp(48px, 16vw, 72px); }
  .signal-strip, .posts-grid { grid-template-columns: 1fr; }
  .featured-post { grid-column: auto; }
  .hero-card { min-height: 420px; padding: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .section { margin: 64px 0; }
  .workshops, .newsletter { padding: 22px; }
  .footer { flex-direction: column; }
}

/* ============================================================
   Generative AI Glossary  (/glossary/ and /glossary/<lang>/)
   Reuses the site tokens; no new colours introduced.
   ============================================================ */

.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;
}

.nav a.is-current { background: var(--accent); color: var(--accent-foreground); }

.glossary-page { max-width: 1120px; margin: 0 auto; padding: 46px 22px 96px; }
.glossary-page .back { display: inline-flex; margin-bottom: 24px; color: var(--primary); font-weight: 850; }

/* --- hero --- */
.g-hero {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 28px;
  padding: clamp(26px, 4.4vw, 46px);
  box-shadow: 0 16px 44px rgba(61,57,41,0.06);
}
.g-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 16px; }
.g-sub { max-width: 720px; color: var(--muted-foreground); font-size: 18px; line-height: 1.72; }

.g-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.g-stats div {
  flex: 1 1 130px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--muted);
}
.g-stats strong { font-size: 26px; letter-spacing: -0.02em; }
.g-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-foreground); }

/* --- language switcher --- */
.g-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.g-langs-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); font-weight: 800; margin-right: 4px;
}
.g-lang {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--secondary-foreground);
  font-size: 15px; font-weight: 700; line-height: 1.4;
  transition: background 170ms ease, color 170ms ease, border-color 170ms ease;
}
.g-lang:hover { border-color: rgba(201,100,66,0.45); color: var(--primary); }
.g-lang.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.g-translated-note {
  margin-top: 18px; padding: 12px 15px;
  border-left: 3px solid var(--primary);
  background: var(--muted);
  border-radius: 0 12px 12px 0;
  color: var(--muted-foreground); font-size: 14px; line-height: 1.65;
}

/* --- toolbar --- */
.g-toolbar {
  position: sticky; top: 84px; z-index: 20;
  margin: 30px 0 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(61,57,41,0.07);
}
.g-search { position: relative; display: flex; gap: 8px; }
.g-search input {
  flex: 1; min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--input);
  border-radius: 14px;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit; font-size: 16px;
}
.g-search input:focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.g-search button {
  min-height: 48px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--secondary); color: var(--secondary-foreground);
  font-family: inherit; font-weight: 750; cursor: pointer;
}
.g-search button:hover { background: var(--accent); }

.g-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.g-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--background); color: var(--secondary-foreground);
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.g-cat span { font-size: 11.5px; color: var(--muted-foreground); font-weight: 700; }
.g-cat:hover { border-color: rgba(201,100,66,0.45); color: var(--primary); }
.g-cat.is-active { background: var(--foreground); border-color: var(--foreground); color: #faf9f5; }
.g-cat.is-active span { color: rgba(250,249,245,0.62); }

.g-alpha { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 12px; }
.g-ltr {
  min-width: 29px; padding: 5px 7px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 800;
  color: var(--muted-foreground);
  text-align: center; cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.g-ltr:hover { background: var(--accent); color: var(--primary); }
.g-ltr.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.g-ltr[data-letter="all"] { min-width: auto; padding-inline: 11px; }

.g-count { margin-top: 12px; font-size: 13px; color: var(--muted-foreground); }
.g-empty { margin: 40px 0; text-align: center; color: var(--muted-foreground); font-size: 17px; }

/* --- term list --- */
.g-list { margin-top: 26px; }
.g-letter {
  margin: 34px 0 14px;
  font-size: 15px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  scroll-margin-top: 190px;
}
.g-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

/* The search sets the hidden attribute to filter. The browser's own
   [hidden] { display: none } loses to any author rule that sets display, and
   .g-term / .g-group below both set one, so without this the filter set the
   attribute and nothing disappeared. Class + attribute keeps it winning
   whatever order the rules end up in. */
.g-term[hidden], .g-group[hidden], .g-letter[hidden] { display: none; }

.g-term {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(61,57,41,0.05);
  scroll-margin-top: 200px;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.g-term:hover { transform: translateY(-3px); box-shadow: 0 24px 62px rgba(61,57,41,0.11); border-color: rgba(201,100,66,0.32); }
.g-term.is-target { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,100,66,0.16), 0 24px 62px rgba(61,57,41,0.11); }

.g-term-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.g-term h3 { margin: 0; font-size: 21px; line-height: 1.22; letter-spacing: -0.015em; }
.g-term-en { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); letter-spacing: 0; }

.g-chip {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--muted);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.g-chip:hover { border-color: rgba(201,100,66,0.45); color: var(--primary); }

.g-aka { margin-bottom: 9px; font-size: 13px; color: var(--muted-foreground); }
.g-aka span { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.g-def { color: var(--secondary-foreground); font-size: 15.5px; line-height: 1.68; }
.g-rel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); }
.g-rel span { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.g-rel a { color: var(--primary); font-weight: 700; }
.g-rel a:not(:last-child)::after { content: " ·"; color: var(--muted-foreground); font-weight: 400; }

.g-permalink {
  position: absolute; top: 16px; right: 16px;
  opacity: 0; color: var(--muted-foreground); font-weight: 800; font-size: 14px;
  transition: opacity 150ms ease;
}
.g-term:hover .g-permalink, .g-permalink:focus { opacity: 1; color: var(--primary); }

/* --- closing CTA --- */
.g-cta {
  margin-top: 56px;
  padding: clamp(26px, 4.4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--foreground);
  color: #faf9f5;
  text-align: center;
}
.g-cta h2 { font-size: clamp(28px, 3.6vw, 44px); }
.g-cta p { max-width: 560px; margin: 0 auto 24px; color: rgba(250,249,245,0.7); line-height: 1.7; }
.g-updated { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--muted-foreground); }

@media (max-width: 960px) {
  .g-toolbar { position: static; }
  .g-letter, .g-term { scroll-margin-top: 20px; }
}
@media (max-width: 640px) {
  .glossary-page { padding: 34px 16px 76px; }
  .g-group { grid-template-columns: 1fr; }
  .g-term-head { flex-direction: column; }
  .g-stats div { flex-basis: 100%; }
}

/* toolbar collapses to a compact bar once it sticks, so it does not eat the viewport */
#g-sentinel { height: 1px; margin-bottom: -1px; }
.g-toolbar.is-stuck { padding: 10px 14px; border-radius: 18px; box-shadow: 0 14px 34px rgba(61,57,41,0.13); }
.g-toolbar.is-stuck .g-alpha,
.g-toolbar.is-stuck .g-count { display: none; }
/* but if a letter filter is active, keep the row reachable so it can be seen and cleared */
.g-toolbar.is-stuck.has-letter .g-alpha {
  display: flex; flex-wrap: nowrap; overflow-x: auto; margin-top: 8px; padding-bottom: 3px;
}
.g-toolbar.is-stuck.has-letter .g-ltr { flex: none; }
.g-toolbar.is-stuck .g-search input { min-height: 42px; font-size: 15px; }
.g-toolbar.is-stuck .g-search button { min-height: 42px; }
.g-toolbar.is-stuck .g-cats {
  flex-wrap: nowrap; overflow-x: auto; margin-top: 10px;
  padding-bottom: 3px; scrollbar-width: thin;
}
.g-toolbar.is-stuck .g-cat { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .g-toolbar { transition: padding 160ms ease, box-shadow 160ms ease; }
}

/* ---- returning to the main site from the blog subdomain ----
   The logo points at the apex (standard for a content subdomain) and a "Blog"
   pill marks where you are; the nav also carries an explicit bordered back link,
   because a plain nav item among six was not discoverable. */
.brand-group { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-section {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.brand-section:hover { color: var(--primary); border-color: rgba(201,100,66,0.45); }

.nav a.nav-back {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--secondary-foreground);
  font-weight: 800;
}
.nav a.nav-back:hover {
  border-color: var(--primary);
  background: rgba(201,100,66,0.08);
  color: var(--primary);
}

/* ---- audience filter: the primary way in for a non-engineer ---- */
.g-auds { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
/* one label style for all three filter rows, so they read as a set */
.g-row-label {
  flex: none;
  min-width: 74px;
  margin-right: 2px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
}
.g-aud {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--background); color: var(--secondary-foreground);
  font-family: inherit; font-size: 13.5px; font-weight: 750; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.g-aud span { font-size: 11.5px; color: var(--muted-foreground); font-weight: 700; }
.g-aud:hover { border-color: rgba(201,100,66,0.45); color: var(--primary); }
.g-aud.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.g-aud.is-active span { color: rgba(255,255,255,0.72); }
.g-toolbar.is-stuck .g-auds { flex-wrap: nowrap; overflow-x: auto; margin-top: 10px; padding-bottom: 3px; }
.g-toolbar.is-stuck .g-aud { flex: none; }
.g-toolbar.is-stuck .g-row-label { display: none; }

/* Stop the page collapsing when a filter leaves few or no results. Without a floor
   the document shrinks under the reader mid-scroll, the sticky toolbar detaches and
   re-attaches, and the viewport visibly jumps. */
.g-list { min-height: 70vh; }
.g-empty { min-height: 60vh; padding-top: 48px; }

/* keyboard focus should match the brand, not the browser default blue */
.g-aud:focus-visible,
.g-cat:focus-visible,
.g-ltr:focus-visible,
.g-chip:focus-visible,
.g-search button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.g-aud:focus:not(:focus-visible),
.g-cat:focus:not(:focus-visible),
.g-ltr:focus:not(:focus-visible) { outline: none; }

@media (max-width: 640px) {
  .g-row-label { min-width: 100%; margin-bottom: 2px; }
}
