﻿:root {
  --bg: #0e0d0b;
  --bg-raise: #14120f;
  --ink: #e9e4d8;
  --muted: #8d8574;
  --rule: #2a2721;
  --accent: #c9a86a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: var(--bg); }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark-rule {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* hero */
.hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem) 3rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
}
.lede a { color: var(--ink); border-bottom: 1px solid var(--accent); }

/* notes grid */
.notes {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 5vw, 3rem) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.note {
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem 1.9rem;
}
.note:hover { border-color: #3a352c; }

.note-index {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.note h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.note p { color: var(--muted); font-size: 0.98rem; }

/* privacy doc */
.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}

.doc h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.updated {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

.doc section { margin-bottom: 2.4rem; }
.doc h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.doc p { color: var(--muted); }
.doc p strong { color: var(--ink); font-weight: 600; }

/* footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }

