:root {
  /* Strict No-Blue Palette: Warm Paper, Ink, Signal Red */
  --bg-paper: #f7f5f0;
  --text-ink: #111111;
  --accent-red: #d62828;
  
  /* Layout & Spacing */
  --max-reading-width: 68ch;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hard: 4px 4px 0 0 var(--text-ink);
  --shadow-hover: 0px 0px 0 0 var(--text-ink);
}

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

html {
  lang: "en";
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Explicit override to prevent default blue focus/selection */
::selection {
  background: var(--accent-red);
  color: var(--bg-paper);
}

:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

a {
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .serif-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }

/* Header & Nav */
header {
  position: static;
  background: transparent;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-ink);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-mark {
  width: 24px;
  height: 24px;
  background-color: var(--accent-red);
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a:hover {
  color: var(--accent-red);
}

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-paper);
  border-bottom: 2px solid var(--text-ink);
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-nav-overlay.active {
  display: flex;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem;
  background: var(--bg-paper);
}

.hero-content {
  max-width: var(--max-reading-width);
  margin-left: max(0px, calc((100vw - 1200px) / 2));
}

.hero p.lead {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: var(--text-ink);
  max-width: 50ch;
}

/* Layout Engine: Editorial Reading Column */
.editorial-flow {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-flow > * {
  width: 100%;
  max-width: var(--max-reading-width);
  margin-bottom: 2rem;
}

.editorial-flow > .break-out {
  max-width: 1200px;
  width: 90vw;
  margin: 3rem 0;
  object-fit: cover;
  background-color: var(--accent-red);
}

.editorial-flow > .pull-quote {
  max-width: 900px;
  width: 80vw;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent-red);
  text-align: center;
  margin: 4rem 0;
  line-height: 1.3;
  border-top: 2px solid var(--text-ink);
  border-bottom: 2px solid var(--text-ink);
  padding: 2rem 0;
}

/* Block Accent Sections */
.accent-block {
  background-color: var(--accent-red);
  color: var(--bg-paper);
  padding: 6rem 2rem;
  width: 100%;
}

.accent-block h2, .accent-block h3, .accent-block p {
  color: var(--bg-paper);
}

.accent-block .break-out-container {
  max-width: var(--max-reading-width);
  margin: 0 auto;
}

/* Translucent Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.glass-card {
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--text-ink);
  padding: 2rem;
  border-radius: 0;
  color: var(--text-ink);
  transition: transform 0.4s var(--ease-kinetic);
}

.glass-card:hover {
  transform: translateY(-8px);
}

.glass-card.dark {
  background: rgba(17, 17, 17, 0.9);
  color: var(--bg-paper);
  border-color: var(--bg-paper);
}
.glass-card.dark h3 {
  color: var(--bg-paper);
}

/* Imagery */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.avatar {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Buttons & CTA */
.btn, button {
  display: inline-block;
  background: var(--text-ink);
  color: var(--bg-paper);
  font-family: system-ui, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  border: 2px solid var(--text-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: all 0.2s ease-out;
  border-radius: 0;
}

.btn:hover, button:hover {
  box-shadow: var(--shadow-hover);
  transform: translate(4px, 4px);
  text-decoration: none;
  background: var(--bg-paper);
  color: var(--text-ink);
}

.btn-accent {
  background: var(--accent-red);
  border-color: var(--text-ink);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--text-ink);
  color: var(--text-ink);
  font-family: system-ui, sans-serif;
  border-radius: 0;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  margin: 2rem 0;
  border-top: 2px solid var(--text-ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--text-ink);
}

th {
  font-family: Georgia, serif;
  font-weight: bold;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 2px solid var(--text-ink);
  padding: 1.5rem 0;
}

.faq-q {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic);
  margin-top: 0;
  opacity: 0;
}

.faq-item.active .faq-a {
  max-height: 500px;
  margin-top: 1rem;
  opacity: 1;
}

/* Animations & Kinetic Engine */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: var(--accent-red);
  color: var(--text-ink);
  padding: 4rem 2rem;
  border-top: 4px solid var(--text-ink);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--text-ink);
  font-size: 0.85rem;
  text-align: left;
}

/* Media Queries */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 3rem 1rem; }
  .hero-content { margin-left: 0; }
  h1 { font-size: 2.5rem; }
  .editorial-flow > .pull-quote { font-size: 1.5rem; width: 95vw; }
}

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