/* AI Story Writer – Clean Modern SaaS Stylesheet (Zero Build Required) */

:root {
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --violet: #6d28d9;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --red-text: #991b1b;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, Cambria, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-medium {
  max-width: 960px;
}
.container-narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo:hover {
  color: var(--blue-hover);
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-link.is-active {
  color: var(--blue-hover);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.desktop-cta {
  display: none;
}
.hamburger-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger-btn:hover {
  background: var(--bg-muted);
}
.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.75rem 0 1.25rem;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-link {
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
}
.mobile-nav-link.is-active {
  background: var(--blue-soft);
  color: var(--blue-hover);
}
.mobile-nav-cta {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .desktop-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .hamburger-btn, .mobile-nav-drawer { display: none !important; }
}

.site-main {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}
.btn-xs {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  border-radius: 0.55rem;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
}
.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: #334155;
}
.btn-outline:hover {
  background: var(--bg-muted);
  color: var(--text);
}
.btn-soft-blue {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  color: #1e40af;
}
.btn-soft-blue:hover {
  background: #dbeafe;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-group-center {
  justify-content: center;
  margin-top: 1.75rem;
}

/* Hero Section */
.hero-section {
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 4.5rem;
  background: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
}
.hero-lead {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  max-width: 34rem;
  font-size: 1.075rem;
  line-height: 1.65;
  color: #475569;
}
.hero-trust {
  margin-top: 1.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-art {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-muted);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  max-width: 470px;
  height: auto;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Sections & Grids */
.section {
  padding: 4rem 0;
  scroll-margin-top: 4.5rem;
}
.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  max-width: 40rem;
}
.section-header h1, .section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
}
.section-header p {
  margin-top: 0.65rem;
  color: #475569;
  font-size: 1rem;
}
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.inline-link {
  color: var(--blue-hover);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.inline-link:hover {
  text-decoration: underline;
}

.grid-2, .grid-3 {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.card-soft {
  background: var(--bg-muted);
}
.card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.card-link:hover {
  border-color: #93c5fd;
  background: #fafcff;
}
.card-link h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.card-link p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}
.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-hover);
}
.step-card .step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-size: 1.075rem;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.9rem;
  color: #475569;
}

/* Forms */
.form-card {
  margin-top: 2rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label, .field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.req { color: var(--blue); }
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.char-count, .muted-xs {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.muted-sm {
  font-size: 0.875rem;
  color: #475569;
}
.muted-inline {
  font-weight: 400;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  padding: 0.68rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-grid-2, .form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: span 2; }
}
@media (min-width: 960px) {
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.length-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .length-grid { grid-template-columns: repeat(4, 1fr); }
}
.length-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.length-option strong {
  font-size: 0.85rem;
  color: var(--text);
}
.length-option span {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.length-option.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.length-option.is-selected strong {
  color: #1e3a8a;
}
.custom-length-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.custom-length-box label {
  margin: 0;
  font-size: 0.8rem;
}
.custom-length-box input {
  width: 7rem;
  padding: 0.4rem 0.6rem;
}

.alert-error {
  margin-bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--red-border);
  background: var(--red-bg);
  color: var(--red-text);
  font-size: 0.875rem;
}
.status-info {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
  background: var(--blue-soft);
  color: #1e3a8a;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-footer-row {
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Local Drafts & Generated Story */
.local-drafts-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}
.drafts-list {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.draft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
}
.draft-chip button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.draft-chip .draft-title-btn {
  font-weight: 600;
  color: var(--text);
}
.draft-chip .draft-title-btn:hover {
  color: var(--blue-hover);
}
.draft-chip .draft-del-btn {
  color: var(--text-muted);
  font-weight: 700;
}
.draft-chip .draft-del-btn:hover {
  color: #dc2626;
}

.story-output-card {
  margin-top: 2.25rem;
  padding: 0;
  overflow: hidden;
}
.story-output-head {
  padding: 1.75rem 2rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.serif-title {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.edit-title-input {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}
.toolbar-row {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.story-output-body {
  padding: 2rem;
}
.story-prose {
  max-width: 46rem;
  margin: 0 auto;
}
.story-prose h2, .story-prose h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem;
}
.story-prose h2:first-child, .story-prose h4:first-child {
  margin-top: 0;
}
.story-prose p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 1rem;
}
.refine-bar {
  max-width: 46rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.editorial-disclaimer {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 0.8rem;
  color: #475569;
}

/* Additional Tools Workbench */
.tools-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .tools-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}
.tools-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.tool-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.tool-tab strong {
  font-size: 0.86rem;
  color: var(--text);
}
.tool-tab span {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.tool-tab.is-selected {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.tool-tab.is-selected strong {
  color: var(--blue-hover);
}
.tools-panel h3 {
  font-size: 1.25rem;
}
.tool-form {
  margin-top: 1.25rem;
}
.tool-output {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.tool-output-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.tool-items-list {
  margin-top: 1rem;
}
.tool-result-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.tool-result-item:last-child {
  border-bottom: none;
}
.tool-result-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.tool-result-item h5 {
  margin: 0;
  font-size: 0.92rem;
}
.tool-result-item p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #475569;
  white-space: pre-line;
}

/* Metadata, Stories & Guides */
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.meta-accent {
  color: var(--blue-hover);
  font-weight: 600;
  font-size: 0.78rem;
}
.meta-violet {
  color: var(--violet);
  font-weight: 600;
  font-size: 0.78rem;
}
.story-cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}
.story-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}
.story-card, .guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.serif-card-title {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.serif-card-title a:hover, .guide-card h2 a:hover, .guide-card h3 a:hover {
  color: var(--blue-hover);
}
.guide-card h2, .guide-card h3 {
  margin-top: 0.5rem;
  font-size: 1.12rem;
}
.card-excerpt {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #475569;
  flex: 1;
}
.more-guides-box {
  margin-top: 1.5rem;
}
.more-guides-box h3 {
  font-size: 0.92rem;
}
.more-guides-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .more-guides-grid { grid-template-columns: 1fr 1fr; }
}
.more-guides-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.more-guides-grid a:hover {
  border-color: #bfdbfe;
  background: var(--blue-soft);
  color: var(--blue-hover);
}

/* FAQ */
.faq-list {
  margin: 2rem 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item dt { margin: 0; }
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--blue);
  flex-shrink: 0;
}
.faq-answer {
  margin: 0.75rem 0 0;
  padding-right: 1.5rem;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  background: #0f172a;
  color: #fff;
  padding: 4.5rem 0;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: #fff;
}
.final-cta p {
  margin: 1rem auto 1.75rem;
  max-width: 32rem;
  color: #cbd5e1;
  font-size: 1.05rem;
}
.text-center { text-align: center; }

/* Subpages, Breadcrumbs, Filters & Articles */
.page-banner {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.page-banner h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.page-banner p {
  margin-top: 0.65rem;
  max-width: 42rem;
  color: #475569;
}
.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.breadcrumbs a:hover { color: var(--blue-hover); }
.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.lead-text {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
}
.filter-tabs {
  margin-top: 1.75rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
}
.filter-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.filter-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.content-block {
  margin-top: 2.5rem;
}
.content-block h2 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.content-block p {
  color: var(--text-body);
  margin-bottom: 0.9rem;
}
.border-top {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.border-bottom {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.border-top-pad {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.prompt-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prompt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
}
.prompt-row p {
  margin: 0;
  flex: 1;
  min-width: 240px;
}
.prompt-row .card-cta { margin-top: 0; }
.genre-links-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.serif-page-title {
  margin-top: 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
}
.cover-spacer { margin: 1.75rem 0 1rem; }
.article-body { margin-top: 2.25rem; }
.guide-body { margin-top: 2rem; }
.guide-body p {
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.prose-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.4rem;
  color: var(--text-body);
}
.prose-list li { margin-bottom: 0.5rem; }
.example-box {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}
.serif-quote {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  color: #1e293b;
}
.cta-inline-box {
  margin-top: 2.5rem;
}
.cta-inline-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.cta-inline-box .btn-group {
  margin-top: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}
.contact-info-card {
  margin-top: 1.75rem;
}
.contact-info-card h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.contact-info-card p + p {
  margin-top: 0.75rem;
}

/* AdSense Safe Container */
.ad-slot-container {
  margin: 2.5rem auto;
  max-width: 820px;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  text-align: center;
}
.ad-slot-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 5fr 3fr 2fr 2fr; }
}
.footer-desc {
  margin-top: 0.75rem;
  max-width: 22rem;
  font-size: 0.875rem;
  color: #475569;
}
.footer-tagline {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: #475569;
}
.footer-links a:hover, .link-btn:hover {
  color: var(--blue-hover);
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
}
.cookie-banner-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}
.cookie-banner-inner a {
  color: var(--blue-hover);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-card {
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.icon-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.cookie-option-list {
  margin-top: 1.25rem;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid #f1f5f9;
}
.modal-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
