:root {
  --bg: #0b0a08;
  --bg-elev: #121110;
  --fg: #eeece6;
  --muted: #8a857b;
  --accent: #d9b26a;
  --border: #1c1a17;
  --max: 680px;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(217, 178, 106, 0.06), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(217, 178, 106, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

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

main {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.75rem 4rem;
  animation: fadein 700ms ease 40ms both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wordmark */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  border: none;
  margin-bottom: 3.5rem;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}

.wordmark:hover {
  color: var(--fg);
  border: none;
}

.mark-svg {
  flex-shrink: 0;
  color: var(--accent);
}

.wordmark-text {
  font-size: 0.95rem;
  font-style: italic;
}

/* Hero */

.hero {
  margin-bottom: 7rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
  color: var(--fg);
}

.h1-line {
  display: block;
}

h1 em {
  color: var(--accent);
  font-style: italic;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0;
  line-height: 1.6;
}

/* Sections */

section {
  padding-top: 3rem;
  margin-bottom: 6rem;
  border-top: 1px solid var(--border);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 0 0 2rem;
  color: var(--muted);
  text-transform: lowercase;
}

.muted {
  color: var(--muted);
  margin: -1.25rem 0 2rem;
  font-size: 0.9rem;
}

/* Projects */

.project-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.project:last-child {
  border-bottom: none;
}

.project.placeholder .project-name {
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
}

.project-name {
  font-weight: 400;
  color: var(--fg);
}

.project-kind {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer */

footer {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact a {
  font-size: 0.95rem;
}

/* Mobile */

@media (max-width: 480px) {
  main {
    padding: 4.5rem 1.25rem 3rem;
  }
  .hero {
    margin-bottom: 4.5rem;
  }
  section {
    margin-bottom: 4.5rem;
  }
  .wordmark {
    margin-bottom: 2.5rem;
  }
  .principles li {
    gap: 1rem;
  }
}
