@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Lato:wght@300;400;600;700&display=swap');

:root {
  --cream: #faf6f0;
  --sand: #f1e6d8;
  --sand-dark: #e4d3bb;
  --terracotta: #c96f4a;
  --terracotta-dark: #a8563a;
  --teal: #4a7c74;
  --ink: #3a352f;
  --ink-light: #746a5c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(58, 53, 47, 0.08);
  --radius: 14px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--terracotta-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta-dark);
}
.btn-outline:hover { background: var(--terracotta); color: var(--white); }
.btn-full { width: 100%; }

/* ---------- Site Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, transform 0.35s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: 0 16px 24px -12px rgba(58,53,47,0.12);
  }
  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links.open li { opacity: 1; transform: translateY(0); }
  .nav-links.open li:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.12s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.18s; }
  .nav-links a {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--sand-dark);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-links a:hover { background: var(--sand); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-links,
  .nav-links li,
  .nav-links a { transition: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding-bottom: 68px;
}
.hero-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center 22%;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0.4) 0%, rgba(20,17,13,0.48) 40%, rgba(20,17,13,0.6) 65%, rgba(16,13,10,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65), 0 2px 14px rgba(0,0,0,0.4);
}
/* Same look as .hero-eyebrow but for plain backgrounds — no photo behind it,
   so no shadow needed (it just reads as blur without one). */
.eyebrow-plain {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 6px 32px rgba(0,0,0,0.45);
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.98;
  margin-bottom: 1.8em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.65), 0 2px 16px rgba(0,0,0,0.4);
}

.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-content .hero-eyebrow { animation-delay: 0.15s; }
.hero-content h1 { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.45s; }
.hero-content .btn { animation-delay: 0.6s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}

@media (max-width: 640px) {
  .hero { min-height: 74vh; padding-bottom: 48px; }
}

/* ---------- Secondary page banners (blog, etc.) ---------- */
.blog-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 48%;
}
.blog-hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.55);
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
}
.blog-hero-content .hero-eyebrow { color: var(--sand); }
.blog-hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 6px 32px rgba(0,0,0,0.45);
}
.blog-hero-content p {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.65), 0 2px 16px rgba(0,0,0,0.4);
  margin: 0;
}

.blog-hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.8s cubic-bezier(.16,1,.3,1) forwards;
}
.blog-hero-content .hero-eyebrow { animation-delay: 0.1s; }
.blog-hero-content h1 { animation-delay: 0.22s; }
.blog-hero-content p { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .blog-hero-content > * { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .blog-hero { min-height: 38vh; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1);
}
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-group.is-visible > *:nth-child(n+6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.cursive-greeting {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--terracotta-dark);
  margin-bottom: 6px;
  line-height: 1;
}

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-teaser img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 760px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser .img-wrap { order: -1; }
}

/* ---------- Post cards ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(58, 53, 47, 0.14);
}
.post-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: var(--sand);
}
.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-category {
  display: inline-block;
  align-self: flex-start;
  background: var(--sand);
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--terracotta); }
.post-meta {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.post-excerpt {
  color: var(--ink-light);
  font-size: 0.95rem;
  flex: 1;
}
.read-more {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Blog page filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-tag {
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  color: var(--ink-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tag:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.filter-tag.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.search-input {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  min-width: 220px;
}
.search-input:focus { outline: none; border-color: var(--terracotta); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-light);
}

/* ---------- Single post ---------- */
.post-hero {
  padding: 48px 0 32px;
  text-align: center;
}
.post-hero .post-category { margin-bottom: 16px; }
.post-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 820px; margin: 0 auto 16px; }
.post-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 32px 0;
}
.post-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.post-body p { margin-bottom: 1.3em; }
.post-body h2 { margin-top: 1.7em; }
.post-body ul {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
  color: var(--ink);
}
.post-body li + li { margin-top: 0.4em; }

.post-block-photo { margin: 1.8em 0; }
.post-block-photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-block-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-light);
  text-align: center;
}

.post-block-subtitle {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--teal);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.post-block-lead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-block-lead::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 8px;
  color: var(--terracotta);
}

.post-block-sm {
  font-size: 0.88rem;
  color: var(--ink-light);
}

.post-body-footer {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--sand-dark);
  text-align: center;
}
.back-link { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.social-links a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat h3 { font-size: 2rem; color: var(--terracotta); margin-bottom: 0; }
.stat span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-light); }

/* ---------- Forms (login / dashboard) ---------- */
.auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.auth-card h1 { font-family: 'Dancing Script', cursive; color: var(--terracotta-dark); font-size: 2.4rem; }
.form-group { text-align: left; margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--sand-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--terracotta); }
.form-group textarea { min-height: 220px; resize: vertical; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.schedule-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, transform 0.35s cubic-bezier(.4,0,.2,1);
}
.schedule-panel.open {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-panel { transition: none; }
}

/* ---------- Content block editor (write-a-post form) ---------- */
.content-block-row {
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--cream);
}
.block-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.block-style {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
}
.block-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.block-row-actions .icon-btn { font-size: 0.85rem; padding: 2px; }
.block-text {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  min-height: 70px;
  resize: vertical;
}
.block-text:focus, .block-style:focus { outline: none; border-color: var(--terracotta); }

.block-photo-field { display: none; }
.block-photo-field.show { display: block; }
.block-photo-preview {
  display: none;
  margin-top: 10px;
  max-height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.block-photo-preview.show { display: block; }
.block-photo-caption {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
}
.block-photo-caption:focus { outline: none; border-color: var(--terracotta); }

.preview-content .post-block-photo img {
  max-height: 150px;
  object-fit: cover;
  box-shadow: none;
}
.form-error {
  color: var(--terracotta-dark);
  background: #fbeae3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  color: #2f6b57;
  background: #e4f1ec;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Admin dashboard ---------- */
.welcome-banner {
  background: linear-gradient(135deg, var(--sand), var(--cream));
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--terracotta-dark);
}
.welcome-banner span { color: var(--teal); }

/* ---------- Live post preview ---------- */
.preview-panel {
  position: sticky;
  top: 24px;
  align-self: start;
}
.dashboard-header h2 {
  display: flex;
  align-items: center;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  margin-right: 9px;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.preview-frame {
  border: 1px solid var(--sand-dark);
  border-radius: 10px;
  overflow: hidden;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
}
.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand-dark);
}
.preview-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--ink-light);
  background: var(--white);
  padding: 3px 12px;
  border-radius: 999px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-scroll {
  max-height: 600px;
  overflow-y: auto;
  background: var(--cream);
}
.preview-content {
  padding: 28px 24px 36px;
  transition: opacity 0.28s ease;
}
.preview-content.fade-swap { opacity: 0; }
.preview-content .post-category { margin-bottom: 12px; }
.preview-content h1 { font-size: 1.5rem; }
.preview-content .post-meta { font-size: 0.78rem; margin-bottom: 18px; }
.preview-content .post-hero-img { max-height: 200px; margin-bottom: 20px; }
.preview-content .post-body-preview { font-size: 0.92rem; }
.preview-placeholder {
  color: var(--ink-light);
  font-style: italic;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .preview-content { transition: none; }
}

@media (max-width: 900px) {
  .preview-panel { position: static; }
}

.dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
}
.dashboard-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
}
.post-row:last-child { border-bottom: none; }
.post-row-title { font-weight: 700; font-size: 0.95rem; }
.post-row-meta { font-size: 0.78rem; color: var(--ink-light); }
.post-row-actions { display: flex; gap: 10px; }
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.icon-btn:hover { color: var(--terracotta); }
.icon-btn.danger:hover { color: #b0402b; }

/* ---------- Password confirmation modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 53, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 380px;
  width: 100%;
}
.modal-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}

/* ---------- Contact band ---------- */
.contact-band {
  position: relative;
  background: linear-gradient(160deg, var(--teal), #345a54);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.1), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(201,111,74,0.3), transparent 50%);
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-band .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand);
  display: block;
  margin-bottom: 14px;
}
.contact-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 620px;
  margin: 0 auto 16px;
}
.contact-band p {
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.contact-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  transform: translateY(-3px);
}
.contact-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.contact-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--terracotta-dark);
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--ink-light); font-size: 0.88rem; }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--sand-dark);
}
