/* ===== FONTS ===== */
@font-face {
  font-family: 'Dijkstra';
  src: url('/public/fonts/dijkstra.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* ===== TOKENS ===== */
:root {
  --bg: #1b2920;
  --bg-alt: #1f2f25;
  --border: #2e4035;
  --text: #ede8d5;
  --text-muted: #a8a48e;
  --accent: #e0c86a;
  --accent-dim: #a08f45;
  --white: #f5f1e0;
  --font: 'Dijkstra', serif;
  --max-width: 1100px;
  --header-height: 60px;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg: #f7f2e3;
  --bg-alt: #efe9d3;
  --border: #c8bc98;
  --text: #1c1709;
  --text-muted: #6b6045;
  --accent: #7b5e12;
  --accent-dim: #5c4509;
  --white: #0e0b04;
}

[data-theme="light"] .site-header {
  background: rgba(247, 242, 227, 0.94);
}

[data-theme="light"] body::before {
  opacity: 0.055;
}

/* ===== BASE ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(27, 41, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-dot {
  color: var(--accent);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.theme-toggle::before {
  content: '☼';
}

[data-theme="light"] .theme-toggle::before {
  content: '☽';
}

/* ===== HERO ===== */
.hero {
  padding: calc(var(--header-height) + 7rem) 0 7rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-quote {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white);
  line-height: 1.55;
  max-width: 780px;
  margin: 0 auto 1.75rem;
  letter-spacing: 0.01em;
}

.hero-quote::before { content: '\201C'; color: var(--accent); }
.hero-quote::after  { content: '\201D'; color: var(--accent); }

.hero-attribution {
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.footer-email {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}
