:root {
  --base: #1c1917;
  --surface: #292524;
  --text: #f4f1ea;
  --text-muted: #a8a29e;
  --accent: #d4a84b;
  --accent-hover: #b88d35;
  --border: rgba(212, 168, 75, 0.3);
  
  --font-serif: Charter, Cambria, Georgia, serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--base);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
  font-size: 18px;
}

body {
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: normal;
  line-height: 1.2;
}

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

a:hover {
  color: var(--text);
}

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

/* Utilities */
.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.text-center { text-align: center; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.copy-container {
  max-width: 72ch;
  margin: 0 auto;
}

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

/* Header & Nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease);
}

.site-header.scrolled {
  background: var(--base);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
}

.brand a {
  color: inherit;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  font-size: 1.1rem;
}

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

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

@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 24px;
}

.hero-bg {
  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(28, 25, 23, 0.4) 0%, rgba(28, 25, 23, 0.9) 100%);
  z-index: 2;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--base);
  padding: 12px 32px;
  border-radius: 0;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover {
  background: var(--text);
  color: var(--base);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--base);
}

/* Sections & Clips */
section {
  padding: 96px 0;
  position: relative;
}

.bg-surface {
  background: var(--surface);
}

.clip-diagonal-top {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -4vw;
  padding-top: calc(96px + 4vw);
}

.clip-diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding-bottom: calc(96px + 4vw);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 48px;
  text-align: center;
  color: var(--accent);
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--accent);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.card-text {
  flex-grow: 1;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

/* Factual Strips */
.fact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
  font-size: 0.9rem;
}

.fact-item strong {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

/* Editorial Content */
.editorial-content {
  padding-top: 140px;
  padding-bottom: 96px;
}

.editorial-content h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--accent);
}

.editorial-content h2 {
  font-size: 2rem;
  margin-top: 64px;
  margin-bottom: 24px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.editorial-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.editorial-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 32px 0;
  padding: 16px 32px;
  font-style: italic;
  background: var(--surface);
  color: var(--text-muted);
}

/* Accordion FAQ */
.accordion {
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--surface);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px;
  color: var(--text);
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  padding: 0 24px;
}

.accordion.active .accordion-content {
  padding-bottom: 24px;
}

.accordion-icon::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
}

.accordion.active .accordion-icon::after {
  content: '−';
}

/* Forms & Tools */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 16px;
  background: var(--base);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

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

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 32px;
}

#preview-panel {
  display: none;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

#letter-preview {
  white-space: pre-wrap;
  font-family: monospace;
  background: var(--base);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  color: var(--text-muted);
}

.tool-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--base);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 24px;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

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

.footer-col li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
}

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

th, td {
  padding: 16px;
  border: 1px solid var(--border);
}

th {
  background: var(--surface);
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  section { padding: 64px 0; }
  .editorial-content { padding-top: 100px; }
}

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