/* --- 0xsubash.com --- */
:root {
  --bg: #0c0b0a;
  --bg-soft: #141210;
  --surface: #1a1816;
  --text: #e8e4e0;
  --text-muted: #9a948c;
  --accent: #d4a853;
  --accent-dim: #b8923f;
  --border: #2a2622;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --space: 1.5rem;
  --max-width: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .site-header {
    padding: var(--space) 1.25rem;
  }
  .nav {
    gap: 1rem;
  }
  .nav a {
    font-size: 0.85rem;
  }
}

/* Main */
main {
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-greeting {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
}

/* Story prose */
.section-story .prose {
  margin: 0;
}

.section-story .prose p,
.section-story .prose li {
  margin: 0 0 1rem;
}

.section-story .prose p:last-child,
.section-story .prose li:last-child {
  margin-bottom: 0;
}

.section-story .prose strong {
  color: var(--accent-dim);
  font-weight: 500;
}

.section-story .prose em {
  font-style: italic;
  color: var(--text-muted);
}

.section-story .prose h3 {
  margin: 2rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.section-story .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.section-story .prose ol li {
  margin-bottom: 0.25rem;
}

/* Lists */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

.list-books li::before,
.list-music li::before {
  content: "·";
}

.inline-list {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
