:root {
  /* Scarlet Challenge Journal - Strictly No Blue */
  --bg-canvas: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-surface-hover: #faf9f6;
  --text-primary: #111111;
  --text-muted: #555555;
  --accent-primary: #d62828;
  --accent-secondary: #e85d04;
  --border-subtle: #dddddd;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
}

/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body, html { 
  background-color: var(--bg-canvas); 
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Inset Frame */
body {
  padding: 1.5rem;
}
.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--text-primary);
  background-color: var(--bg-canvas);
  position: relative;
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
p { margin-bottom: 1.25rem; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s var(--ease-kinetic); }
a:hover { color: var(--accent-secondary); }
ul, ol { margin-bottom: 1.25rem; padding-left: 2rem; }

/* Inset Capsule Header */
header {
  position: static;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-surface);
  margin: 1.5rem;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.nav-links a:hover {
  color: var(--accent-primary);
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section (Typography Only) */
.hero {
  background-color: var(--bg-canvas);
  padding: 6rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}
.hero p {
  font-size: 1.25rem;
  max-width: 68ch;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Vertical Progressive Pathway */
.main-content {
  padding: 3rem 1.5rem;
  flex: 1;
}
.pathway {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
.pathway::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--text-primary);
}
.node {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-kinetic);
}
.node.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.node-badge {
  position: absolute;
  left: -2.75rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}
.node-content {
  background-color: var(--bg-surface);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  border-radius: 0;
}
.node-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

/* Imagery */
.node-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  border-radius: 0;
}
.btn:hover {
  background: var(--accent-primary);
  color: var(--bg-surface);
}

/* Grids */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-card {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

/* Layout Utilities */
.reading-width {
  max-width: 68ch;
  margin: 0 auto;
}
.wide-width {
  max-width: 1000px;
  margin: 0 auto;
}
.text-center { text-align: center; }

/* Contact Form Tool */
.contact-tool {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}
.form-field input, .form-field textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  font-family: var(--font-sans);
  border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--text-primary);
  padding: 3rem 2rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 768px) {
  body { padding: 0.5rem; }
  .page-frame { margin: 0; }
  header { margin: 0.5rem; padding: 1rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 10;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-nav-toggle { display: block; }
  .pathway { padding-left: 1.5rem; }
  .node-badge { left: -2.25rem; }
  .hero { padding: 4rem 1.5rem; }
}

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