:root {
  /* Core palette (dark theme) */
  --bg: #0c0b10;
  --surface: #16151c;
  --text: #f2efe9;
  --muted: #a39e96;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f97d4a; /* warm "raw" rust-orange, brightened for dark bg */
  --accent-2: #ffb27a; /* amber complement */
  --accent-soft: rgba(249, 125, 74, 0.14);

  /* Glassmorphism tokens (dark) */
  --glass-bg: rgba(28, 26, 36, 0.55);
  --glass-bg-strong: rgba(28, 26, 36, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.07);
  --glass-blur: saturate(160%) blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-shadow-hover: 0 18px 50px rgba(249, 125, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);

  --radius: 18px;
  --radius-sm: 12px;

  --max: 720px;
  --max-wide: 1040px;
}

* { box-sizing: border-box; }

/* Author-level so it beats class display rules (e.g. .post-card { display:flex }) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 600px at 8% -5%, rgba(249, 125, 74, 0.06), transparent 60%),
    radial-gradient(800px 700px at 100% 0%, rgba(194, 65, 12, 0.05), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, rgba(120, 90, 220, 0.10), transparent 60%),
    linear-gradient(160deg, #070609 0%, #050407 50%, #09070c 100%);
  background-attachment: fixed;
}

/* Floating ambient orbs behind the frosted glass */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 460px;
  height: 460px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle at 30% 30%, #b85c2e, #7a2c08);
  opacity: 0.32;
  animation: float-a 22s ease-in-out infinite;
}
body::after {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle at 70% 70%, #9b7bff, #5a37c4);
  opacity: 0.42;
  animation: float-b 26s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header — frosted sticky bar */
.site-header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-soft);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}
.brand-dot { color: var(--accent); }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

/* Hamburger toggle — hidden on wide screens, shown when the nav collapses */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.nav-toggle svg { display: block; width: 1.3rem; height: 1.3rem; }

@media (max-width: 1040px) {
  .header-inner { position: relative; }
  .brand { order: 1; flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; order: 2; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav {
    order: 4;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem 1.25rem 0.9rem;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-soft);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    z-index: 20;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.55rem 0.6rem; border-radius: 8px; }
  .nav-sep { display: none; }
}

/* Hero */
.hero-section { padding: 3.5rem 0 2.5rem; max-width: var(--max); }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--text) 25%, var(--accent) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 34rem; }

/* Homepage sections */
.home-section { margin-bottom: 3.75rem; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--glass-border-soft);
}
.section-title-wrap { min-width: 0; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.2rem;
}
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.1;
  margin: 0;
}
.section-more {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.section-more:hover {
  color: var(--accent);
  text-decoration: none;
  border-color: rgba(249, 125, 74, 0.45);
  background: var(--accent-soft);
}
/* Section grids sit close together — drop the big trailing gap the base grid has. */
.home-section .post-grid { padding-bottom: 0; }

/* Featured showcase — one large lead + two stacked, magazine style */
.showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}
.feat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 218px;
  padding: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feat-card--lead {
  grid-row: span 2;
  min-height: 460px;
  padding: 2rem;
}
.feat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 7, 12, 0.95), rgba(8, 7, 12, 0.35) 58%, rgba(8, 7, 12, 0.15));
}
.feat-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
  border-color: rgba(249, 125, 74, 0.5);
  box-shadow: var(--glass-shadow-hover);
}
.feat-card:hover .feat-card-img { transform: scale(1.05); }
.feat-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a0f08;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(249, 125, 74, 0.5);
}
.feat-body { position: relative; }
.feat-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.feat-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-2);
}
.feat-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}
.feat-card--lead .feat-title { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.feat-desc {
  color: rgba(255, 255, 255, 0.82);
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  max-width: 42ch;
}

@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1rem; }
  .feat-card--lead { grid-row: auto; min-height: 300px; }
}

/* Stay Connected — full-width newsletter section (flows straight into the footer) */
.newsletter {
  /* Break out of the centered container to span edge-to-edge like the footer. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 1.25rem;
  margin-bottom: 0; /* sit flush against the footer */
  padding: clamp(2rem, 4vw, 3rem) 1.25rem clamp(1.75rem, 3.5vw, 2.75rem);
  position: relative;
  text-align: center;
  border-top: 1px solid var(--glass-border-soft);
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(249, 125, 74, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(20, 17, 26, 0.5), rgba(12, 11, 16, 0.75));
}
.newsletter-inner { position: relative; z-index: 1; max-width: 54rem; margin: 0 auto; }

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 125, 74, 0.3);
  margin-bottom: 1.1rem;
}
.newsletter-badge svg { width: 0.95rem; height: 0.95rem; }

.newsletter-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem;
  background: linear-gradient(120deg, var(--text) 40%, var(--accent-2) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.newsletter-sub { color: var(--muted); font-size: 1.05rem; margin: 0 auto 1.5rem; max-width: 46rem; }

/* Unified input + button capsule */
.newsletter-form { margin: 0; }
.newsletter-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 29rem;
  margin: 0 auto;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.newsletter-field:focus-within {
  border-color: rgba(249, 125, 74, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(249, 125, 74, 0.14);
}
.newsletter-field-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  flex-shrink: 0;
}
.newsletter-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.6rem 0.5rem;
  background: transparent;
  border: none;
  outline: none;
}
.newsletter-input::placeholder { color: var(--muted); opacity: 0.8; }
.newsletter-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #1a0f08;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 5px 16px rgba(249, 125, 74, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(249, 125, 74, 0.55);
  filter: brightness(1.06);
}
.newsletter-btn:disabled { opacity: 0.7; cursor: default; transform: none; }

.newsletter-perks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.newsletter-perks li { display: flex; align-items: center; gap: 0.45rem; }
.newsletter-perks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(249, 125, 74, 0.7);
}
.newsletter-status { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.newsletter-status.is-success { color: var(--accent-2); font-weight: 600; }

/* Until a Kit form UID is wired in, keep the button inert. */
.newsletter-form[data-configured='false'] .newsletter-btn { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 520px) {
  .newsletter-field { flex-direction: column; gap: 0.5rem; padding: 0.6rem; border-radius: 18px; }
  .newsletter-field-icon { display: none; }
  .newsletter-input { width: 100%; text-align: center; padding: 0.6rem; }
  .newsletter-btn { width: 100%; }
}

/* Header search */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 180px;
  max-width: 340px;
}
.header-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
}
#search {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0.95rem 0.5rem 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#search::placeholder { color: var(--muted); opacity: 0.8; }
#search:focus {
  border-color: rgba(249, 125, 74, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(249, 125, 74, 0.15);
}
.search-count {
  display: block;
  margin: 0 0 1rem;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Shared glass surface */
.featured,
.post-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Featured */
.featured {
  display: block;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 125, 74, 0.12), transparent 55%);
  pointer-events: none;
}
.featured:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(249, 125, 74, 0.45);
  box-shadow: var(--glass-shadow-hover);
}
.featured-img {
  display: block;
  position: relative;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.featured-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(249, 125, 74, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  position: relative;
}
.featured h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  position: relative;
}
.featured p { color: var(--muted); margin: 0; position: relative; }

/* Latest box with image: title + description overlaid inside the image */
.featured--image {
  padding: 0;
  display: flex;
  align-items: flex-end;
  height: clamp(260px, 34vw, 420px);
}
.featured--image::before { display: none; }
.featured--image .featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
.featured--image .featured-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.5rem 1.75rem 1.6rem;
  background: linear-gradient(
    to top,
    rgba(8, 7, 12, 0.92),
    rgba(8, 7, 12, 0.55) 45%,
    transparent
  );
}
.featured--image .featured-body h2 { margin: 0 0 0.4rem; }
.featured--image .featured-body p { color: rgba(255, 255, 255, 0.82); }

/* Post grid + cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.post-card {
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 125, 74, 0.45);
  box-shadow: var(--glass-shadow-hover);
}
.post-card-img {
  display: block;
  margin: -1.4rem -1.4rem 0.4rem; /* bleed past the card padding to the edges */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(255, 255, 255, 0.04);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.post-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: auto; /* keep date/tags pinned to the card bottom */
}
.post-card-tags { display: flex; gap: 0.5rem; }
.post-card-tags a { color: var(--muted); }

/* Single-column (narrow): cards with an image overlay their text on it */
@media (max-width: 660px) {
  .post-grid { grid-template-columns: 1fr; }

  .post-card--media {
    position: relative;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    display: block;
  }
  .post-card--media .post-card-img {
    position: absolute;
    inset: 0;
    margin: 0;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
  }
  .post-card--media .post-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    gap: 0.35rem;
    padding: 2.5rem 1.25rem 1.1rem;
    background: linear-gradient(
      to top,
      rgba(8, 7, 12, 0.92),
      rgba(8, 7, 12, 0.5) 55%,
      transparent
    );
  }
  .post-card--media .post-card-title a { color: #fff; }
  .post-card--media .post-card-title a:hover { color: var(--accent-2); }
  .post-card--media .post-card-meta { color: rgba(255, 255, 255, 0.8); margin-top: 0; }
  .post-card--media .post-card-tags a { color: rgba(255, 255, 255, 0.7); }
}

/* Difficulty level — a separate taxonomy from category/tags */
.post-card-tax {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.level-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  line-height: 1.6;
  transition: background 0.18s ease, transform 0.18s ease;
}
.level-badge:hover { text-decoration: none; transform: translateY(-1px); }
.level-beginner { color: #4ade80; }
.level-beginner:hover { background: rgba(74, 222, 128, 0.14); }

/* Level links in the header nav */
.nav-sep {
  width: 1px;
  align-self: stretch;
  margin: 0 0.2rem;
  background: var(--glass-border);
}
.nav-level {
  text-transform: capitalize;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.nav .nav-level.level-beginner { color: #4ade80; }
.nav-level:hover { text-decoration: none; background: rgba(255, 255, 255, 0.06); }

/* Archive headers */
.archive-header { padding: 3rem 0 1.5rem; }
.archive-header .eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.25rem;
}
.archive-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.25rem;
  margin: 0 0 0.25rem;
}
.archive-header p { color: var(--muted); margin: 0; }

.empty-state {
  color: var(--muted);
  padding: 2rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}

/* Article */
.prose { max-width: var(--max); margin: 0 auto; padding: 2.5rem 0 4rem; }
.post-header {
  margin-bottom: 2rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.75rem;
}
.post-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0.5rem 0;
}
.post-lede { font-size: 1.2rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.post-meta { color: var(--muted); font-size: 0.9rem; }
.hero {
  /* Break out of the narrower .prose text column so the hero reads as a
     full-width banner, capped at the wider .container width on desktop. */
  width: 100vw;
  max-width: var(--max-wide);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.75rem; /* topmost element of the article */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.post-body { font-size: 1.075rem; }
.post-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  margin: 2.25rem 0 0.75rem;
}
.post-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  margin: 1.75rem 0 0.5rem;
}
.post-body p { margin: 1rem 0; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin: 0.4rem 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  color: var(--muted);
  font-style: italic;
  background: linear-gradient(90deg, rgba(249, 125, 74, 0.10), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-body pre {
  position: relative;
  background: rgba(8, 7, 12, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f0ece4;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.post-body pre:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.copy-btn.copied {
  opacity: 1;
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.12);
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
.post-body :not(pre) > code {
  background: rgba(249, 125, 74, 0.14);
  border: 1px solid rgba(249, 125, 74, 0.22);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}
.post-body img { max-width: 100%; border-radius: var(--radius-sm); }

.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border-soft);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.post-tags a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.25rem 0.7rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.post-tags a:hover {
  color: var(--accent);
  text-decoration: none;
  border-color: rgba(249, 125, 74, 0.5);
  transform: translateY(-1px);
}

/* Footer — frosted bar */
.site-footer {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-soft);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1rem; }
