:root {
  --bg-canvas: #182d25;
  --bg-surface: #243c32;
  --bg-surface-hover: #2b473b;
  --text-primary: #f2f1e0;
  --text-muted: rgba(242, 241, 224, 0.7);
  --accent-primary: #ff6f59;
  --accent-secondary: #ff8b7a;
  --border-subtle: rgba(242, 241, 224, 0.15);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.25);
  --glow-accent: 0 0 24px -4px var(--accent-primary);
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: 1.125rem;
}

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

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

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: transparent;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

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

.nav-link {
  color: var(--text-primary);
  font-variant: small-caps;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--accent-primary);
}

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

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  padding: 2rem 5%;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu.is-open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5% 2rem;
}

.hero-inner {
  min-height: 50vh;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 45, 37, 0.4), rgba(24, 45, 37, 1));
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,111,89,0.05), transparent 60%);
  z-index: 2;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

/* Typography & Content Wrappers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.content-readable {
  max-width: 70ch;
  margin: 0 auto;
}

h2 {
  font-size: 2.2rem;
  margin: 3rem 0 1.5rem;
  font-weight: normal;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: normal;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.meta-caps {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.editorial-lead {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-bottom: 4rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}

.editorial-lead:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-accent);
}

@media (min-width: 769px) {
  .editorial-lead {
    grid-template-columns: 3fr 2fr;
  }
}

.editorial-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.editorial-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--text-primary);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 1rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover, .btn:focus-visible {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  outline: none;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-canvas);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-primary);
}

/* Interludes & Vectors */
.coral-interlude {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 5rem 5%;
  text-align: center;
  margin: 4rem 0;
}

.coral-interlude p, .coral-interlude h2 {
  color: var(--bg-canvas);
  border: none;
}

.vector-icon {
  fill: var(--accent-primary);
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

/* Tables & Forms */
.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 var(--border-subtle);
}

th {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.contact-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-variant: small-caps;
  color: var(--text-primary);
}

input, textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--font-serif);
  border-radius: 0;
}

input:focus, textarea:focus {
  outline: 1px solid var(--accent-primary);
  border-color: var(--accent-primary);
}

.preview-box {
  background: var(--bg-canvas);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
  min-height: 100px;
  white-space: pre-wrap;
  color: var(--text-muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  background: var(--bg-surface);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.footer-coral-signoff {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-style: italic;
}

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

.footer-col h4 {
  font-variant: small-caps;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

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

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

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

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

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