:root {
  /* Palette: Hosting Dispatch (Strictly No Blue) */
  --bg-paper: #f7f5f0;
  --bg-ivory: #fffdfa;
  --text-ink: #111111;
  --text-muted: #444444;
  --accent-red: #d62828;
  
  /* Typography */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Layout & Ease */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  padding: 2vw;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Page Frame */
.page-frame {
  background-color: var(--bg-ivory);
  border: 1px solid var(--text-ink);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--text-ink);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--text-ink);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem 2rem;
  background-color: var(--bg-ivory);
}

.main-nav a {
  color: var(--text-ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a:focus {
  color: var(--accent-red);
}

/* Mobile Nav Overlay */
.mobile-nav-panel {
  display: none;
  border-bottom: 1px solid var(--text-ink);
  background: var(--bg-paper);
  padding: 1rem 2rem;
}
.mobile-nav-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-panel a {
  font-family: var(--font-heading);
  color: var(--text-ink);
  text-decoration: none;
  font-size: 1.2rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-ink);
  line-height: 1.2;
}

.hero-band {
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--text-ink);
}

.hero-band h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 20ch;
  margin: 0 auto;
}

/* Reading Layout */
.main-content {
  flex-grow: 1;
  padding: 3rem 2rem;
}

.reading-column {
  max-width: 68ch;
  margin: 0 auto;
}

.reading-column h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
}

.reading-column p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Wide Photographs */
.bleed-img {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-top: 1px solid var(--text-ink);
  border-bottom: 1px solid var(--text-ink);
}

/* Pull Quotes */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-ink);
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent-red);
  background: var(--bg-paper);
}

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

.article-card {
  border: 1px solid var(--text-ink);
  background: var(--bg-ivory);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
}

.card-img-wrapper {
  position: relative;
  border-bottom: 1px solid var(--text-ink);
}

.card-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.card-badge {
  position: absolute;
  bottom: -12px;
  left: 16px;
  background: var(--accent-red);
  color: var(--bg-ivory);
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--text-ink);
}

.card-content {
  padding: 2rem 1.5rem 1.5rem;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--text-ink);
  color: var(--bg-ivory);
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: 1px solid var(--text-ink);
  box-shadow: 4px 4px 0 var(--text-ink);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  text-align: center;
}

.btn:hover, .btn:focus {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--text-ink);
  outline: none;
}

.btn-red {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 4px 4px 0 var(--accent-red);
}
.btn-red:hover, .btn-red:focus {
  box-shadow: 0px 0px 0 var(--accent-red);
}

.cta-wrapper {
  margin: 3rem 0;
  text-align: center;
}

/* Tables / Matrices */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.matrix-table th, .matrix-table td {
  border: 1px solid var(--text-ink);
  padding: 1rem;
  text-align: left;
}
.matrix-table th {
  background: var(--bg-paper);
  font-family: var(--font-heading);
}

/* Checklists */
.turnover-list {
  list-style: none;
  counter-reset: turnover-counter;
  margin: 2rem 0;
}
.turnover-list li {
  counter-increment: turnover-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.turnover-list li::before {
  content: counter(turnover-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-red);
  font-weight: bold;
}

/* FAQ Details */
details {
  border: 1px solid var(--text-ink);
  margin-bottom: 1rem;
  background: var(--bg-ivory);
}
summary {
  padding: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-red);
}
details[open] summary { border-bottom: 1px solid var(--text-ink); }
details[open] summary::after { content: "-"; }
.details-content { padding: 1.25rem; color: var(--text-muted); }

/* Forms */
.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-heading);
  font-weight: bold;
}
.form-group input, .form-group textarea {
  padding: 1rem;
  border: 1px solid var(--text-ink);
  background: var(--bg-paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-ink);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-actions { display: flex; gap: 1rem; margin-top: 1rem; }

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 3px double var(--text-ink);
  padding: 3rem 2rem 2rem;
  background: var(--bg-paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-ink);
}

.footer-bottom {
  border-top: 1px solid var(--text-ink);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal-links a {
  color: var(--text-muted);
  margin-left: 1rem;
  text-decoration: none;
}
.footer-legal-links a:hover { text-decoration: underline; }

/* Media Queries */
@media (max-width: 1024px) {
  .bleed-img {
    width: calc(100% + 4rem);
    margin-left: -2rem;
  }
}

@media (max-width: 768px) {
  body { padding: 0.5rem; }
  .page-frame { padding: 0; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .brand-row { padding: 1rem; }
  .hero-band { padding: 2rem 1rem; }
  .main-content { padding: 2rem 1rem; }
  .form-actions { flex-direction: column; }
  .bleed-img {
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }
}

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