/* Name.li — modern mobile-first theme (from landing page + enhancements) */
:root {
  --ink: #17211d;
  --muted: #617069;
  --paper: #fffdf9;
  --mint: #e6f3ed;
  --leaf: #1f6b50;
  --gold: #efb85c;
  --line: #dbe5df;
  --shadow: 0 18px 55px rgba(24, 56, 43, .12);
  --header-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: var(--header-h);
  padding-bottom: 70px; /* floating footer space */
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--leaf); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }

/* Floating sticky header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,253,249,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, calc(100% - 40px)); margin: auto;
}
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -.05em; }
.brand span { color: var(--leaf); }
nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .94rem; }
nav a:hover { color: var(--ink); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 18px;
  background: var(--leaf); color: #fff; font-weight: 750; cursor: pointer;
  transition: transform .2s, background .2s; font: inherit;
}
.button:hover { background: #16523d; transform: translateY(-1px); color: #fff; }
.button.alt { background: #fff; color: var(--leaf); border: 1px solid var(--line); }
.button.alt:hover { background: var(--mint); }
.button.small { padding: 8px 14px; font-size: .9rem; }

/* Floating footer */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,253,249,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: .88rem; color: var(--muted);
}
.site-footer .inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: min(1120px, calc(100% - 40px)); margin: auto; flex-wrap: wrap;
}
.site-footer a { margin-left: 12px; }

/* Hero */
.hero {
  padding: 72px 0 58px;
  background: linear-gradient(135deg, #f8f0e3 0%, #edf7f1 58%, #dcefe5 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--leaf); font-weight: 800; font-size: .84rem;
  letter-spacing: .09em; text-transform: uppercase;
}
h1 {
  max-width: 690px; margin: 14px 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: .98; letter-spacing: -.07em;
}
.lead { max-width: 580px; margin: 0 0 27px; color: #43534b; font-size: 1.14rem; }
.search {
  display: flex; padding: 7px; gap: 8px; max-width: 610px;
  background: #fff; border: 1px solid rgba(31,107,80,.14);
  border-radius: 18px; box-shadow: var(--shadow);
}
.search input {
  min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 12px;
  color: var(--ink); font: inherit; background: transparent;
}
.search .button { border-radius: 12px; white-space: nowrap; }
.note { margin: 12px 0 0; color: var(--muted); font-size: .84rem; }

/* Name card */
.name-card {
  position: relative; padding: 38px; min-height: 360px;
  border-radius: 30px; background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.name-card:before, .name-card:after {
  position: absolute; content: ""; border-radius: 50%; background: var(--mint);
}
.name-card:before { width: 245px; height: 245px; right: -95px; top: -100px; }
.name-card:after { width: 170px; height: 170px; left: -74px; bottom: -86px; background: #fbefd9; }
.card-label, .tag, .details { position: relative; z-index: 1; }
.card-label { color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.sample-name {
  position: relative; z-index: 1; margin: 36px 0 8px;
  font: italic 700 clamp(2.8rem, 7vw, 4.8rem)/.95 Georgia, serif;
  letter-spacing: -.08em; color: var(--leaf);
}
.meaning { position: relative; z-index: 1; margin: 0 0 20px; color: var(--muted); }
.tag {
  display: inline-block; margin: 0 6px 8px 0; padding: 7px 11px;
  border-radius: 99px; background: #edf7f1; color: var(--leaf);
  font-size: .82rem; font-weight: 750;
}
.tag.gender-boy { background: #e8f0fe; color: #1a56db; }
.tag.gender-girl { background: #fce7f3; color: #9d174d; }
.details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: #56645e; font-size: .93rem; }

/* Sections */
section { padding: 64px 0; }
.section-intro { max-width: 665px; margin-bottom: 32px; }
h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.06; letter-spacing: -.055em; }
.section-intro p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.icon {
  display: grid; place-items: center; width: 43px; height: 43px;
  margin-bottom: 16px; border-radius: 13px; background: var(--mint); color: var(--leaf); font-size: 1.4rem;
}
.feature h3 { margin: 0 0 7px; font-size: 1.08rem; letter-spacing: -.025em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.collections { background: #f4f8f5; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.collection {
  min-height: 130px; padding: 20px; border-radius: 17px;
  background: #fff; border: 1px solid #e2ece6; transition: box-shadow .2s, transform .2s;
}
.collection:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.collection b { display: block; margin-bottom: 7px; font-size: 1.04rem; }
.collection span { color: var(--muted); font-size: .9rem; }

.cta { padding: 56px 0; }
.cta-box {
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
  padding: 40px; border-radius: 25px; background: var(--leaf); color: #fff;
}
.cta-box h2 { max-width: 610px; margin: 0; color: #fff; }
.cta-box p { margin: 10px 0 0; max-width: 620px; color: #d8eee4; }
.cta-box .button { flex: 0 0 auto; background: #fff; color: var(--leaf); }

/* Search results & name pages */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.result-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: box-shadow .2s;
}
.result-card:hover { box-shadow: var(--shadow); }
.result-card h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.03em; }
.result-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.result-card p { margin: 0; font-size: .92rem; color: #4a5a53; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.name-detail { padding: 48px 0; }
.name-hero {
  text-align: center; padding: 40px 20px; border-radius: 28px;
  background: linear-gradient(135deg, #edf7f1, #f8f0e3); margin-bottom: 32px;
}
.name-hero .big-name {
  font: italic 700 clamp(3rem, 10vw, 5.5rem)/1 Georgia, serif;
  color: var(--leaf); letter-spacing: -.06em; margin: 12px 0;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters select, .filters input {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: inherit;
}

/* Forms */
.form-card {
  max-width: 560px; margin: 0 auto; padding: 32px;
  background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }
.alert.success { background: var(--mint); color: var(--leaf); }
.alert.error { background: #fde8e8; color: #9b1c1c; }

/* Content / blog */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1, .prose h2, .prose h3 { letter-spacing: -.03em; }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: 12px; }
.prose .embed-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5rem 0; }
.prose .embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Ads */
.ad-slot, .affiliate-slot { margin: 20px 0; text-align: center; }
.ad-slot { min-height: 90px; background: #f8faf9; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }

/* Admin */
.admin-body { padding-top: 0; padding-bottom: 0; background: #f0f4f2; }
.admin-nav { background: var(--ink); color: #fff; padding: 14px 0; }
.admin-nav .inner { display: flex; gap: 20px; align-items: center; }
.admin-nav a { color: #c8d9d0; }
.admin-nav a:hover { color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { background: var(--mint); font-weight: 700; }
.status-new { color: #1a56db; font-weight: 700; }
.status-spam { color: #9b1c1c; }
.status-read { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  nav a.hide-mobile { display: none; }
  .hero-grid, .features, .collection-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .cta-box { flex-direction: column; text-align: center; }
  .name-card { min-height: 280px; }
  .site-footer .inner { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { padding-bottom: 90px; }
  h1 { font-size: 2.2rem; }
}

/* Share + social */
.share-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
.share-label{font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.share-btn{cursor:pointer;border:0;font:inherit}
.share-btn:hover{background:var(--leaf);color:#fff}
.ad-placeholder a{color:var(--leaf)}
