/*
Theme Name: Bystrzak Maluch
Theme URI: https://bystrzakmaluch.pl
Description: Nowoczesny portal dla rodziców i dzieci – ciepły, kolorowy, z miejscami reklamowymi AdSense
Version: 1.0.0
Author: Bystrzak Maluch
Author URI: https://bystrzakmaluch.pl
Text Domain: bystrzakmaluch
Tags: blog, news, parenting, adsense
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --radius: 1rem;
  --background: oklch(0.985 0.012 75);    /* #FFF8F0 cream */
  --foreground: oklch(0.26 0.06 265);     /* #1A2744 navy */
  --card: oklch(1 0 0);
  --primary: oklch(0.67 0.19 42);         /* #F4631E coral */
  --primary-fg: oklch(0.99 0.005 75);
  --secondary: oklch(0.95 0.03 60);
  --muted: oklch(0.95 0.015 75);
  --muted-fg: oklch(0.5 0.03 265);
  --mint: oklch(0.9 0.07 165);            /* #BDECD7 mint */
  --mint-fg: oklch(0.28 0.06 175);
  --sun: oklch(0.92 0.1 90);
  --sky: oklch(0.9 0.06 235);
  --rose: oklch(0.9 0.06 10);
  --border: oklch(0.9 0.02 70);
  --ad-bg: oklch(0.965 0 0);
  --ad-border: oklch(0.82 0 0);
  --ad-fg: oklch(0.55 0 0);
  --shadow-soft: 0 4px 20px -8px color-mix(in oklab, var(--foreground) 15%, transparent);
  --shadow-warm: 0 24px 60px -24px color-mix(in oklab, var(--primary) 45%, transparent);
  --hero-scrim: linear-gradient(180deg, transparent 30%, color-mix(in oklab, var(--foreground) 85%, transparent));
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container-site {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

/* Grid */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.content-sidebar { display: grid; gap: 2.5rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .content-sidebar { grid-template-columns: 1fr minmax(0, 300px); gap: 2.5rem; }
  .content-sidebar .content-col { grid-column: 1; }
  .content-sidebar .sidebar-col { grid-column: 2; }
}
@media (min-width: 768px) {
  .grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Section header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--foreground);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
}
.section-header a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}
.section-header a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--foreground);
}
.logo-text .accent { color: var(--primary); }
.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* Primary nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
@media (min-width: 768px) {
  .primary-nav { display: flex; }
}
.primary-nav a {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a { background: var(--secondary); color: var(--primary); }

/* Search + hamburger */
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-icon-dark { background: var(--foreground); color: var(--background); }
.btn-icon-dark:hover { background: var(--primary); }
.btn-icon-light { background: var(--secondary); color: var(--foreground); }
.btn-icon-light:hover { background: var(--muted); }
.btn-menu-only { display: flex; }
@media (min-width: 768px) { .btn-menu-only { display: none; } }
.nav-search-only { display: none; }
@media (min-width: 768px) { .nav-search-only { display: grid; } }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding-bottom: 1rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  background: var(--ad-bg);
  border: 1.5px dashed var(--ad-border);
  border-radius: 0.75rem;
  padding: 0.5rem;
}
.ad-slot-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ad-fg);
}
.ad-slot-size { font-size: 0.6875rem; color: var(--ad-fg); opacity: 0.75; }

/* Named ad zones */
.ad-leaderboard {
  margin-inline: auto;
  width: 100%;
  max-width: 728px;
  height: 100px;
}
@media (min-width: 768px) { .ad-leaderboard { height: 90px; } }

.ad-in-feed {
  min-height: 250px;
  border-radius: 1.5rem;
}

.ad-sidebar-rectangle {
  margin-inline: auto;
  width: 100%;
  max-width: 300px;
  height: 600px;
}

.ad-sidebar-small {
  margin-inline: auto;
  width: 100%;
  max-width: 300px;
  height: 250px;
}

.ad-in-article {
  margin-inline: auto;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin-block: 2.5rem;
}

.ad-in-article-bottom {
  margin-inline: auto;
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin-top: 3rem;
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-coral { background: var(--primary); color: var(--primary-fg); }
.pill-mint  { background: var(--mint);    color: var(--mint-fg); }
.pill-sun   { background: var(--sun);     color: var(--foreground); }
.pill-sky   { background: var(--sky);     color: var(--foreground); }
.pill-rose  { background: var(--rose);    color: var(--foreground); }
/* Fallback */
.pill-default { background: var(--muted); color: var(--muted-fg); }

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }

.article-card-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.article-card:hover .article-card-thumb img { transform: scale(1.05); }

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.25rem;
}
.article-card-title {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--foreground);
  transition: color 0.2s;
}
.article-card:hover .article-card-title { color: var(--primary); }
.article-card-title a { color: inherit; }

.article-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.article-card-meta .avatar {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}
.article-card-meta .author { font-weight: 700; color: var(--foreground); }
.article-card-meta .dot { opacity: 0.5; }

/* Mini card (hero row) */
.mini-card {
  display: flex;
  gap: 1rem;
  border-radius: 1.5rem;
  background: var(--card);
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.mini-card-thumb {
  width: 7rem; height: 6rem;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}
.mini-card-info { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.mini-card-read {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.mini-card-title {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow-warm);
}
.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1s ease;
}
@media (min-width: 640px) { .hero-img { aspect-ratio: 16/8; } }
.hero-wrapper:hover .hero-img { transform: scale(1.05); }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-width: 48rem;
  padding: 1.5rem;
}
@media (min-width: 768px) { .hero-content { padding: 3rem; } }

.hero-title {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--primary-fg);
  line-height: 1.05;
  margin-top: 1rem;
}

.hero-excerpt {
  display: none;
  color: oklch(0.99 0.005 75 / 0.85);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin-top: 1rem;
}
@media (min-width: 640px) { .hero-excerpt { display: block; } }

.hero-meta { margin-top: 1.5rem; }

/* Meta (light) */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.article-meta.light { color: oklch(0.99 0 0 / 0.8); }
.article-meta .avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.article-meta .meta-info { display: flex; flex-direction: column; }
.article-meta .meta-name { font-weight: 700; }
.article-meta .meta-date { opacity: 0.75; font-size: 0.75rem; }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.section-block { margin-top: 4rem; }

/* Feed grid with in-feed ad every 3 */
.feed-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .feed-grid { grid-template-columns: repeat(3, 1fr); } }

.feed-ad-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { }

.sidebar-sticky { }
@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: 7rem;
  }
}

.sidebar-widget {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

/* Popular posts */
.popular-list { display: flex; flex-direction: column; gap: 1.25rem; }
.popular-item { display: flex; gap: 1rem; align-items: flex-start; }
.popular-num {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 1.875rem;
  font-weight: 900;
  color: color-mix(in oklab, var(--primary) 30%, transparent);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.popular-item:hover .popular-num { color: var(--primary); }
.popular-item a { font-family: "Nunito", ui-rounded, sans-serif; font-size: 0.875rem; font-weight: 700; line-height: 1.35; }
.popular-item a:hover { color: var(--primary); }

/* Newsletter widget */
.newsletter-widget {
  background: var(--mint);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: var(--mint-fg);
}
.newsletter-widget h3 {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--mint-fg);
  margin-bottom: 0;
}
.newsletter-widget p { font-size: 0.875rem; opacity: 0.85; margin-top: 0.5rem; }
.newsletter-form { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-input {
  width: 100%;
  border-radius: 9999px;
  border: none;
  background: var(--card);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  font-family: inherit;
}
.newsletter-input:focus { box-shadow: 0 0 0 2px var(--primary); }
.btn-primary {
  width: 100%;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: "Nunito", ui-rounded, sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-hero-img {
  width: 100%;
  height: 50vh;
  min-height: 280px;
  object-fit: cover;
}
@media (min-width: 768px) { .single-hero-img { height: 70vh; } }

.single-hero-wrap { position: relative; }
.single-hero-wrap .hero-scrim { position: absolute; inset: 0; background: var(--hero-scrim); }

.article-card-wrapper {
  background: var(--card);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-warm);
}
@media (min-width: 768px) { .article-card-wrapper { padding: 3rem; } }

.article-title {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 1.25rem;
}

.article-excerpt-lead {
  font-size: 1.125rem;
  color: var(--muted-fg);
  margin-top: 1.25rem;
  line-height: 1.65;
}
@media (min-width: 768px) { .article-excerpt-lead { font-size: 1.25rem; } }

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
  margin-top: 2rem;
}
.author-avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.9375rem; }
.author-meta { font-size: 0.8125rem; color: var(--muted-fg); }

/* Prose typography */
.prose-article {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-top: 2rem;
}
.prose-article p { margin-bottom: 1.4em; }
.prose-article h2 {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  margin: 2em 0 0.6em;
  line-height: 1.2;
}
.prose-article ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.4em; }
.prose-article li { margin-bottom: 0.4em; }
.prose-article li::marker { color: var(--primary); }
.prose-article blockquote {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
  border-left: 4px solid var(--mint);
  padding: 0.5em 0 0.5em 1.2em;
  margin: 2em 0;
}
.prose-article > p:first-child::first-letter {
  font-family: "Nunito", ui-rounded, sans-serif;
  float: left;
  font-size: 4.2rem;
  line-height: 0.85;
  font-weight: 900;
  color: var(--primary);
  margin: 0.1em 0.12em 0 0;
}

/* ============================================================
   ARTICLE SINGLE LAYOUT (with negative margin pull)
   ============================================================ */
.article-single-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
  margin-top: -10rem;
}
@media (min-width: 1024px) {
  .article-single-grid { grid-template-columns: 1fr minmax(0, 300px); }
  .sidebar-offset { padding-top: 12rem; }
}

/* Related articles */
.related-section { margin-top: 5rem; }
.related-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 6rem;
  background: var(--foreground);
  color: var(--background);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand p {
  max-width: 20rem;
  font-size: 0.875rem;
  color: oklch(0.99 0 0 / 0.7);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: "Nunito", ui-rounded, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--background);
}

.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: oklch(0.99 0 0 / 0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: oklch(0.99 0 0 / 0.1);
  color: var(--background);
  font-size: 1.1rem;
  transition: background-color 0.2s;
}
.social-link:hover { background: var(--primary); }

.footer-bottom {
  border-top: 1px solid oklch(0.99 0 0 / 0.1);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: oklch(0.99 0 0 / 0.6);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}

/* Footer logo (light version) */
.site-footer .logo-text { color: var(--background); }
.site-footer .logo-tagline { color: oklch(0.99 0 0 / 0.5); }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  padding-block: 3rem 2rem;
  border-bottom: 2px solid var(--foreground);
  margin-bottom: 2.5rem;
}
.archive-header .cat-pill { margin-bottom: 1rem; }
.archive-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}
.archive-count { color: var(--muted-fg); font-size: 1rem; margin-top: 0.5rem; }

/* ============================================================
   PAGE (static)
   ============================================================ */
.page-content {
  max-width: 50rem;
  margin-inline: auto;
  padding-block: 3rem;
}
.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.page-body { font-size: 1.125rem; line-height: 1.85; }
.page-body p { margin-bottom: 1.4em; }
.page-body h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.page-body ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.4em; }

/* ============================================================
   404
   ============================================================ */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}
.error-404 .error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.3;
}
.error-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-404 p { color: var(--muted-fg); margin-bottom: 2rem; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }

/* ============================================================
   SEARCH FORM (header)
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: oklch(0.26 0.06 265 / 0.6);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
}
.search-overlay.is-open { display: flex; }
.search-box {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: min(90vw, 36rem);
  box-shadow: var(--shadow-warm);
}
.search-form { display: flex; gap: 0.5rem; }
.search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  outline: none;
  font-family: inherit;
}
.search-input:focus { box-shadow: 0 0 0 2px var(--primary); }
.btn-search {
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-family: inherit;
  transition: opacity 0.2s;
}
.btn-search:hover { opacity: 0.9; }
.btn-close-search {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--muted);
  display: grid; place-items: center;
  font-size: 1.25rem;
  color: var(--foreground);
}

/* ============================================================
   UTILS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.pt-6  { padding-top: 1.5rem; }
.mb-6  { margin-bottom: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex-1 { flex: 1; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.block { display: block; }
