/* 
   DESIGN SYSTEM
   Palette: Base #f7f5f0, Surface #ffffff, Text #111111, Accent #d62828 
   Typography: Arial Narrow (Headings), system-ui (Body)
*/

:root {
  --bg-base: #f7f5f0;
  --bg-surface: #ffffff;
  --text-primary: #111111;
  --text-muted: #555555;
  --accent-red: #d62828;
  --radius-card: 20px;
  --shadow-soft: 0 8px 24px -4px rgba(17, 17, 17, 0.08);
  --shadow-hover: 0 24px 48px -12px rgba(17, 17, 17, 0.2);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --frame-margin: 3vw;
}

/* RESETS & BASE */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* THE INSET FRAME */
.page-frame {
  margin: var(--frame-margin);
  border: 1px solid var(--text-primary);
  min-height: calc(100vh - (var(--frame-margin) * 2));
  padding: clamp(1rem, 4vw, 4rem);
  position: relative;
  background-color: var(--bg-base);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { margin-bottom: 1.5rem; }

/* HEADER */
.site-header {
  position: static;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding-bottom: 1.5rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.brand {
  text-decoration: none;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: bold;
}

.site-nav {
  display: block;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-primary);
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: bold;
  font-size: 0.95rem;
  position: relative;
}

/* HOVER LINKS (Growing Underline) */
.nav-list a::after, .link-action::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-kinetic);
}

.nav-list a:hover::after, .link-action:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-action {
  text-decoration: none;
  color: var(--accent-red);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

/* MOBILE NAV */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* HERO SECTION */
.hero-splash {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17,17,17,0.3), rgba(17,17,17,0.8));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--bg-surface);
  margin-bottom: 2rem;
}

/* BUTTONS */
.btn-main {
  display: inline-block;
  background-color: var(--accent-red);
  color: var(--bg-surface);
  text-decoration: none;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: var(--radius-card);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.btn-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(214, 40, 40, 0.3);
}

/* LAYOUT & NARROW COLUMN */
.reading-column {
  max-width: 68ch;
  margin: 0 auto 4rem auto;
}

/* BREAKOUT IMAGES */
.breakout-container {
  width: 100%;
  max-width: 1100px;
  margin: 4rem auto;
}

.breakout-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}

/* CARDS */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  border: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 8px);
  margin-bottom: 1.5rem;
}

/* MASONRY GRID */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

/* PULL QUOTES */
.pull-quote {
  font-size: 1.75rem;
  color: var(--accent-red);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  border-left: 6px solid var(--accent-red);
  padding-left: 1.5rem;
  margin: 3rem 0;
}

/* SECTIONS */
.content-section {
  margin-bottom: 6rem;
}

/* FORMS / TOOLS */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(17,17,17,0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-base);
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent-red);
  border-color: transparent;
}

/* TABLES */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid rgba(17,17,17,0.1);
}
th {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* FOOTER */
.site-footer {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-legal {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 600px;
  margin: 0 auto;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17,17,17,0.1);
  }
  .site-nav.active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-toggle {
    display: block;
  }
  .header-top {
    margin-bottom: 0;
  }
  .page-frame {
    margin: 10px;
    padding: 1.5rem;
  }
  .hero-splash {
    height: 50vh;
  }
}

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