/* ============================================
   MARCEVOLUTION STYLES
   ============================================ */

/* Brand colors and fonts */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --cream: #F1E0D0;
  --sage: #748181;
  --rust: #964434;
  --peach: #CA947C;

  --body-font: "Cormorant Garamond", Georgia, serif;
  --script-font: "Great Vibes", cursive;
}


/* ============================================
   RESET & BASE
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  font-size: 1.375rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rust);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--script-font);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.lead {
  font-size: 1.5rem;
  font-weight: 500;
}


/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 12px 72px 12px 24px;
  background: var(--sage);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.site-name {
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-family: var(--script-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  text-decoration: none;
}

.site-name:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 4px;
  color: var(--black);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Nav notification badges */
.notification-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #c62828;
  color: white;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.notification-badge.hidden {
  display: none;
}

/* Public-only links (sign in) */
.public-only.hidden {
  display: none;
}

/* Auth-only elements */
.auth-only {
  display: none;
}

.auth-only.visible {
  display: inline-block;
}

/* ============================================
   SOCIAL NAVIGATION
   ============================================ */

.social-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 2px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-nav img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.social-nav a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
  text-decoration: none;
}

.social-nav a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}


/* ============================================
   NAVIGATION DROPDOWN
   ============================================ */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: transparent;
  border: none;
  color: var(--black);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-dropdown-toggle[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.2s;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  min-width: 220px;
  margin: 8px 0 0;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--black);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: background 0.15s;
}

.dropdown-item a:hover {
  background: var(--cream);
  text-decoration: none;
}

.dropdown-icon {
  font-size: 1.1em;
  line-height: 1;
}

.dropdown-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--cream);
  list-style: none;
}

.notification-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--rust);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

[data-theme="dark"] .nav-dropdown-menu {
  background: var(--white);
  border-color: var(--sage);
}

[data-theme="dark"] .dropdown-item a {
  color: var(--black);
}

[data-theme="dark"] .dropdown-item a:hover {
  background: var(--cream);
}

[data-theme="sepia"] .nav-dropdown-menu {
  background: var(--white);
}

@media (max-width: 760px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
  }
  
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin: 0;
    border: none;
    border-left: 3px solid var(--sage);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  
  .nav-dropdown-menu.is-open {
    display: block;
  }
  
  .dropdown-item a {
    padding: 10px 16px 10px 24px;
  }
  
  [data-theme="dark"] .nav-dropdown-menu,
  [data-theme="sepia"] .nav-dropdown-menu {
    background: transparent;
  }
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 680px;
  padding: 80px 24px 32px;
  text-align: center;
  background: var(--black);
  color: var(--cream);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 65%);
}

[data-theme="dark"] .hero::before {
  background: rgb(0 0 0 / 52%);
}

.hero > .eyebrow {
  order: 0;
}

.hero-content {
  order: 1;
  width: 100%;
  max-width: 850px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.photo-credit {
  order: 2;
  margin: 40px 0 0;
  font-size: 1rem;
}

.photo-credit a {
  color: inherit;
}

.hero a:focus-visible {
  outline-color: var(--cream);
}


/* ============================================
   BUTTONS
   ============================================ */

.button {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--cream);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  background: var(--cream);
  color: var(--black);
}

.button-primary:hover:not(:disabled) {
  background: var(--black);
  color: var(--cream);
}

.button-secondary {
  background: var(--black);
  color: var(--cream);
}

.button-secondary:hover:not(:disabled) {
  background: var(--cream);
  color: var(--black);
}


/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
  padding: 80px 24px;
  text-align: center;
}

.content-section > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  width: fit-content;
  text-align: left;
}

.content-section li {
  margin: 0.75rem 0;
}

.content-section li::before {
  content: "🥄";
  margin-right: 0.75rem;
}

.content-section.cream {
  background: var(--cream);
}

.content-section.rust {
  background: var(--rust);
  color: var(--cream);
}

.content-section.rust h2,
.content-section.rust p {
  color: var(--cream);
}

.content-section.rust .button-primary {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  padding: 60px 24px 40px;
  text-align: center;
  background: var(--cream);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.25rem;
}


/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.theme-options {
  position: fixed;
  top: 64px;
  right: 12px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-options.is-open {
  display: flex;
}

.theme-options button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}

.theme-options button:hover {
  background: var(--cream);
}


/* ============================================
   THEME VARIABLES
   ============================================ */

[data-theme="dark"] {
  --white: #1a1a1a;
  --black: #f1e0d0;
  --cream: #2d2d2d;
  --sage: #8a9999;
  --rust: #c4745e;
  --peach: #a67c6b;
}

[data-theme="dark"] body {
  background: var(--white);
  color: var(--black);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .theme-toggle {
  background: var(--white);
}

[data-theme="dark"] .site-header {
  border-bottom: 1px solid var(--sage);
}

[data-theme="dark"] .site-name,
[data-theme="dark"] .main-nav a {
  color: var(--black);
}

/* Keep hero text readable in dark mode.
   Dark mode swaps the meanings of --black and --cream,
   so the hero needs explicit light text colors. */
[data-theme="dark"] .hero {
  color: #f1e0d0;
}

/* Keep hero links and buttons readable too. */
[data-theme="dark"] .hero .photo-credit a {
  color: #f1e0d0;
}

[data-theme="dark"] .hero .button-primary {
  background: #f1e0d0;
  color: #1a1a1a;
  border-color: #f1e0d0;
}

[data-theme="dark"] .hero .button-primary:hover {
  background: #1a1a1a;
  color: #f1e0d0;
}

[data-theme="sepia"] {
  --white: #f4ecd8;
  --black: #5c4a32;
  --cream: #e8dcc0;
  --sage: #8b9a7d;
  --rust: #a65d48;
  --peach: #c49a7c;
}

[data-theme="sepia"] body {
  background: var(--white);
  color: var(--black);
}

[data-theme="sepia"] .theme-toggle {
  background: var(--cream);
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--cream);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}


/* ============================================
   JUMP TO COMMENTS
   ============================================ */

.jump-to-comments {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 16px;
  border: 1px solid var(--sage);
  background: var(--cream);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.jump-to-comments:hover {
  background: var(--sage);
  color: var(--white);
}


/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.content-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-family: var(--script-font);
  font-size: 2.5rem;
  font-weight: 400;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--rust);
  background: var(--cream);
  font-style: italic;
  font-size: 1.25rem;
}


/* ============================================
   BLOG
   ============================================ */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--cream);
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--sage);
  color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--cream);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--sage);
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.blog-card h2 a {
  text-decoration: none;
  color: var(--black);
}

.blog-card h2 a:hover {
  color: var(--rust);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 10px 18px;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  min-width: 44px;
  transition:
    background 0.2s,
    color 0.2s;
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
  background: var(--sage);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.post-content img:nth-of-type(odd) {
  float: left;
  max-width: 45%;
  height: auto;
  margin: 8px 24px 16px 0;
  border-radius: 4px;
}

.post-content img:nth-of-type(even) {
  float: right;
  max-width: 45%;
  height: auto;
  margin: 8px 0 16px 24px;
  border-radius: 4px;
}

.post-content img {
  display: block;
}


/* ============================================
   FORMS & CONTACT
   ============================================ */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 64px;
  align-items: start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.contact-form,
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 1.125rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

.form-group .cf-turnstile {
  margin-top: 8px;
}

.contact-info {
  padding: 32px;
  background: var(--cream);
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 600;
}

.contact-email {
  overflow-wrap: anywhere;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  text-decoration: none;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.contact-social-links img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.contact-social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
  text-decoration: none;
}

.contact-social-links a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.contact-note {
  margin-top: 32px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.form-note {
  font-size: 0.875rem;
  color: var(--sage);
  margin-top: 12px;
}

.status-success {
  color: #2e7d32;
  font-weight: 600;
}

.status-error {
  color: #c62828;
  font-weight: 600;
}

.status-warning {
  color: #f57c00;
  font-weight: 600;
}

.newsletter-form {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}


/* ============================================
   CONTACT INBOX (Owner)
   ============================================ */

.loading-section,
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--sage);
}

.empty-state.error {
  color: #c62828;
}

.inbox-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.inbox-filters .filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--sage);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.inbox-filters .filter-btn.active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  padding: 1rem;
  border: 1px solid var(--cream);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: var(--white);
}

.message-card:hover {
  background: var(--cream);
  border-color: var(--sage);
}

.message-card.unread {
  border-left: 4px solid var(--rust);
}

.message-card.read {
  border-left: 4px solid transparent;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.message-subject {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--body-font);
}

.message-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.badge.unread {
  background: var(--rust);
  color: var(--white);
}

.badge.read {
  background: var(--cream);
  color: var(--sage);
}

.badge.archived {
  background: var(--sage);
  color: var(--white);
}

.message-preview {
  color: var(--sage);
  font-size: 0.9rem;
}

.message-sender,
.message-date {
  margin: 0.25rem 0;
}

#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

#page-info {
  font-size: 0.9rem;
  color: var(--sage);
}

.message-modal {
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.message-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--cream);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--body-font);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sage);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.modal-close:hover {
  color: var(--rust);
  background: var(--cream);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.message-meta {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream);
  font-size: 0.95rem;
}

.message-meta p {
  margin: 0.25rem 0;
  color: var(--sage);
}

.message-meta strong {
  color: var(--black);
}

.message-content pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  line-height: 1.6;
  margin: 0;
  color: var(--black);
  font-size: 1.125rem;
}

.modal-footer {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--cream);
  flex-wrap: wrap;
}


/* ============================================
   PLANNER
   ============================================ */

.planner-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

#planner-app {
  background: var(--cream);
  padding: 40px;
  border-radius: 8px;
  min-height: 300px;
}

.iframe-fallback {
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--sage);
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 32px 24px;
  background: var(--cream);
  text-align: center;
}

.site-footer .site-name {
  font-size: 3rem;
  padding: 0;
}

.site-footer p {
  margin-bottom: 12px;
}


/* ============================================
   TABLET RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
  .site-header {
    padding-right: 72px;
    gap: 20px;
  }

  .nav-left {
    gap: 24px;
  }

  .main-nav {
    gap: 6px 18px;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .social-nav {
    gap: 6px;
  }

  .social-nav a {
    width: 32px;
    height: 32px;
  }

  .social-nav img {
    width: 28px;
    height: 28px;
  }
}


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px;
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-name {
    font-size: 2.6rem;
  }

  .main-nav {
    width: 100%;
    gap: 6px 18px;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .social-nav {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    gap: 12px;
  }

  .social-nav a {
    width: 36px;
    height: 36px;
  }

  .social-nav img {
    width: 32px;
    height: 32px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 64px;
  }

  .contact-info {
    padding: 28px;
  }

  .message-modal {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* ============================================
   SMALL MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .hero {
    min-height: 620px;
    padding: 56px 20px 24px;
  }

  .content-section {
    padding: 56px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .pagination {
    padding: 24px 16px;
  }

  .page-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .post-content img:nth-of-type(odd),
  .post-content img:nth-of-type(even) {
    float: none;
    max-width: 100%;
    margin: 24px 0;
  }

  .message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .button {
    width: 100%;
  }
}


/* ============================================
   BLOG POST CARD FRAME
   ============================================ */

.blog-post-page {
  background: var(--cream);
}

.post-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
}

.post-header {
  text-align: center;
  padding: 60px 48px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.post-category {
  display: inline-block;
  color: var(--rust);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--black);
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--sage);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.post-meta span {
  color: var(--sage);
  opacity: 0.6;
}

.post-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin: 0 0 60px;
  display: block;
}

.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 48px 60px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--black);
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--black);
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--black);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-content blockquote {
  margin: 40px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--rust);
  font-style: italic;
  color: var(--sage);
  font-size: 1.05rem;
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 4px;
}

.post-tags,
.post-author,
.post-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 48px;
  border-top: 1px solid var(--cream);
}

.post-tags h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage);
  margin-bottom: 16px;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.tag-list li {
  padding: 8px 18px;
  background: var(--cream);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--sage);
  transition: background 0.2s ease;
}

.tag-list li:hover {
  background: var(--sage);
  color: var(--cream);
}

.post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--black);
}

.author-info p {
  font-size: 0.95rem;
  color: var(--sage);
  line-height: 1.6;
}

.post-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-weight: 500;
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

.discussions-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px;
  background: var(--cream);
  border-top: 2px solid var(--sage);
}

.discussions-section h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
  text-align: center;
}

.error-message {
  text-align: center;
  padding: 120px 48px;
  max-width: 500px;
  margin: 0 auto;
}

.error-message h2 {
  margin-bottom: 16px;
}

.error-message a {
  color: var(--rust);
}

[data-theme="dark"] .blog-post-page {
  background: var(--cream);
}

[data-theme="dark"] .post-card {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="sepia"] .blog-post-page {
  background: var(--sage);
}

[data-theme="sepia"] .post-card {
  background: var(--white);
}

@media (max-width: 760px) {
  .post-card {
    margin: 0;
    box-shadow: none;
  }
  
  .post-header,
  .post-content,
  .post-tags,
  .post-author,
  .post-nav,
  .discussions-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .discussions-section {
    padding: 40px 24px;
  }
}


/* ============================================
   BLOG LISTING CARD FRAME
   ============================================ */

.blog-listing-page {
  background: var(--cream);
}

.blog-listing-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
}

[data-theme="dark"] .blog-listing-page {
  background: var(--cream);
}

[data-theme="dark"] .blog-listing-card {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="sepia"] .blog-listing-page {
  background: var(--sage);
}

[data-theme="sepia"] .blog-listing-card {
  background: var(--white);
}

@media (max-width: 760px) {
  .blog-listing-card {
    margin: 0;
    box-shadow: none;
  }
}

.radio-label > span {
  display: block;
}

.radio-label strong {
  display: block;
}

.radio-description {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--sage);
}

/* Navigation logo */
.site-name.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  background: transparent;
}

.site-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .site-logo img {
    width: 190px;
  }
}
/* Compact shared footer: horizontal brand and essential information. */
.site-footer.site-footer-compact {
  padding:8px 24px;
  background:#f1e0d0;
  color:#51203d;
  border-top:1px solid #d5bfb1;
}
.site-footer-compact .footer-inner {
  max-width:1200px; margin:0 auto; display:flex; align-items:center;
  justify-content:space-between; gap:12px 24px; flex-wrap:wrap;
}
.site-footer-compact .footer-brand { display:block; flex:0 1 260px; max-width:100%; }
.site-footer-compact .footer-brand img { display:block; width:260px; max-width:100%; height:auto; }
.site-footer-compact .footer-details { display:flex; flex-direction:column; gap:4px; text-align:right; line-height:1.4; }
.site-footer-compact .footer-details a { color:#51203d; font-size:1rem; text-underline-offset:3px; }
.site-footer-compact .footer-details small { font-size:.875rem; }
.site-footer-compact a:focus-visible { outline:3px solid #51203d; outline-offset:4px; }
@media(max-width:540px) {
  .site-footer-compact .footer-inner { justify-content:center; gap:0 16px; }
  .site-footer-compact .footer-brand { flex-basis:220px; }
  .site-footer-compact .footer-details { text-align:center; padding-bottom:8px; }
}