/* ============================================================
   Bar Crawl Live — Main Stylesheet
   Dark theme, lime primary, blue secondary
   ============================================================ */

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  /* colours */
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-muted: #1e1e1e;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dimmed: #6b7280;
  --primary: oklch(76.8% 0.233 130.85); /* lime-500 */
  --primary-75: oklch(76.8% 0.233 130.85 / 0.75);
  --primary-10: oklch(76.8% 0.233 130.85 / 0.1);
  --primary-dark: oklch(53.2% 0.157 131.589); /* lime-700 */
  --secondary: oklch(62.3% 0.214 259.815); /* blue-500 */
  --inverted: #0a0a0a;

  /* sizing */
  --header-h: 60px;
  --container: 80rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* transitions */
  --t: 150ms ease;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* ─── Utility classes ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Grain overlay ────────────────────────────────────────── */
.site-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
}

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  max-width: 100%;
  padding-inline: 1rem;
}

.site-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  transition: color var(--t);
}
.site-header__logo:hover {
  color: var(--primary);
}

.site-header__center {
  display: none;
}
@media (min-width: 1024px) {
  .site-header__center {
    display: flex;
    align-items: center;
  }
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  flex: 1;
}

/* Primary nav (desktop) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--t);
}
.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  transition: background var(--t);
  z-index: -1;
}
.site-nav a:hover,
.site-nav a.current-menu-item {
  color: var(--text);
}
.site-nav a:hover::before {
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile menu toggle */
.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--t);
}
.site-header__menu-btn:hover {
  background: var(--bg-elevated);
}
@media (min-width: 1024px) {
  .site-header__menu-btn {
    display: none;
  }
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition:
    color var(--t),
    background var(--t);
}
.mobile-menu a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.mobile-menu .btn-primary {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.5);
}
.mobile-overlay.is-open {
  display: block;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.375rem 0.625rem;
  transition:
    background var(--t),
    opacity var(--t);
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.btn-md {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}
.btn-lg {
  font-size: 1rem;
  padding: 0.625rem 1rem;
}
.btn-xl {
  font-size: 1.125rem;
  padding: 0.75rem 1.25rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--inverted);
}
.btn-primary:hover {
  background: var(--primary-75);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary-75) inset;
}
.btn-outline:hover {
  background: var(--primary-10);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
}

/* icon inside button */
.btn svg,
.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
    max-width: 100%;
  }
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .site-footer__nav {
    justify-content: flex-start;
  }
}

.site-footer__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  transition: color var(--t);
}
.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__social {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--t);
}
.site-footer__social a:hover {
  background: var(--bg-elevated);
}
.site-footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Sections / Containers ────────────────────────────────── */
.section {
  padding-block: 4rem;
}
.section-sm {
  padding-block: 2rem;
}
.section-lg {
  padding-block: 6rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
  .section-lg {
    padding-block: 8rem;
  }
}

.inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.inner-sm {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .inner,
  .inner-sm {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .inner,
  .inner-sm {
    padding-inline: 2rem;
  }
}

/* ─── Typography helpers ───────────────────────────────────── */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.section-subheading {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
}
.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 48ch;
}
.text-primary {
  color: var(--primary);
}
.text-muted {
  color: var(--text-muted);
}
.text-dimmed {
  color: var(--text-dimmed);
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.card__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}
.card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: color var(--t);
}
.card-link:hover {
  color: var(--text);
}

/* Crawl card badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--inverted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary) inset;
}
.badge-muted {
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* ─── Grid layouts ─────────────────────────────────────────── */
.grid-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: 3rem 4rem;
}
@media (min-width: 768px) {
  .hero {
    padding-block: 4rem 6rem;
  }
}

.hero__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero__layout {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }
  .hero__content-col {
    flex: 0 0 55%;
  }
  .hero__image-col {
    flex: 1;
  }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 52ch;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero__ctas .btn {
  flex: 1;
  min-width: 8rem;
  justify-content: center;
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Feature section (two-col with feature list) ──────────── */
.feature-section {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .feature-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .feature-section--reversed > :first-child {
    order: 2;
  }
}

.feature-section__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.feature-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}
.feature-item__icon svg {
  width: 100%;
  height: 100%;
}
.feature-item__title {
  font-weight: 600;
  color: var(--text);
}
.feature-item__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

/* ─── Pro Tips / Feature Cards grid ────────────────────────── */
.tip-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tip-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tip-card__body {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ─── Crawl event single page ──────────────────────────────── */
.crawl-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2rem;
}
@media (min-width: 768px) {
  .crawl-hero {
    flex-direction: row;
    align-items: stretch;
    padding: 2rem;
    gap: 2rem;
  }
  .crawl-hero__content {
    flex: 0 0 50%;
  }
  .crawl-hero__image {
    flex: 1;
  }
}

.crawl-hero__title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .crawl-hero__title {
    text-align: left;
  }
}

.crawl-hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.crawl-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crawl-desc-box {
  background: #9ca3af;
  color: #171717;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.crawl-ticket-box {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}
.crawl-ticket-box__price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--inverted);
  line-height: 1;
}
.crawl-ticket-box__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--inverted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.crawl-ticket-box .btn-ticket {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.875rem;
  background: var(--inverted);
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-align: center;
  transition: opacity var(--t);
}
.crawl-ticket-box .btn-ticket:hover {
  opacity: 0.85;
}

.crawl-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.crawl-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.crawl-meta-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmed);
}
.crawl-meta-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Venue list */
.venues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .venues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .venues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.venue-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.venue-item:last-child {
  border-bottom: 0;
}
.venue-item__name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.venue-item__addr {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Venue single */
.venue-card-full {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.venue-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}
.venue-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ─── Accordion / FAQ ──────────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:last-child {
  border-bottom: 0;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--t);
}
.accordion-trigger:hover {
  color: var(--primary);
}
.accordion-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.25s ease,
    padding 0.25s ease;
}
.accordion-content.is-open {
  max-height: 600px;
}
.accordion-content__inner {
  padding-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Newsletter / CTA block ───────────────────────────────── */
.cta-block {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .cta-block {
    padding: 4rem;
  }
  .cta-block__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.cta-block__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.cta-block__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1.5px var(--border) inset;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: box-shadow var(--t);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: var(--text-dimmed);
}
.form-input:focus {
  box-shadow: 0 0 0 2px var(--primary) inset;
}
.form-input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px #ef4444 inset;
}

/* ─── CF7 overrides ────────────────────────────────────────── */
.wpcf7 p {
  display: contents;
}
.wpcf7-form-control-wrap {
  display: block;
}
.wpcf7-not-valid-tip {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}
.wpcf7-response-output {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.wpcf7-mail-sent-ok {
  color: var(--primary);
  border-color: var(--primary);
}
.wpcf7-validation-errors {
  color: #ef4444;
  border-color: #ef4444;
}

/* ─── City page ────────────────────────────────────────────── */
.city-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.city-section {
}
.city-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.city-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Theme page ───────────────────────────────────────────── */
.theme-hero__color {
  height: 6px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.theme-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.theme-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ─── Blog ─────────────────────────────────────────────────── */
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-content h2 {
  font-size: 1.5rem;
}
.post-content h3 {
  font-size: 1.25rem;
}
.post-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
}
.post-content li {
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.post-content ul li {
  list-style: disc;
}
.post-content ol li {
  list-style: decimal;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
}
.post-content img {
  border-radius: var(--radius);
  margin-block: 1.5rem;
}
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-block: 1.5rem;
  color: var(--text);
  font-size: 1.125rem;
  font-style: italic;
}

/* ─── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    background var(--t),
    color var(--t);
}
.pagination a:hover {
  background: var(--bg-muted);
  color: var(--text);
}
.pagination .current span,
.pagination span.current {
  background: var(--primary);
  color: var(--inverted);
  border-color: var(--primary);
}

/* ─── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-dimmed);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb__sep {
  color: var(--text-dimmed);
}

/* ─── 404 page ─────────────────────────────────────────────── */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h));
  padding: 2rem;
}
.page-404__code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* ─── Separator ─────────────────────────────────────────────── */
.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Rank Math breadcrumbs (if enabled) ───────────────────── */
.rank-math-breadcrumb a {
  color: var(--text-muted);
}
.rank-math-breadcrumb .separator {
  margin-inline: 0.375rem;
  color: var(--text-dimmed);
}

/* ─── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--inverted);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t);
}
.skip-link:focus {
  top: 0;
}

/* ─── Misc helpers ──────────────────────────────────────────── */
.uppercase {
  text-transform: uppercase;
}
.text-center {
  text-align: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.ring {
  box-shadow: 0 0 0 1px var(--border);
}
.rounded {
  border-radius: var(--radius);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.overflow-hidden {
  overflow: hidden;
}
.relative {
  position: relative;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.object-cover {
  object-fit: cover;
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .site-grain {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
