* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2937;
  background: #ffffff;
}
.page-wrapper { min-height: 100vh; }

/* Header */
.header-container{
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eef2f7;
}
.header-content{
  max-width: 1200px; margin: 0 auto;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 18px; align-items: center;
}
.logo-link{ text-decoration: none; color: inherit; }
.logo{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 700; color: #0B5C5A;
}
.logo-sub{
  font-size: 11px; color: #6b7280; margin-top: 2px;
}
.main-nav{
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.main-nav-link{
  text-decoration: none; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700;
  color: #111827; padding: 6px 0;
}
.main-nav-link:hover{ color: #0B5C5A; }

.header-right{ display: flex; justify-content: flex-end; }
.header-search{
  display: flex; gap: 8px;
}
.header-search input{
  width: 170px; padding: 8px 10px;
  border: 1px solid #dbe2ea; border-radius: 8px;
  font-size: 12px;
}
.header-search button{
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid #0B5C5A; background: #0B5C5A;
  color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer;
}

/* Global blocks */
.main-content{
  max-width: 1200px; margin: 0 auto;
  padding: 40px 22px 70px;
}
.pill{
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: #0B5C5A; background: #e6f4f4;
  padding: 6px 10px; border-radius: 999px;
}
.lead{
  font-size: 16px; line-height: 1.6; color: #4b5563;
}
.page-head h1{ font-family: 'Playfair Display', Georgia, serif; }

/* Name hero */
.name-hero{
  display: grid; grid-template-columns: 1.7fr 1fr;
  gap: 30px; margin-bottom: 60px;
  padding: 28px; border-radius: 18px;
  background: linear-gradient(135deg, #f6fbfb 0%, #fff7ef 100%);
  border: 1px solid #eef2f7;
}
.name-hero h1{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px; line-height: 1.15; margin: 14px 0 10px;
}
.name-filters{
  background: #fff; border: 1px solid #e5e7eb;
  padding: 16px; border-radius: 14px;
}
.filter-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.filter-field label{
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  color: #6b7280; margin-bottom: 6px;
}
.filter-field select, .filter-field input{
  width: 100%; padding: 9px 10px;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 13px;
}
.filter-actions{
  display: flex; align-items: center; gap: 10px;
}
.name-filter-button{
  background: #0B5C5A; color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.name-filter-button:hover{ opacity: .95; }
.name-reset-link{
  font-size: 12px; color: #374151; text-decoration: none;
}
.name-reset-link:hover{ text-decoration: underline; }

.name-hero-right{ display: flex; flex-direction: column; gap: 14px; }
.hero-card{
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 14px; padding: 18px;
}
.hero-card.soft{
  background: #f7fbfb;
}
.hero-emoji{ font-size: 34px; }
.hero-links a{
  display: block; font-size: 12px; text-decoration: none;
  color: #0B5C5A; padding: 6px 0;
}
.cta-link{ font-size: 12px; font-weight: 700; color: #0B5C5A; text-decoration: none; }

/* Sections */
.content-section{
  margin: 50px 0; padding-bottom: 40px;
  border-bottom: 1px solid #eef2f7;
}
.content-section.compact{ padding-bottom: 24px; }
.section-heading{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px; text-align: center;
  margin: 0 0 26px;
}
.section-heading.left-aligned{ text-align: left; }
.section-row{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.section-more{
  font-size: 12px; text-decoration: none; color: #0B5C5A; font-weight: 700;
}

/* Latest cards */
.latest-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.latest-card{
  display: block; text-decoration: none;
  border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 18px; background: #fff; color: inherit;
}
.latest-hero{ font-size: 28px; }
.latest-cat{
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #0B5C5A; margin-top: 8px;
}
.latest-title{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; margin: 8px 0 8px;
}
.latest-excerpt{ font-size: 13px; line-height: 1.5; color: #4b5563; }

/* Category shelf */
.cat-shelf{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shelf-card{
  text-decoration: none; color: inherit;
  border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 16px; background: #fff;
}
.shelf-hero{ font-size: 24px; }
.shelf-title{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; margin: 8px 0 6px;
}
.shelf-excerpt{ font-size: 12px; color: #4b5563; }

/* Name cards grid */
.results-bar{ margin: 16px 0 10px; font-size: 13px; color: #374151; }
.name-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.name-card{
  border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 14px 12px; background: #fff;
}
.baby-name{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; margin: 0;
}
.name-heading-row{
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.name-tag{
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 7px;
  border-radius: 999px; border: 1px solid #d1d5db;
}
.gender-boy{ background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.gender-girl{ background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.gender-unisex{ background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.name-meta{ font-size: 11px; color: #6b7280; margin: 6px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.name-meaning{ font-size: 12.5px; line-height: 1.5; color: #4b5563; }

/* Article */
.article-main{ max-width: 900px; }
.article-head h1{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px; margin: 10px 0 6px;
}
.article-meta{ font-size: 12px; color: #6b7280; }
.article-hero{
  background: #f7fbfb; border: 1px solid #e5e7eb;
  border-radius: 14px; padding: 36px; text-align: center;
  margin: 22px 0 18px;
}
.article-emoji{ font-size: 56px; }
.article-body p{
  font-size: 17px; line-height: 1.75; color: #374151;
}
.article-footer-nav a{ font-size: 12px; font-weight: 700; color: #0B5C5A; text-decoration: none; }

/* Footer */
.footer{
  background: #f7fafc; border-top: 1px solid #eef2f7;
  padding: 50px 22px 30px;
}
.footer-content{ max-width: 1200px; margin: 0 auto; }
.footer-top{
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px; padding-bottom: 26px; border-bottom: 1px solid #e5e7eb;
}
.footer-logo{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 700; color: #0B5C5A;
}
.footer-text{ font-size: 12.5px; color: #4b5563; }
.footer-mini-links a{
  font-size: 12px; color: #0B5C5A; text-decoration: none; margin-right: 10px;
}
.footer-column h3{
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
}
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links a{
  text-decoration: none; color: #4b5563; font-size: 12px;
}
.footer-bottom{
  text-align: center; font-size: 11px; color: #6b7280; padding-top: 18px;
}

/* Responsive */
@media (max-width: 1024px){
  .name-hero{ grid-template-columns: 1fr; }
  .filter-row{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .latest-grid, .cat-shelf, .name-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header-content{ grid-template-columns: 1fr; }
  .header-right{ justify-content: flex-start; }
}
@media (max-width: 640px){
  .filter-row{ grid-template-columns: 1fr; }
  .latest-grid, .cat-shelf, .name-grid{ grid-template-columns: 1fr; }
}
