/* Advent Friends — Festive Holiday Design System */
:root {
  /* Classic Pine & Warm Cream (inspired by bold-stroke festive illustration) */
  --bg-top: #0f3d33;
  --bg-mid: #145043;
  --bg-bottom: #0a2922;
  --surface: rgba(255, 248, 234, 0.08);
  --surface-strong: rgba(255, 248, 234, 0.14);
  --card-bg: #fff8ea;
  --card-ink: #1b2822;
  --ink: #fff8ea;
  --ink-muted: #d6e4dd;
  --accent: #f1c453;
  --accent-strong: #ffd875;
  --accent-ink: #172721;
  --crimson: #cf3838;
  --crimson-hover: #e34747;
  --border: rgba(255, 248, 234, 0.24);
  --border-dashed: rgba(255, 248, 234, 0.42);
  --shadow-lg: 0 22px 54px rgba(4, 18, 14, 0.46);
  --shadow-sm: 0 8px 20px rgba(4, 18, 14, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="winter"] {
  --bg-top: #091326;
  --bg-mid: #132544;
  --bg-bottom: #070e1d;
  --surface: rgba(226, 240, 255, 0.08);
  --surface-strong: rgba(226, 240, 255, 0.14);
  --ink: #f3f7ff;
  --ink-muted: #bfd2ee;
  --accent: #7cc4ff;
  --accent-strong: #a7d8ff;
  --accent-ink: #081526;
  --crimson: #2f74d0;
  --crimson-hover: #3b86e8;
  --border: rgba(185, 218, 255, 0.2);
  --border-dashed: rgba(165, 210, 255, 0.38);
}

[data-theme="gingerbread"] {
  --bg-top: #26140c;
  --bg-mid: #3c2115;
  --bg-bottom: #1b0e08;
  --surface: rgba(255, 238, 214, 0.08);
  --surface-strong: rgba(255, 238, 214, 0.14);
  --ink: #fff6e8;
  --ink-muted: #e3c8af;
  --accent: #f0a84b;
  --accent-strong: #ffbe6b;
  --accent-ink: #241106;
  --crimson: #b83b28;
  --crimson-hover: #d14833;
  --border: rgba(255, 219, 178, 0.2);
  --border-dashed: rgba(255, 212, 160, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, var(--bg-mid) 0%, var(--bg-top) 48%, var(--bg-bottom) 100%);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Festive string lights */
.string-lights {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: 26px;
  overflow: hidden;
  pointer-events: none;
  border-top: 2px solid rgba(255, 240, 200, 0.18);
}

.string-lights span {
  width: 9px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  margin-top: 4px;
  display: inline-block;
  animation: twinkle 2.8s infinite ease-in-out alternate;
}

.string-lights span:nth-child(4n+1) { background: #ffd166; box-shadow: 0 0 12px #ffd166; animation-delay: 0s; }
.string-lights span:nth-child(4n+2) { background: #ef476f; box-shadow: 0 0 12px #ef476f; animation-delay: 0.7s; }
.string-lights span:nth-child(4n+3) { background: #7ae582; box-shadow: 0 0 12px #7ae582; animation-delay: 1.4s; }
.string-lights span:nth-child(4n)   { background: #7cc4ff; box-shadow: 0 0 12px #7cc4ff; animation-delay: 2.1s; }

@keyframes twinkle {
  0% { opacity: 0.45; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* Gentle CSS Snowfall */
.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  10% { opacity: 0.75; }
  90% { opacity: 0.65; }
  100% { transform: translateY(105vh) translateX(28px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flake, .string-lights span { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Layout Containers */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 14px 0 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--crimson), #8f1d1d);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
}

.header-nav a {
  color: var(--ink-muted);
}

.header-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 20px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 14px 0 28px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.hero-sub {
  font-size: 1.04rem;
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 52ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

/* Forms & Inputs */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 14, 12, 0.36);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 185, 92, 0.22);
}

.textarea {
  min-height: 106px;
  resize: vertical;
}

.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Theme Picker */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-pill {
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-pill.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.16);
  box-shadow: 0 0 0 2px rgba(229, 185, 92, 0.2);
}

.theme-swatch {
  width: 28px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.btn-crimson {
  background: linear-gradient(180deg, var(--crimson-hover), var(--crimson));
  color: #fff;
}

.btn-ghost {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--ink);
}

.btn-danger {
  background: rgba(201, 52, 52, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.84rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* 24-Day Advent Calendar Grid */
.calendar-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.calendar-shell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 920px) {
  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

.preview-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Individual Day Tile */
.day-tile {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed var(--border-dashed);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.day-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.day-tile.filled {
  border-style: solid;
  border-color: rgba(255, 240, 210, 0.28);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
}

.day-tile.openable {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(229, 185, 92, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.day-tile.openable::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 232, 160, 0.18), transparent 60%);
  pointer-events: none;
}

.day-num {
  position: relative;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--ink);
}

.day-empty-plus {
  font-size: 1.4rem;
  opacity: 0.75;
  line-height: 1;
}

.day-empty-cta {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.gift-svg-wrap {
  width: 78%;
  max-width: 76px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.day-tile:hover .gift-svg-wrap {
  transform: scale(1.06) rotate(-2deg);
}

.gift-sticker {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.day-author {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.day-badge {
  position: relative;
  z-index: 2;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

/* My Calendars List */
.my-calendars {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.my-cal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  margin-top: 8px;
}

.my-cal-meta {
  min-width: 0;
}

.my-cal-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-cal-code {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Share Toolbar on Calendar Page */
.cal-hero {
  padding: 18px 0 22px;
}

.cal-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-banner {
  margin: 14px 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(229, 185, 92, 0.14);
  border: 1px solid rgba(229, 185, 92, 0.35);
  color: var(--ink);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Content / SEO Sections */
.section {
  padding: 46px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-header p {
  color: var(--ink-muted);
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 780px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }
}

.idea-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.idea-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* Accordion FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-strong);
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 10, 8, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #14281f;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.22s ease-out;
}

[data-theme="winter"] .modal-card { background: #10203b; }
[data-theme="gingerbread"] .modal-card { background: #2f1a10; }

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Wrap & Sticker Pickers */
.wrap-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wrap-option {
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
}

.wrap-option.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.16);
}

.sticker-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sticker-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticker-btn.active {
  border-color: var(--accent-strong);
  background: rgba(229, 185, 92, 0.22);
  transform: scale(1.06);
}

/* Unwrap Note Card */
.note-letter {
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 18px;
  padding: 22px;
  margin: 14px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid #ecd9b5;
  animation: unwrapBounce 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes unwrapBounce {
  0% { transform: scale(0.75) rotate(-3deg); opacity: 0; }
  65% { transform: scale(1.03) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.note-letter-msg {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 14px;
}

.note-letter-from {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7c4a1d;
  text-align: right;
}

.viral-cta-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229, 185, 92, 0.18), rgba(201, 52, 52, 0.16));
  border: 1px solid rgba(229, 185, 92, 0.4);
  text-align: center;
}

.confetti-piece {
  position: fixed;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  z-index: 200;
  pointer-events: none;
  animation: confettiDrop 1.2s ease-out forwards;
}

@keyframes confettiDrop {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 250;
  background: #141c17;
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* AdSense Slot (clean, unobtrusive) */
.ad-slot-wrapper {
  margin: 24px auto;
  text-align: center;
  min-height: 1px;
}

/* Legal Pages */
.prose {
  max-width: 760px;
  margin: 24px auto 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin-top: 26px; }
.prose p, .prose li { color: var(--ink-muted); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-muted);
}

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

.story-preview-img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin: 12px auto;
  box-shadow: var(--shadow-sm);
}

.error-text {
  color: #fca5a5;
  font-size: 0.86rem;
  margin-top: 8px;
}
