@charset "UTF-8";

/* ----------------------------------------
   Plume Spice Base Styles
   ----------------------------------------
   Brand palette variables for consistency.
   These can be reused across all components.
----------------------------------------- */
:root {
  --color-navy: #005CA6;       /* trust, clarity */
  --color-turmeric: #FFD200;   /* crown highlight */
  --color-saffron: #F25C19;    /* warmth, callouts */
  --color-chili: #E30613;      /* spice energy */
  --color-cardamom: #3AAA35;   /* grounding */

  --color-bg-light: #fdfaf6;   /* default background */
  --color-text-dark: #333;     /* default text */
  --color-accent: #ffcc66;     /* meta tags, highlights */
}

/* Dark mode overrides for background/text */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-light: #111;
    --color-text-dark: #eee;
  }
}

/* ----------------------------------------
   Base Layout
   ----------------------------------------
   Body is a flex column so header + footer
   stay at top/bottom, and main grows in between.
----------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: system-ui, sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.3;
}

/* Shared container for consistent max-width */
.container {
  max-width: 80ch;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----------------------------------------
   Header
   ----------------------------------------
   Sticky so logo/title always visible.
----------------------------------------- */
.site-header {
  flex-shrink: 0;
  padding: 2px 0;

  position: sticky;   /* sticks to top */
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-light);
}

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

.logo a img {
  height: clamp(72px, 10vw, 120px);
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.logo a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.site-title {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 4px 0;
  color: var(--color-navy);
}

.spacer {
  width: clamp(60px, 9vw, 96px);
  flex-shrink: 0;
}

/* Dividers under header/footer */
.header-divider,
.footer-divider {
  width: 100%;
  border-top: 2px solid var(--color-cardamom);
}

.header-divider { margin: 8px 0 12px 0; }
.footer-divider { margin: 16px 0 12px 0; }

/* ----------------------------------------
   Main Sections
   ----------------------------------------
   Homepage vs Post layouts differ.
----------------------------------------- */

/* Homepage: center "Coming Soon" */
.home .site-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

/* Post pages: top/left aligned, but still flex-grow */
.post .site-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 16px;
}

.coming-soon {
  margin: 0;
  font-size: 1.6rem;
  color: var(--color-saffron);
}

/* Blog post content */
.blog-post {
  max-width: 70ch;
  margin: 0 auto;
}

.post-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 8px 0;
  line-height: 1.2;
  word-wrap: break-word;
  text-align: left;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

/* ----------------------------------------
   Callout Boxes
   ----------------------------------------
   Highlighted notes/tips/legacy reminders.
----------------------------------------- */
.callout {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.callout p { margin: 0; }

/* ----------------------------------------
   Footer
   ----------------------------------------
   Always at bottom; divider above text.
----------------------------------------- */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 4px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  font-size: clamp(0.8rem, 0.9rem + 0.2vw, 1rem);
  color: #888;
  position: relative;
  background-color: var(--color-bg-light);
}

/* ----------------------------------------
   Links & Highlights
----------------------------------------- */
a { color: var(--color-navy); }
a:hover { color: var(--color-chili); }

.highlight {
  background-color: var(--color-turmeric);
  color: var(--color-text-dark);
  padding: 8px;
  border-left: 4px solid var(--color-saffron);
}

.meta-tag {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ----------------------------------------
   Responsive Typography
----------------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
  html { font-size: 18px; }
  .site-title { font-size: 1.2rem; }
  .coming-soon { font-size: 1.4rem; }
}

@media (min-width: 1025px) {
  html { font-size: 22px; }
  .site-title { font-size: 1.4rem; }
  .coming-soon { font-size: 1.8rem; }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .container {
    max-width: 95%;
    padding: 0 12px;
  }
  .post-title {
    font-size: 1.3rem;
    line-height: 1.25;
  }
}

/* ----------------------------------------
   Dark Mode Support
----------------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
  }
  .site-header,
  .site-footer {
    background-color: var(--color-bg-light);
  }
  .site-title { color: var(--color-navy); }
  .coming-soon { color: var(--color-saffron); }
  .site-footer { color: #aaa; }
}