:root {
  --bg:        #f5f0e8;
  --ink:       #1a1714;
  --ink-soft:  #4a4540;
  --ink-faint: #9a9088;
  --accent:    #b84c1e;
  --accent-dim:#e8d5cc;
  --rule:      #d4cabf;
  --surface:   #ffffff;
  --serif:     'Playfair Display', Georgia, serif;
  --body:      'Lora', Georgia, serif;
  --mono:      'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg:        #141210;
  --ink:       #ede8e0;
  --ink-soft:  #b8b0a8;
  --ink-faint: #5a5248;
  --accent:    #d4622a;
  --accent-dim:#2a1810;
  --rule:      #2a2520;
  --surface:   #1e1b18;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

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

.site-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.theme-toggle {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 680px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero-intro p + p { margin-top: 16px; }
.hero-intro strong { color: var(--ink); font-weight: 500; }

/* Section label */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.5s; }

/* Interests */
.interests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.interest-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.interest-card:hover {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent-dim);
}
.interest-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}
.interest-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.interest-desc {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* OS entry */
.os-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.os-entry:hover { border-color: var(--accent); }
.os-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.os-desc {
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 480px;
  line-height: 1.6;
}
.btn-os {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-os:hover { background: var(--accent); }
.btn-arrow { transition: transform 0.2s; }
.btn-os:hover .btn-arrow { transform: translateX(3px); }

/* Footer */
footer {
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

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

@media (max-width: 560px) {
  nav { flex-wrap: wrap; }
  .hero h1 { font-size: 38px; }
  .interests { grid-template-columns: 1fr; }
  .os-entry { flex-direction: column; align-items: flex-start; }
  .btn-os { width: 100%; justify-content: center; }
}
