:root {
  /* Plum Blush Persona Palette (Strictly No Blue) */
  --bg-canvas: #fbf1f0; /* Blush base */
  --bg-surface: #ffffff;
  --bg-surface-hover: #fdf8f7;
  --text-primary: #1c1917; /* Near-black */
  --text-muted: #57534e;
  --accent-primary: #6b2155; /* Plum */
  --accent-secondary: #4a163b; /* Darker plum */
  --border-subtle: #eadddb;
  
  /* UI Micro-Interactions */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(28, 25, 23, 0.08);
  --glow-accent: 0 0 20px -5px rgba(107, 33, 85, 0.3);
  
  /* Typography */
  --font-serif: 'Charter', 'Cambria', 'Georgia', serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 1.5rem; /* Wide outer margin */
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* The Magazine Inset Frame */
.page-frame {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

/* Typography Elements */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.25rem; font-size: 1.125rem; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--accent-secondary); }

.small-caps {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-size: 1.1em;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--accent-primary);
  height: 6px;
  width: 100%;
}

.site-header {
  position: relative; /* Scrolls out of view */
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  z-index: 100;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav a:hover { color: var(--accent-primary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Layouts */
.narrow-reading-column {
  max-width: 68ch;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Grid System */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breakout Image */
.breakout-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1rem;
}

.breakout-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Components */
.badge-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.badge-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.badge-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.badge {
  position: absolute;
  top: 1.5rem;
  left: -0.5rem;
  background: var(--accent-primary);
  color: var(--bg-surface);
  padding: 0.25rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.badge-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.btn {
  display: inline-block;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0; /* Square ends */
  text-align: center;
  margin-top: auto;
}

.btn:hover {
  background: var(--accent-primary);
  color: var(--bg-surface);
}

/* Pull Quotes */
blockquote.pull-quote {
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--accent-primary);
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  font-style: italic;
}

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  border-radius: 4px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.tool-output-panel {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 2rem;
  display: none;
}
.tool-output-panel.active { display: block; }
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem;
  text-align: center;
  background: var(--bg-surface);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.legal-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-image-wrapper { min-height: 40vh; }
}

@media (max-width: 768px) {
  body { padding: 0.5rem; }
  .site-header { padding: 1rem 1.5rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .main-nav.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .narrow-reading-column { padding: 2rem 1.5rem; }
  .grid-container { padding: 2rem 1.5rem; gap: 2rem; }
  .hero-content { padding: 3rem 1.5rem; }
  .site-footer { padding: 2rem 1rem; }
  blockquote.pull-quote { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
