@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ==============================================
   DESIGN TOKENS — warm light magazine
   ============================================== */
:root {
  --white: #FAFAF8;
  --paper: #F4F2EE;
  --surface: #EDEAE4;
  --ink: #1C1C1E;
  --ink-soft: #3A3A3C;
  --ink-muted: rgba(28,28,30,0.45);
  --border: rgba(28,28,30,0.1);
  --border-strong: rgba(28,28,30,0.2);

  /* Shared accent — teal (darker/primary here vs subtle on author site) */
  --teal: #1B4D4A;
  --teal-light: #2A6E69;
  --teal-pale: rgba(27,77,74,0.08);
  --teal-mid: rgba(27,77,74,0.15);

  /* Secondary accent — warm amber (echoes author site gold, lighter here) */
  --amber: #B8860B;
  --amber-pale: rgba(184,134,11,0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1160px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s;
  --t-med: 0.32s;
}

/* ==============================================
   RESET
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--teal-light); }
::selection { background: var(--teal); color: #fff; }

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  transition: all var(--t-fast);
}

.nav-links a:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ↓'; font-size: 0.65rem; opacity: 0.4; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-med) var(--ease);
  box-shadow: 0 8px 32px rgba(28,28,30,0.1);
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  background: none;
}

.dropdown-menu a:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

.nav-cta a {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 0.5rem 1.25rem !important;
}

.nav-cta a:hover {
  background: var(--teal-light) !important;
  color: #fff !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--t-med) var(--ease);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 4.5rem 0 2rem;
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  display: block;
}

.nav-mobile a:hover { color: var(--teal); background: var(--paper); }

.nav-mobile-section {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 1rem 2rem 0.25rem;
  margin-top: 0.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

/* ==============================================
   HERO — editorial magazine style
   ============================================== */
.hero {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-featured-post {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease);
}

.hero-featured-post:hover {
  box-shadow: 0 12px 40px rgba(28,28,30,0.1);
}

.hero-featured-post-image {
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}

.hero-featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured-post:hover .hero-featured-post-image img {
  transform: scale(1.04);
}

.hero-featured-post-body {
  padding: 1.75rem;
}

.hero-featured-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.hero-featured-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.hero-featured-post-body h2 a { color: inherit; }
.hero-featured-post-body h2 a:hover { color: var(--teal); }

.hero-featured-post-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==============================================
   GENRE HUBS STRIP
   ============================================== */
.genre-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.genre-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  white-space: nowrap;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--t-fast);
  text-decoration: none;
}

.genre-pill:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.genre-strip-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ==============================================
   SECTION BASE
   ============================================== */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

/* ==============================================
   BLOG GRID (main)
   ============================================== */
.blog-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-grid-main .blog-card-large {
  grid-column: span 2;
}

.blog-card-ct {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.blog-card-ct:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,28,30,0.08);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-ct:hover .blog-card-image img { transform: scale(1.04); }

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.blog-card-ct h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.blog-card-large h3 { font-size: 1.6rem; }

.blog-card-ct h3 a { color: inherit; }
.blog-card-ct h3 a:hover { color: var(--teal); }

.blog-card-ct p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.blog-card-readmore {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-readmore::after {
  content: '→';
  transition: transform var(--t-fast);
}

.blog-card-ct:hover .blog-card-readmore::after { transform: translateX(3px); }

/* ==============================================
   GENRE HUB CARDS
   ============================================== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.genre-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  padding: 2rem 1.5rem;
  transition: all var(--t-med) var(--ease);
  text-align: center;
}

.genre-card:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,77,74,0.2);
}

.genre-card:hover * { color: #fff !important; }

.genre-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.genre-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.genre-card p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.genre-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ==============================================
   NAME GENERATOR TEASER
   ============================================== */
.tool-teaser {
  background: var(--teal);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.tool-teaser-inner { max-width: 640px; margin: 0 auto; }

.tool-teaser-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tool-teaser-label::before, .tool-teaser-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.tool-teaser h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}

.tool-teaser p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ==============================================
   BTN
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  border-radius: 4px;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 2px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-white {
  background: #fff;
  color: var(--teal);
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ==============================================
   NEWSLETTER
   ============================================== */
.newsletter-section {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
  text-align: center;
}

.newsletter-inner { max-width: 520px; margin: 0 auto; }

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}

.newsletter-inner p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.newsletter-form input::placeholder { color: var(--ink-muted); }

.newsletter-form button {
  padding: 0.9rem 1.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast);
}

.newsletter-form button:hover { background: var(--teal-light); }

/* ==============================================
   SISTER SITE BANNER
   ============================================== */
.sister-banner {
  background: var(--ink);
  padding: 1rem 2rem;
  text-align: center;
}

.sister-banner p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.sister-banner a {
  color: #fff;
  font-weight: 500;
}

/* ==============================================
   BLOG LISTING
   ============================================== */
.posts-listing { padding: 5rem 2rem; }
.posts-inner { max-width: var(--max-width); margin: 0 auto; }

.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  border-radius: 4px;
  transition: border-color var(--t-fast);
}

.search-input:focus { border-color: var(--teal); }
.search-input::placeholder { color: var(--ink-muted); }

.filter-btn {
  font-size: 0.72rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 100px !important;
}

.filter-btn.active {
  background: var(--teal) !important;
  color: #fff !important;
  border-color: var(--teal) !important;
}

/* Posts as card grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ==============================================
   POST / ARTICLE
   ============================================== */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
}

.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  max-width: 820px;
  margin-top: 0.75rem;
}

.page-hero-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 1.25rem;
}

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.post-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.9; margin-bottom: 1.5rem; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 0.35rem; }

.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.75rem;
  background: var(--teal-pale);
  margin: 2.5rem 0;
  border-radius: 0 4px 4px 0;
}

.post-body blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

/* Affiliate link styling */
.affiliate-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

/* ==============================================
   GENRE HUB PAGE
   ============================================== */
.genre-hub-hero {
  background: var(--teal);
  color: #fff;
  padding: 6rem 2rem 4rem;
}

.genre-hub-hero-inner { max-width: var(--max-width); margin: 0 auto; }

.genre-hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.genre-hub-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.8;
}

/* ==============================================
   NAME GENERATOR PAGE
   ============================================== */
.generator-section {
  padding: 5rem 2rem;
  background: var(--paper);
}

.generator-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.generator-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem;
  margin-top: 3rem;
}

.generator-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.generator-select {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.generator-select:focus { border-color: var(--teal); }

.generator-result {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--teal);
  padding: 2rem 0;
  letter-spacing: -0.01em;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 5rem 2rem 2rem;
  border-top: 3px solid var(--teal);
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .blog-grid-main { grid-template-columns: 1fr 1fr; }
  .blog-grid-main .blog-card-large { grid-column: span 2; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .blog-grid-main { grid-template-columns: 1fr; }
  .blog-grid-main .blog-card-large { grid-column: span 1; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: 0; overflow: visible; }
  .newsletter-form input { border-radius: 4px; border: 1px solid var(--border-strong); }
  .newsletter-form button { border-radius: 4px; }
}

/* ==============================================
   TOOL PAGES — shared
   ============================================== */
.tool-hero {
  background: var(--teal);
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 90% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.tool-hero--scifi {
  background: #0d1b2a;
}

.tool-hero--scifi::before {
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,180,216,0.12) 0%, transparent 60%);
}

.tool-hero--fantasy::before {
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,215,0,0.06) 0%, transparent 60%);
}

.tool-hero--horror {
  background: #0e0e0e;
}

.tool-hero--horror::before {
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(180,0,0,0.10) 0%, transparent 60%);
}

.tool-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tool-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.tool-label-line {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.tool-hero h1 em {
  font-style: italic;
  opacity: 0.85;
}

.tool-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
}

/* Tool body layout */
.tool-body {
  background: var(--paper);
  padding: 4rem 2rem 6rem;
}

.tool-body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* Generator card */
.name-gen-card,
.prompt-gen-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
}

/* Controls */
.name-gen-controls,
.prompt-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.control-group select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  max-width: 320px;
}

/* Pill group */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 2rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Tone slider */
.tone-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tone-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.tone-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.tone-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tone-display {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Generate button */
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 3px;
  transition: background var(--t-fast) var(--ease);
  align-self: flex-start;
}

.btn-generate:hover { background: var(--teal-light); }

.btn-generate--scifi {
  background: #0077b6;
}
.btn-generate--scifi:hover { background: #0096c7; }

.btn-generate--horror {
  background: #8b0000;
}
.btn-generate--horror:hover { background: #a80000; }

.btn-generate-icon {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Output areas */
.name-gen-output {
  min-height: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.prompt-output {
  min-height: 140px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.ng-placeholder {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-style: italic;
  padding: 1rem 0;
}

.ng-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}

.ng-name:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.ng-name.copied {
  border-color: #2a9d8f;
  background: rgba(42,157,143,0.08);
}

.ng-name.copied::after {
  content: '✓ Copied';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #2a9d8f;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Prompt output content */
.prompt-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.prompt-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--teal);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-weight: 500;
}

.prompt-tag--scifi {
  background: #0077b6;
}

.prompt-tone {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.prompt-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
}

/* Action buttons */
.name-gen-actions,
.prompt-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-copy, .btn-regen, .btn-save {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-soft);
}

.btn-copy { background: var(--teal); color: white; border-color: var(--teal); }
.btn-copy:hover { background: var(--teal-light); }
.btn-copy--scifi { background: #0077b6; border-color: #0077b6; }
.btn-copy--scifi:hover { background: #0096c7; }
.btn-regen:hover, .btn-save:hover { border-color: var(--teal); color: var(--teal); }
.btn-clear { font-size: 0.65rem; background: none; border: none; color: var(--ink-muted); cursor: pointer; text-decoration: underline; padding: 0; margin-left: 0.5rem; }

/* History / saved */
.name-history-wrap {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.name-history-inner {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.name-history-inner h4,
.saved-prompts-card h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.name-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.history-tag:hover { border-color: var(--teal); }
.history-tag em { color: var(--ink-muted); font-size: 0.68rem; margin-left: 0.25rem; }

/* Sidebar cards */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-card li {
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.sidebar-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.7rem;
}

.sidebar-card--teal {
  background: var(--teal);
  border-color: var(--teal);
}

.sidebar-card--teal h3 { color: white; }

.sidebar-card--dark {
  background: #1a1a1a;
  border-color: #8b0000;
}

.sidebar-card--dark h3 { color: white; }

.sidebar-card--dark .sidebar-link { color: #e8e8e8; }

.sidebar-card--dark .sidebar-link:hover { color: white; }

.sidebar-card--scifi {
  background: #0d1b2a;
  border-color: #0077b6;
}

.sidebar-card--scifi h3 { color: white; }

.sidebar-link {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--t-fast);
}

.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: white; }

.saved-prompts-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.saved-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.saved-item:last-child { border-bottom: none; }

.saved-item p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex: 1;
  line-height: 1.5;
  font-style: italic;
}

.saved-item button {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-strong);
  background: none;
  cursor: pointer;
  border-radius: 2px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .tool-body-inner {
    grid-template-columns: 1fr;
  }
  .tool-sidebar {
    order: -1;
  }
}

/* ==============================================
   TOOL EMBED (for genre hubs)
   ============================================== */
.tool-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 3rem 0;
}

.tool-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-embed h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.tool-embed-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.tool-embed .prompt-output,
.tool-embed .name-gen-output {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem;
  min-height: 90px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

/* ==============================================
   GENRE HUB HEROES
   ============================================== */
.genre-hub-hero {
  background: var(--teal);
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.genre-hub-hero--scifi {
  background: linear-gradient(135deg, #0d1b2a 0%, #0a2640 100%);
}
.genre-hub-hero--scifi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 85% 50%, rgba(0,150,200,0.15) 0%, transparent 60%);
}

.genre-hub-hero--fantasy {
  background: linear-gradient(135deg, #1B4D4A 0%, #0e2e2b 100%);
}
.genre-hub-hero--fantasy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 15% 50%, rgba(184,134,11,0.12) 0%, transparent 60%);
}

.genre-hub-hero--horror {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 100%);
}
.genre-hub-hero--horror::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(139,0,0,0.15) 0%, transparent 60%);
}

.genre-hub-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.genre-hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.genre-hub-hero h1 em { font-style: italic; opacity: 0.8; }

.genre-hub-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

/* ==============================================
   FREE DOWNLOAD STRIPS
   ============================================== */
.free-download-strip {
  background: var(--teal);
  padding: 3rem 2rem;
}

.free-download-strip--scifi { background: #0d1b2a; }
.free-download-strip--fantasy { background: var(--teal); }
.free-download-strip--horror { background: #1a0a0a; }

.free-download-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.free-download-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.free-download-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  max-width: 480px;
  line-height: 1.7;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.9rem 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-download:hover {
  background: rgba(255,255,255,0.22);
  color: white;
}

.btn-download--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.btn-download--large {
  padding: 1.1rem 2.25rem;
  font-size: 0.9rem;
  background: var(--teal);
  border-color: var(--teal);
}

.btn-download--large.btn-download--dark {
  background: #8b0000;
  border-color: #8b0000;
}

.btn-download--large:hover { background: var(--teal-light); color: white; }
.btn-download--large.btn-download--dark:hover { background: #a00000; color: white; }

.btn-download-icon {
  font-size: 1rem;
  font-weight: 700;
}

/* ==============================================
   DOWNLOAD CARDS
   ============================================== */
.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.download-card-icon {
  font-size: 2.5rem;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.25rem;
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.download-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.download-features li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
}

.download-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.download-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 3px;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* Dystopian hub placeholder */
.genre-hub-hero--dystopian {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

@media (max-width: 640px) {
  .download-card { flex-direction: column; padding: 1.75rem; }
  .free-download-content { flex-direction: column; }
}

/* ==============================================
   LEAD GEN DOWNLOAD PAGES
   ============================================== */
.lead-gen-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.lead-gen-card--horror {
  border-color: rgba(139,0,0,0.2);
}

/* Book preview header strip */
.lead-gen-book-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.lead-gen-book-preview--scifi {
  background: #0d1b2a;
  border-color: #0077b6;
}

.lead-gen-book-preview--horror {
  background: #1a0a0a;
  border-color: rgba(139,0,0,0.4);
}

.book-preview-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  line-height: 1;
}

.lead-gen-book-preview--scifi .book-preview-icon { color: #0096c7; }

.book-preview-meta h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.book-preview-meta p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* Form area */
.lead-gen-form-wrap {
  margin-bottom: 1.5rem;
}

.lead-gen-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.lead-gen-form {
  display: flex;
  gap: 0;
  border: 2px solid var(--teal);
  border-radius: 4px;
  overflow: hidden;
}

.lead-gen-card--horror .lead-gen-form {
  border-color: #8b0000;
}

.lead-gen-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
}

.lead-gen-input::placeholder { color: var(--ink-muted); }

.lead-gen-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.4rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--t-fast) var(--ease);
  flex-shrink: 0;
}

.lead-gen-btn--scifi {
  background: var(--teal);
  color: white;
}
.lead-gen-btn--scifi:hover { background: var(--teal-light); }

.lead-gen-btn--horror {
  background: #8b0000;
  color: white;
}
.lead-gen-btn--horror:hover { background: #a00000; }

.lead-gen-btn-arrow {
  font-size: 1rem;
  transition: transform var(--t-fast) var(--ease);
}
.lead-gen-btn:hover .lead-gen-btn-arrow { transform: translateX(3px); }

.lead-gen-small {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
  line-height: 1.6;
}

/* Divider */
.lead-gen-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.lead-gen-divider::before,
.lead-gen-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lead-gen-direct-link {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--teal);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-decoration: underline;
  padding: 0;
}
.btn-text-link:hover { color: var(--teal-light); }

/* Thank you state */
.lead-gen-thankyou {
  text-align: center;
  padding: 2rem 1rem;
}

.thankyou-icon {
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.lead-gen-thankyou h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead-gen-thankyou p {
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  line-height: 1.75;
}

/* Mobile */
@media (max-width: 540px) {
  .lead-gen-form {
    flex-direction: column;
    border-radius: 4px;
  }
  .lead-gen-input {
    border-bottom: 1px solid var(--border);
  }
  .lead-gen-btn {
    justify-content: center;
    padding: 1rem;
  }
  .lead-gen-card { padding: 1.5rem; }
  .lead-gen-book-preview { flex-direction: column; text-align: center; }
}

/* ==============================================
   LEGAL PAGES
   ============================================== */
.legal-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
}

.legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}

.legal-hero p {
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin: 0;
}

.legal-body {
  background: var(--white);
}

.legal-content {
  max-width: 720px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
}

.legal-content p {
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
}

.legal-content ul li {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--teal-light);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: 0.82rem;
}

.cookie-table th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cookie-table td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.5;
}

.cookie-table code {
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--paper);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  color: var(--teal);
}

/* Footer legal links */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  text-decoration: underline;
  transition: color var(--t-fast) var(--ease);
}

.footer-legal-links a:hover { color: var(--teal); }

.footer-legal-links span {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}

/* ==============================================
   COOKIE BANNER
   ============================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  border-top: 2px solid var(--teal);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--teal);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner-text a:hover {
  color: #5ecfca;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.cookie-btn--decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
}

.cookie-btn--decline:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.cookie-btn--accept {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: white;
}

.cookie-btn--accept:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
  .cookie-table {
    font-size: 0.72rem;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 0.45rem 0.5rem;
  }
}

/* ==============================================
   WHAT TO READ NEXT QUIZ
   ============================================== */
.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quiz-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.quiz-progress-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.quiz-q-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.quiz-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.quiz-opt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  text-align: left;
  padding: 0.9rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  color: var(--ink-soft);
  line-height: 1.45;
}

.quiz-opt:hover {
  background: var(--teal-pale);
  border-color: var(--teal);
  color: var(--ink);
  transform: translateX(3px);
}

.quiz-opt.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.quiz-nav {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.quiz-back {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--t-fast) var(--ease);
}
.quiz-back:hover { color: var(--teal); }

/* Results */
.quiz-results { display: none; }

.quiz-results-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.quiz-results-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin: 0.5rem 0 0.75rem;
}

.quiz-results-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

.quiz-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quiz-result-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
  position: relative;
}

.quiz-result-card:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-1px);
}

.quiz-result-card--top {
  border-color: var(--teal);
  background: var(--paper);
}

.quiz-result-badge {
  position: absolute;
  top: -1px;
  left: 1.25rem;
  background: var(--teal);
  color: white;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
}

.quiz-result-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 2.5rem;
  display: flex;
  align-items: flex-start;
  padding-top: 0.1rem;
}

.quiz-result-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  margin-top: 0.25rem;
}

.quiz-result-card--top .quiz-result-body h3 { margin-top: 1rem; }

.quiz-result-body p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.quiz-result-link {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 500;
}

.quiz-restart-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.quiz-restart {
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: none;
  border: 1px solid var(--border-strong);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all var(--t-fast) var(--ease);
}
.quiz-restart:hover { border-color: var(--teal); color: var(--teal); }

/* ==============================================
   READING TRACKER
   ============================================== */
.rt-stats-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rt-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.rt-stat-goal { }

.rt-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.rt-stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.rt-stat-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.rt-goal-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.rt-goal-current {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}

.rt-goal-sep {
  font-size: 1.2rem;
  color: var(--ink-muted);
}

.rt-goal-input {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  width: 3.5rem;
  border: none;
  border-bottom: 2px solid var(--border-strong);
  background: transparent;
  text-align: center;
  line-height: 1;
  padding: 0;
  -moz-appearance: textfield;
}
.rt-goal-input::-webkit-outer-spin-button,
.rt-goal-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rt-goal-input:focus { outline: none; border-bottom-color: var(--teal); }

.rt-goal-unit {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

.rt-goal-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rt-goal-bar {
  flex: 1;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.rt-goal-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}

.rt-goal-pct {
  font-size: 0.7rem;
  color: var(--ink-muted);
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
}

/* Add book form */
.rt-add-card,
.rt-list-card,
.rt-ai-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.rt-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.rt-add-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  align-items: end;
}

.rt-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.rt-required { color: var(--teal); }

.rt-field input,
.rt-field select,
.rt-field textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  appearance: none;
  transition: border-color var(--t-fast) var(--ease);
}

.rt-field input:focus,
.rt-field select:focus,
.rt-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.rt-field--notes { grid-column: 1 / -1; }

.rt-field textarea { resize: vertical; min-height: 60px; }

.rt-input-error { border-color: #c0392b !important; animation: shake 0.3s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.rt-add-btn { width: 100%; margin-top: 0.5rem; }

/* Stars */
.rt-stars {
  display: flex;
  gap: 2px;
  margin-top: 0.1rem;
}

.rt-star {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--border-strong);
  padding: 0.1rem;
  line-height: 1;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.rt-star.active,
.rt-star.hover { color: var(--amber); }
.rt-star:hover { transform: scale(1.15); }

/* Book list */
.rt-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rt-list-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rt-search,
.rt-filter-select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
  appearance: none;
}

.rt-search { width: 160px; }
.rt-filter-select { width: auto; }

.rt-book-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.rt-book-item:last-child { border-bottom: none; }

.rt-book-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.rt-book-title {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.rt-book-author {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.rt-book-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rt-book-genre {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 0.2em 0.55em;
}

.rt-book-stars {
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: -1px;
}

.rt-book-date {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.rt-book-notes {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.55;
}

.rt-delete {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  transition: color var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.rt-delete:hover { color: #c0392b; }

.rt-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  gap: 0.75rem;
}
.rt-empty-icon { font-size: 2rem; }
.rt-empty p { font-size: 0.88rem; }

/* AI card */
.rt-ai-card { border-color: var(--teal-mid); background: var(--paper); }

.rt-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rt-ai-badge {
  background: var(--teal);
  color: white;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.3em 0.65em;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.rt-ai-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.rt-ai-btn { width: 100%; }

.rt-ai-output {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.rt-ai-response p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.rt-ai-response strong { color: var(--ink); }

.rt-ai-loading {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 1rem;
}
.rt-ai-loading span {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: bounce 1.1s ease-in-out infinite;
}
.rt-ai-loading span:nth-child(2) { animation-delay: 0.18s; }
.rt-ai-loading span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.4; }
  40%          { transform: translateY(-8px); opacity: 1; }
}

.rt-ai-msg { font-size: 0.85rem; color: var(--ink-muted); text-align: center; }
.rt-ai-note { font-size: 0.7rem; color: var(--ink-muted); margin-top: 0.75rem; line-height: 1.55; }

/* Responsive */
@media (max-width: 860px) {
  .rt-stats-row { grid-template-columns: 1fr 1fr; }
  .rt-stat-goal { grid-column: 1 / -1; }
  .rt-add-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .rt-add-card, .rt-list-card, .rt-ai-card { padding: 1.25rem; }
  .rt-add-fields { grid-template-columns: 1fr; }
  .rt-field--notes { grid-column: 1; }
  .rt-stats-row { grid-template-columns: 1fr 1fr; }
  .rt-book-main { flex-direction: column; gap: 0.5rem; }
  .rt-book-meta { justify-content: flex-start; }
  .rt-list-controls { width: 100%; }
  .rt-search { width: 100%; }
  .rt-ai-header { flex-direction: column; }
  .quiz-card { padding: 1.5rem; }
  .quiz-opt { font-size: 0.85rem; padding: 0.8rem 1rem; }
}

/* ==============================================
   READING TRACKER — COMPLETE STYLES v4
   ============================================== */

/* Hero */
.rt-hero {
  background: var(--teal);
  padding: 3rem 2rem 2.5rem;
}
.rt-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.rt-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0 0.5rem;
}
.rt-hero p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }
.rt-hero .tool-label span { color: rgba(255,255,255,0.55); }
.rt-hero .tool-label-line { background: rgba(255,255,255,0.3); }

/* ── STICKY TAB BAR (desktop) ── */
.rt-tabbar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px; /* below site header */
  z-index: 90;
  transition: box-shadow 0.2s ease;
}
.rt-tabbar-wrap.rt-tabbar--stuck {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rt-tabbar {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}
.rt-tab {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 1rem 1.4rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.rt-tab:hover { color: var(--teal); background: var(--teal-pale); }
.rt-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.rt-tab--soon { color: var(--ink-muted); opacity: 0.65; }
.rt-tab--soon:hover { opacity: 1; }
.rt-tab-icon { font-size: 0.95rem; }

/* App body */
.rt-app {
  background: var(--paper);
  min-height: 60vh;
}
.rt-panels {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rt-panel { padding: 2rem 0 4rem; }
.rt-panel-inner { width: 100%; }

.rt-section-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.rt-panel-sub {
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* Home sections */
.rt-home-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.rt-home-section:last-child { border-bottom: none; }
.rt-home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rt-home-section-header .rt-section-heading { margin-bottom: 0; }

.rt-ghost-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.rt-ghost-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Currently reading card */
.rt-reading-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--teal-mid);
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}
.rt-reading-badge {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.rt-reading-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.rt-reading-author { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.15rem; }
.rt-reading-meta   { font-size: 0.72rem; color: var(--ink-muted); }
.rt-reading-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }

.rt-finish-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  background: var(--teal);
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease);
}
.rt-finish-btn:hover { background: var(--teal-light); }

.rt-delete--quiet { background: none; border: none; color: var(--ink-muted); cursor: pointer; font-size: 1.1rem; padding: 0.1rem; transition: color var(--t-fast) var(--ease); }
.rt-delete--quiet:hover { color: #c0392b; }

/* Stats grid */
.rt-stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.85rem;
}
.rt-stat-card { background: var(--white); border: 1px solid var(--border); padding: 1.1rem 1.25rem; }
.rt-stat-label { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.5rem; }
.rt-stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--ink); margin-bottom: 0.2rem; }
.rt-stat-sub { font-size: 0.68rem; color: var(--ink-muted); }
.rt-goal-display { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.65rem; }
.rt-goal-current { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--teal); line-height: 1; }
.rt-goal-sep { font-size: 1rem; color: var(--ink-muted); }
.rt-goal-input {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink);
  width: 3rem; border: none; border-bottom: 2px solid var(--border-strong); background: transparent;
  text-align: center; line-height: 1; padding: 0; -moz-appearance: textfield;
}
.rt-goal-input::-webkit-outer-spin-button, .rt-goal-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rt-goal-input:focus { outline: none; border-bottom-color: var(--teal); }
.rt-goal-unit { font-size: 0.68rem; color: var(--ink-muted); margin-left: 0.2rem; }
.rt-goal-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.rt-goal-bar { flex: 1; height: 3px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.rt-goal-fill { height: 100%; background: var(--teal); border-radius: 2px; transition: width 0.5s var(--ease); }
.rt-goal-pct { font-size: 0.65rem; color: var(--ink-muted); min-width: 2.2rem; text-align: right; }

/* Status filter tabs */
.rt-status-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1rem; }
.rt-status-tab {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; padding: 0.55rem 1.1rem;
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; color: var(--ink-muted); transition: all var(--t-fast) var(--ease);
}
.rt-status-tab:hover { color: var(--teal); }
.rt-status-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Book list items */
.rt-book-item { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.rt-book-item:last-child { border-bottom: none; }
.rt-book-item--dnf { opacity: 0.7; }
.rt-book-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.rt-book-info { flex: 1; min-width: 0; }
.rt-book-title { font-weight: 500; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.15rem; }
.rt-book-author { font-size: 0.75rem; color: var(--ink-muted); }
.rt-book-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.rt-book-genre { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface); padding: 0.2em 0.5em; }
.rt-book-stars { font-size: 0.8rem; color: var(--amber); letter-spacing: -1px; }
.rt-book-date  { font-size: 0.7rem; color: var(--ink-muted); }
.rt-book-notes { font-size: 0.78rem; color: var(--ink-muted); font-style: italic; margin-top: 0.35rem; line-height: 1.6; }
.rt-dnf-label  { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; background: #7f1d1d; color: white; padding: 0.15em 0.45em; margin-left: 0.4rem; vertical-align: middle; }
.rt-delete { background: none; border: none; font-size: 1.1rem; color: var(--ink-muted); cursor: pointer; padding: 0.1rem 0.25rem; transition: color var(--t-fast) var(--ease); }
.rt-delete:hover { color: #c0392b; }

.rt-empty { display: none; flex-direction: column; align-items: center; padding: 2.5rem 1rem; color: var(--ink-muted); gap: 0.5rem; }
.rt-empty--inline { display: none; align-items: flex-start; padding: 1rem 0; }
.rt-empty--inline p { font-size: 0.85rem; }
.rt-empty-icon { font-size: 1.8rem; }

/* Sort controls */
.rt-filter-select {
  font-family: var(--font-body); font-size: 0.78rem; padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); appearance: none;
}

/* ── ADD FORM ── */
.rt-form-card { background: var(--white); border: 1px solid var(--border); padding: 2rem; }
.rt-form-row { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.1rem; }
.rt-form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.rt-form-row:last-child { margin-bottom: 0; }

.rt-field { display: flex; flex-direction: column; gap: 0.4rem; }
.rt-field label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.rt-required { color: var(--teal); }
.rt-optional { font-weight: 300; color: var(--ink-muted); text-transform: none; letter-spacing: 0; font-size: 0.85em; }

.rt-field input, .rt-field select, .rt-field textarea {
  font-family: var(--font-body); font-size: 0.9rem; width: 100%;
  padding: 0.7rem 0.9rem; border: 1px solid var(--border-strong); background: var(--paper);
  color: var(--ink); appearance: none; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.rt-field input:focus, .rt-field select:focus, .rt-field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.rt-field textarea { resize: vertical; min-height: 80px; }
.rt-input-error { border-color: #c0392b !important; animation: rtshake 0.3s ease; }
@keyframes rtshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

/* Status toggle */
.rt-status-toggle { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.25rem; }
.rt-toggle-opt { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.rt-toggle-opt input { accent-color: var(--teal); width: 14px; height: 14px; cursor: pointer; }

/* Stars */
.rt-stars { display: flex; gap: 4px; }
.rt-stars--large .rt-star { font-size: 1.8rem; }
.rt-star { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--border-strong); padding: 0; line-height: 1; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.rt-star.active, .rt-star.hover { color: var(--amber); }
.rt-star:hover { transform: scale(1.12); }

/* Submit */
.rt-submit-btn {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.9rem 1.5rem; background: var(--teal); color: white; border: none;
  cursor: pointer; transition: background var(--t-fast) var(--ease); width: 100%;
}
.rt-submit-btn:hover { background: var(--teal-light); }
.rt-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.rt-add-success { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--teal); padding: 0.75rem 0 0; }

/* ── TBR ── */
.rt-tbr-add { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.rt-tbr-input { flex: 1; min-width: 140px; font-family: var(--font-body); font-size: 0.88rem; padding: 0.65rem 0.85rem; border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); transition: border-color var(--t-fast) var(--ease); }
.rt-tbr-input:focus { outline: none; border-color: var(--teal); }
.rt-tbr-add-btn { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; padding: 0.65rem 1.25rem; background: var(--teal); color: white; border: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast) var(--ease); }
.rt-tbr-add-btn:hover { background: var(--teal-light); }
.rt-start-reading-btn { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.75rem; background: var(--teal-pale); color: var(--teal); border: 1px solid var(--teal-mid); cursor: pointer; white-space: nowrap; transition: all var(--t-fast) var(--ease); }
.rt-start-reading-btn:hover { background: var(--teal); color: white; }

/* ── RECS ── */
.rt-recs-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.rt-ai-badge { background: var(--teal); color: white; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; padding: 0.3em 0.65em; flex-shrink: 0; margin-top: 0.25rem; }
.rt-ai-output { margin-top: 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--border); }
.rt-ai-response p { font-size: 0.88rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.5rem; }
.rt-ai-response strong { color: var(--ink); }
.rt-ai-msg { font-size: 0.85rem; color: var(--ink-muted); text-align: center; padding: 1rem 0; }
.rt-ai-note { font-size: 0.68rem; color: var(--ink-muted); margin-top: 0.75rem; line-height: 1.6; }
.rt-rec-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.rt-rec-item:last-child { border-bottom: none; }
.rt-rec-item p { font-size: 0.88rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.5rem; }
.rt-rec-footer { font-size: 0.85rem; color: var(--teal); font-style: italic; margin-top: 0.5rem; }
.rt-rec-add-btn { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.85rem; background: transparent; color: var(--teal); border: 1px solid var(--teal-mid); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.rt-rec-add-btn:hover { background: var(--teal); color: white; }
.rt-rec-add-btn:disabled { background: var(--teal-pale); cursor: default; }
.rt-ai-loading { display: flex; gap: 6px; justify-content: center; padding: 1.5rem; }
.rt-ai-loading span { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: rtbounce 1.1s ease-in-out infinite; }
.rt-ai-loading span:nth-child(2) { animation-delay: 0.18s; }
.rt-ai-loading span:nth-child(3) { animation-delay: 0.36s; }
@keyframes rtbounce { 0%,80%,100%{transform:translateY(0);opacity:.4} 40%{transform:translateY(-8px);opacity:1} }

/* ── COMING SOON ── */
.rt-coming-soon-card { background: var(--white); border: 1px solid var(--border); padding: 2.5rem; max-width: 540px; }
.rt-coming-soon-icon { font-size: 2rem; margin-bottom: 1rem; }
.rt-coming-soon-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 0.75rem; }
.rt-coming-soon-list { margin: 0.5rem 0 1.25rem 1.25rem; }
.rt-coming-soon-list li { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.8; }
.rt-coming-soon-note { font-size: 0.82rem; color: var(--ink-muted); }

/* ── MODAL ── */
.rt-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.rt-modal { background: var(--white); width: 100%; max-width: 460px; padding: 2rem; position: relative; max-height: 90vh; overflow-y: auto; }
.rt-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; }
.rt-modal-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rt-modal-close { background: none; border: none; font-size: 1.5rem; color: var(--ink-muted); cursor: pointer; line-height: 1; padding: 0; transition: color var(--t-fast) var(--ease); }
.rt-modal-close:hover { color: var(--ink); }
.rt-modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.rt-modal-btn { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; padding: 0.7rem 1rem; border: none; cursor: pointer; transition: all var(--t-fast) var(--ease); flex: 1; min-width: 110px; }
.rt-modal-btn--read   { background: var(--teal); color: white; }
.rt-modal-btn--read:hover   { background: var(--teal-light); }
.rt-modal-btn--dnf    { background: #7f1d1d; color: white; }
.rt-modal-btn--dnf:hover    { background: #991b1b; }
.rt-modal-btn--cancel { background: var(--surface); color: var(--ink-soft); }
.rt-modal-btn--cancel:hover { background: var(--border); }

/* Flash */
.rt-flash { position: sticky; top: 68px; z-index: 150; background: var(--teal); color: white; text-align: center; font-size: 0.82rem; font-weight: 500; padding: 0.65rem 1rem; animation: rtFlashIn 0.2s ease, rtFlashOut 0.4s ease 2.6s forwards; }
@keyframes rtFlashIn  { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@keyframes rtFlashOut { from{opacity:1} to{opacity:0} }

/* ── MOBILE BOTTOM NAV (hidden on desktop) ── */
.rt-bottom-nav { display: none; }

/* ── INSTALL STRIP ── */
.rt-install-strip { background: var(--ink); padding: 0.85rem 2rem; }
.rt-install-strip-inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.rt-install-strip strong { color: white; }
.rt-install-btn { background: var(--teal); color: white; border: none; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; padding: 0.4rem 1rem; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.rt-install-btn:hover { background: var(--teal-light); }
.rt-ios-hint { font-size: 0.72rem; color: rgba(255,255,255,0.5); font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  /* Hide desktop tab bar, show bottom nav */
  .rt-tabbar-wrap { display: none; }
  .rt-bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--white); border-top: 1px solid var(--border);
    height: 64px; box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
  }
  .rt-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; border-top: 2px solid transparent; cursor: pointer; padding: 0.4rem 0.25rem; color: var(--ink-muted); font-family: var(--font-body); transition: color var(--t-fast) var(--ease); }
  .rt-nav-btn:hover { color: var(--teal); }
  .rt-nav-btn.active { color: var(--teal); border-top-color: var(--teal); }
  .rt-nav-icon { font-size: 1.1rem; line-height: 1; }
  .rt-nav-label { font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

  .rt-app { padding-bottom: 64px; }
  .rt-stats-grid { grid-template-columns: 1fr 1fr; }
  .rt-stat-goal { grid-column: 1 / -1; }
  .rt-form-row--2 { grid-template-columns: 1fr; }
  .rt-form-card { padding: 1.25rem; }
  .rt-panels { padding: 0 1rem; }
  .rt-reading-card { flex-direction: column; }
  .rt-reading-card-actions { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .rt-modal { padding: 1.5rem; }
  .rt-modal-actions { flex-direction: column; }
  .rt-modal-btn { flex: none; width: 100%; }
}

@media (max-width: 480px) {
  .rt-tbr-add { flex-direction: column; }
  .rt-tbr-add-btn { width: 100%; text-align: center; }
  .rt-recs-header { flex-direction: column; }
}

/* ==============================================
   TOOLS SHOWCASE — HOMEPAGE
   ============================================== */
.tools-showcase {
  background: var(--ink);
  padding: 5rem 2rem;
}

.tools-showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tools-showcase .section-label span,
.tools-showcase .section-label {
  color: rgba(255,255,255,0.45);
}
.tools-showcase .section-label-line {
  background: rgba(255,255,255,0.2);
}

.tools-showcase-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.tool-cards-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--ink);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast) var(--ease);
  position: relative;
}

.tool-card:hover {
  background: rgba(255,255,255,0.05);
}

.tool-card--featured {
  background: var(--teal);
  border: none;
}

.tool-card--featured:hover {
  background: var(--teal-light);
}

.tool-card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.tool-card-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.tool-card--featured .tool-card-label {
  color: rgba(255,255,255,0.65);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.tool-card--featured p {
  color: rgba(255,255,255,0.8);
}

.tool-card-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease);
  margin-top: auto;
}

.tool-card:hover .tool-card-link {
  color: #fff;
}

.tool-card--featured .tool-card-link {
  color: rgba(255,255,255,0.85);
}

/* Nav CTA — reading tracker style */
.nav-cta a {
  background: var(--teal);
  color: white !important;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--t-fast) var(--ease) !important;
}

.nav-cta a:hover {
  background: var(--teal-light) !important;
  color: white !important;
}

/* Responsive */
@media (max-width: 900px) {
  .tool-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .tool-card--featured .tool-card-icon {
    flex-shrink: 0;
    font-size: 2rem;
    margin-bottom: 0;
  }
}

@media (max-width: 540px) {
  .tool-cards-grid { grid-template-columns: 1fr; }
  .tool-card--featured { flex-direction: column; }
  .tools-showcase { padding: 3.5rem 1.25rem; }
}

/* ==============================================
   POST GENRE TAG
   ============================================== */
.page-hero-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.section-label-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.post-genre-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.25em 0.7em;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}

.post-genre-tag:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* ==============================================
   MAILERLITE EMBED — STYLE OVERRIDES
   Match MailerLite's injected form to site design
   ============================================== */

/* Hide MailerLite's own wrapper chrome */
.ml-embedded .ml-form-embedWrapper {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ml-embedded .ml-form-embedBody,
.ml-embedded .ml-form-embedContent {
  padding: 0 !important;
  background: transparent !important;
}

/* Hide MailerLite's default heading/description inside the embed
   (we have our own heading in the section above it) */
.ml-embedded .ml-form-embedContent h4,
.ml-embedded .ml-form-embedContent p {
  display: none !important;
}

/* The form row itself — match .newsletter-form layout */
.ml-embedded .ml-form-embedSubmit,
.ml-embedded form {
  display: flex !important;
  gap: 0 !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  border: 1px solid var(--border-strong) !important;
  background: var(--white) !important;
}

/* Email input */
.ml-embedded .ml-form-fieldRow input[type="email"],
.ml-embedded input[type="email"] {
  flex: 1 !important;
  padding: 0.9rem 1.25rem !important;
  background: var(--white) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

.ml-embedded input[type="email"]::placeholder {
  color: var(--ink-muted) !important;
}

/* Submit button */
.ml-embedded .ml-form-embedSubmit button,
.ml-embedded button[type="submit"] {
  padding: 0.9rem 1.5rem !important;
  background: var(--teal) !important;
  color: #fff !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  transition: background 0.2s ease !important;
  text-transform: none !important;
}

.ml-embedded .ml-form-embedSubmit button:hover,
.ml-embedded button[type="submit"]:hover {
  background: var(--teal-light) !important;
}

/* Success message */
.ml-embedded .ml-form-successBody {
  text-align: center !important;
  padding: 0 !important;
}

.ml-embedded .ml-form-successBody h4 {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin-bottom: 0.4rem !important;
}

.ml-embedded .ml-form-successBody p {
  display: block !important;
  font-size: 0.85rem !important;
  color: var(--ink-muted) !important;
}

/* Remove MailerLite branding/reCAPTCHA row padding */
.ml-embedded .ml-form-recaptcha,
.ml-embedded .ml-form-checkboxRow {
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 540px) {
  .ml-embedded form,
  .ml-embedded .ml-form-embedSubmit {
    flex-direction: column !important;
    border: none !important;
  }
  .ml-embedded input[type="email"] {
    border: 1px solid var(--border-strong) !important;
    margin-bottom: 0.5rem !important;
  }
  .ml-embedded button[type="submit"] {
    width: 100% !important;
  }
}
