:root {
  --bg-canvas: #09090b;
  --bg-surface: #1c1917;
  --text-primary: #f7f5f0;
  --text-muted: rgba(247, 245, 240, 0.7);
  --accent-primary: #c2410c;
  
  --radius: 20px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --btn-shadow: 4px 4px 0 var(--accent-primary);
  --btn-shadow-hover: 0 0 0 var(--accent-primary);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Charter, Cambria, Georgia, serif;
  line-height: 1.6;
  padding: clamp(10px, 3vw, 40px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* The Frame */
.page-frame {
  border: 1px solid var(--bg-surface);
  min-height: calc(100vh - (clamp(10px, 3vw, 40px) * 2));
  display: flex;
  flex-direction: column;
  padding: clamp(15px, 4vw, 60px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

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

/* Header & Nav */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bg-surface);
  margin-bottom: 4rem;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-variant: small-caps;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.desktop-nav a {
  font-variant: small-caps;
  color: var(--text-primary);
  font-size: 1.1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 1rem 2rem;
  font-variant: small-caps;
  text-transform: lowercase;
  border: 1px solid var(--accent-primary);
  box-shadow: var(--btn-shadow);
  transition: transform 0.2s var(--ease-kinetic), box-shadow 0.2s var(--ease-kinetic);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: var(--btn-shadow-hover);
  color: var(--text-primary);
}

/* Layout: Split Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: center;
}

.split-section img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--bg-surface);
}

@media (min-width: 769px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-section.alt-order .split-content {
    order: 2;
  }
  .split-section.alt-order .split-media {
    order: 1;
  }
}

/* Layout: List Rows (No Cards) */
.list-container {
  margin-bottom: 6rem;
}

.list-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--bg-surface);
  align-items: start;
}
.list-row:first-of-type {
  border-top: 1px solid var(--bg-surface);
}

.list-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  line-height: 1;
}

.list-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.list-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Interactive Forms & Tool */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-variant: small-caps;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--bg-surface);
  color: var(--text-primary);
  padding: 1rem;
  font-family: inherit;
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.tool-panel {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 4rem;
  border-top: 1px solid var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 769px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-muted);
  font-variant: small-caps;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.legal-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  border-top: 1px solid var(--bg-surface);
  padding-top: 1rem;
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
  .brand-left .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  
  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: clamp(15px, 4vw, 60px);
    left: clamp(15px, 4vw, 60px);
    right: clamp(15px, 4vw, 60px);
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--accent-primary);
    z-index: 100;
    box-shadow: var(--btn-shadow);
  }
  .mobile-nav-panel.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-nav-panel a {
    font-size: 1.2rem;
    font-variant: small-caps;
    border-bottom: 1px solid var(--bg-canvas);
    padding-bottom: 0.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}}
