/* ═══════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════ */

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-raised: #1a1a1a;
  --color-border: #222222;
  --color-border-subtle: #1a1a1a;

  --color-text: #f0f0f0;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #707070;
  --color-text-faint: #484848;

  --color-pink: #ec4899;
  --color-pink-light: #f472b6;
  --color-pink-dark: #be185d;

  --header-height: 4.25rem;
  --content-max: 860px;
  --wrapper-max: 1200px;
  --wrapper-px: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════ */

html {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text);
  background: var(--color-bg);
  scroll-behavior: smooth;
  font-feature-settings: "cv11", "ss01";
}

body {
  background-image: url("/assets/images/argyle.png");
  background-repeat: repeat;
  background-size: 180px;
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--color-pink);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ═══════════════════════════════════════════════════════════════
   SITE WRAPPER
   ═══════════════════════════════════════════════════════════════ */

.site-wrapper {
  position: relative;
  max-width: var(--wrapper-max);
  margin: 1.5rem auto 0;
  background: var(--color-surface);
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  border-radius: 12px 12px 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-pink-dark),
    var(--color-pink),
    var(--color-pink-dark),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--wrapper-max);
  margin: 0 auto;
  padding: 0 var(--wrapper-px);
  gap: 2rem;
}

/* ── Logo ── */

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  text-decoration: none;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-pink);
  text-shadow: 0 0 18px oklch(0.65 0.28 350 / 0.35);
}

/* ── Desktop Navigation ── */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  height: 100%;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0 0.85rem;
  height: 100%;
  transition: background 0.35s ease;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: var(--color-text-faint);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.35s ease;
}

.nav-icon-moon {
  -webkit-mask-image: url("/assets/images/icons/moon.svg");
  mask-image: url("/assets/images/icons/moon.svg");
}

.nav-icon-lion {
  -webkit-mask-image: url("/assets/images/icons/lion.svg");
  mask-image: url("/assets/images/icons/lion.svg");
}

.nav-icon-martini {
  -webkit-mask-image: url("/assets/images/icons/martini.svg");
  mask-image: url("/assets/images/icons/martini.svg");
}

.desktop-nav a:hover .nav-icon {
  background-color: var(--color-pink);
}

.nav-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
}

.nav-sub {
  font-size: 0.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 4px;
  transition: color 0.35s ease;
}

.desktop-nav a:hover .nav-label {
  color: var(--color-pink);
  text-shadow: 0 0 12px oklch(0.65 0.28 350 / 0.25);
}

.desktop-nav a:hover .nav-sub {
  color: var(--color-text-muted);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-pink);
  box-shadow: 0 0 8px oklch(0.65 0.28 350 / 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.desktop-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    oklch(0.65 0.28 350 / 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.desktop-nav a:hover::after {
  opacity: 1;
}

.desktop-nav a:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TRAINING CTA BUTTON
   ═══════════════════════════════════════════════════════════════ */

.training-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
  transition:
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease;
  box-shadow:
    0 0 12px oklch(0.65 0.28 350 / 0.3),
    0 0 28px oklch(0.65 0.28 350 / 0.1);
  animation: glowPulse 3s ease-in-out infinite;
}

.training-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 250%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.07) 35%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.07) 65%,
    transparent 80%
  );
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

.training-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.training-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 20px oklch(0.65 0.28 350 / 0.55),
    0 0 45px oklch(0.65 0.28 350 / 0.2),
    0 6px 16px rgba(0, 0, 0, 0.35);
}


/* ═══════════════════════════════════════════════════════════════
   HAMBURGER
   ═══════════════════════════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    opacity 0.25s ease,
    background 0.25s ease;
  transform-origin: center;
}

.hamburger-line + .hamburger-line {
  margin-top: 4.5px;
}

.hamburger:hover .hamburger-line {
  background: var(--color-pink);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, oklch(0.25 0.08 350 / 0.2), transparent 65%),
    rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.mobile-menu nav a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    color 0.25s ease;
}

.mobile-menu.active nav a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.active nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active nav a:nth-child(4) { transition-delay: 0.28s; }

.mobile-menu nav a:hover {
  color: var(--color-pink);
}

.mobile-menu nav a svg {
  width: 22px;
  height: 22px;
  opacity: 0.5;
}

.mobile-menu .mobile-training-btn {
  color: var(--color-pink);
  text-shadow: 0 0 20px oklch(0.65 0.28 350 / 0.4);
}

.mobile-menu .mobile-training-btn svg {
  opacity: 0.8;
  filter: drop-shadow(0 0 4px oklch(0.65 0.28 350 / 0.4));
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════ */

.site-main {
  padding: 0 var(--wrapper-px);
  animation: fadeUp 0.5s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: 6rem 0 4rem;
  max-width: var(--content-max);
  margin: 0 auto;
  overflow: visible;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(
    160deg,
    #ffffff 0%,
    #d4d4d4 40%,
    var(--color-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
}

.hero-tagline {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.65 0.28 350 / 0.07),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — POSTS FEED
   ═══════════════════════════════════════════════════════════════ */

.posts-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 5rem;
}

.post-feed {
  display: flex;
  flex-direction: column;
}

.post-entry {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  text-decoration: none;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: border-color 0.3s ease;
}

.post-entry-text {
  flex: 1;
  min-width: 0;
}

.post-entry-image {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.post-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.post-entry:hover .post-entry-image img {
  transform: scale(1.05);
  opacity: 1;
}

.post-entry:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.post-entry::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-pink-dark),
    transparent
  );
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.post-entry:hover::before {
  width: 100%;
}

.post-entry-date {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.post-entry-title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.post-entry:hover .post-entry-title {
  color: var(--color-pink);
}

.post-entry-desc {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.post-entry:hover .post-entry-desc {
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   POST HEADER
   ═══════════════════════════════════════════════════════════════ */

.post-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.post-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-pink);
  text-decoration: none;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  padding: 0.2em 0.6em;
  border: 1px solid var(--color-pink-dark);
  border-radius: 4px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.post-tag:hover {
  background: var(--color-pink-dark);
  color: white;
}

.post-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-text);
}

.post-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.post-header-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 2.5rem;
  border: none;
  background: var(--color-border-subtle);
  position: relative;
}

.post-header-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-pink-dark),
    transparent
  );
  animation: ruleReveal 0.8s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes ruleReveal {
  to {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PROSE — Markdown Content Styling
   Line-height 1.75 for 45–75 char measure at 17px Inter.
   Vertical rhythm based on 1.5em paragraph spacing.
   ═══════════════════════════════════════════════════════════════ */

.post-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 4rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.post-content > * + * {
  margin-top: 1.5em;
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--color-text);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.post-content p {
  margin-top: 1.5em;
  margin-bottom: 0;
}

.post-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content a {
  color: var(--color-pink-light);
  text-decoration: underline;
  text-decoration-color: oklch(0.65 0.28 350 / 0.35);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.post-content a:hover {
  color: var(--color-pink);
  text-decoration-color: var(--color-pink);
}

.post-content ul,
.post-content ol {
  padding-left: 1.25em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.post-content ul {
  list-style: none;
}

.post-content ul li {
  position: relative;
  padding-left: 0.25em;
}

.post-content ul li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-pink-dark);
}

.post-content li + li {
  margin-top: 0.6em;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content ol li::marker {
  color: var(--color-text-muted);
  font-weight: 500;
}

.post-content blockquote {
  border-left: 3px solid var(--color-pink-dark);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: var(--color-surface-raised);
  border-radius: 0 6px 6px 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.post-content blockquote p {
  margin-top: 0;
}

.post-content code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-pink-light);
}

.post-content pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25em 1.5em;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
}

.post-content pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--color-text-secondary);
}

/* ── Images & Figures ── */

.post-content figure {
  border-radius: 8px;
  overflow: hidden;
}

.post-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.post-content .figure-center {
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin: 2em auto;
}

.post-content .figure-left {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  max-width: 260px;
  shape-margin: 1rem;
}

.post-content .figure-right {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  max-width: 260px;
  shape-margin: 1rem;
}

/* ── Embeds (YouTube etc.) ── */

.post-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin: 2em 0;
}

.post-content .eleventy-plugin-youtube-embed {
  position: relative;
  width: 100%;
  margin: 2.5em 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-content .eleventy-plugin-youtube-embed iframe {
  margin: 0;
  border: none;
  border-radius: 0;
  aspect-ratio: unset;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--color-bg);
  margin-top: 2rem;
}

/* ── Footer Top ── */

.footer-top {
  padding: 2rem var(--wrapper-px);
}

.footer-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: 1.75rem;
}

.footer-social a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-faint);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: var(--color-pink);
}

/* ── Footer Main (Columns) ── */

.footer-main {
  padding: 2.5rem var(--wrapper-px) 3rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-faint);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--color-pink);
}

/* ── Footer Brand Column ── */

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

.footer-logo {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-text-faint);
  line-height: 1;
  transition: color 0.3s ease;
}

.footer-logo:hover {
  color: var(--color-pink-dark);
}

.footer-brand-blurb {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-faint);
  max-width: 220px;
}

/* ── Footer Bottom Bar ── */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--wrapper-px);
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.footer-bottom span {
  color: inherit;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE LAYOUT (generic pages: privacy, terms, etc.)
   ═══════════════════════════════════════════════════════════════ */

.page-content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page-header {
  padding: 3.5rem 0 2rem;
}

.page-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-text);
}

.page-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.page-header-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 2.5rem;
  border: none;
  background: var(--color-border-subtle);
  position: relative;
}

.page-header-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-pink),
    var(--color-pink-dark),
    transparent
  );
  animation: ruleReveal 0.8s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.page-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-content > * + * {
  margin-top: 1.5em;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-top: 1em;
  margin-bottom: 0;
}

.page-content a {
  color: var(--color-pink-light);
  text-decoration: underline;
  text-decoration-color: oklch(0.65 0.28 350 / 0.35);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.page-content a:hover {
  color: var(--color-pink);
  text-decoration-color: var(--color-pink);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.categories-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 0.3s ease,
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s ease;
}

.category-card:hover {
  border-color: var(--color-pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.category-card:hover .category-name {
  color: var(--color-pink);
}

.category-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(40%);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 12px oklch(0.65 0.28 350 / 0.3),
      0 0 28px oklch(0.65 0.28 350 / 0.08);
  }
  50% {
    box-shadow:
      0 0 18px oklch(0.65 0.28 350 / 0.45),
      0 0 36px oklch(0.65 0.28 350 / 0.15);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  :root {
    --wrapper-px: 1.25rem;
  }

  .desktop-nav,
  .training-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .post-title {
    font-size: 1.65rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content .figure-left,
  .post-content .figure-right {
    float: none;
    max-width: 100%;
    margin: 1.5em 0;
    shape-margin: 0;
  }

  .post-entry {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .post-entry-image {
    width: 100%;
    height: 180px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    margin-top: 1rem;
  }

  .footer-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }

  .hamburger {
    display: none;
  }
}
