/* ============================================================
   DECLARE — Design System
   Brutalist editorial. Intention over restriction.
   ============================================================ */

/* --- Reset & Base --- */

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

:root {
  --bg: #F7F5F2;
  --text: #1A1918;
  --text-secondary: #6B6966;
  --accent: #E8612A;
  --border: #1A1918;
  --border-light: #D4D1CC;
  --font-mono: ui-monospace, "SF Mono", "Fira Code", "JetBrains Mono", "Courier New", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --content-width: 680px;
  --page-padding: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100F0E;
    --text: #F7F5F2;
    --text-secondary: #9B9895;
    --border: #F7F5F2;
    --border-light: #2E2D2B;
  }
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.12em;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}


/* --- Links --- */

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

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


/* --- Layout --- */

.page {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  flex: 1;
}


/* --- Header --- */

.site-header {
  padding: 3rem 0 2rem;
  border-bottom: 0.5px solid var(--border-light);
  margin-bottom: 3rem;
}

.site-header .page {
  flex: unset;
}

.site-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
}

.site-name:hover {
  color: var(--accent);
  border-bottom: none;
}


/* --- Hero (index) --- */

.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}


/* --- Dividers --- */

hr {
  border: none;
  border-top: 0.5px solid var(--border-light);
  margin: 3rem 0;
}

hr.accent {
  border-top-color: var(--accent);
}


/* --- Legal Pages --- */

.legal-content {
  padding: 2rem 0 4rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section p,
.legal-section ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.4rem;
}

.legal-section p.placeholder {
  font-style: italic;
  opacity: 0.6;
}


/* --- Footer --- */

.site-footer {
  border-top: 0.5px solid var(--border-light);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer .page {
  flex: unset;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}


/* --- Back link (legal pages) --- */

.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 2rem;
}


/* --- Responsive --- */

@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }

  html {
    font-size: 16px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .site-header {
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links {
    gap: 1.25rem;
  }

  hr {
    margin: 2rem 0;
  }
}
