/* ── Variables ── */
:root {
  --bg:       #0c0c0a;
  --surface:  #141412;
  --surface2: #1c1c19;
  --ink:      #f0ece2;
  --ink2:     rgba(240,236,226,0.55);
  --ink3:     rgba(240,236,226,0.3);
  --accent:   #c8a96e;
  --accent2:  #8c6d3a;
  --rule:     rgba(240,236,226,0.1);
  --hover:    rgba(200,169,110,0.08);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Reset links */
a { color: inherit; text-decoration: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Nav ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

nav.site-nav.scrolled {
  background: rgba(12,12,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero (homepage) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(200,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(140,109,58,0.05) 0%, transparent 60%);
}

.hero-line {
  position: absolute;
  left: 48px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent2) 30%, var(--accent2) 70%, transparent);
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin-left: 80px;
  animation: fadeUp 0.9s ease both;
}

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

.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

h1.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
  animation: fadeUp 0.9s 0.15s ease both;
}
h1.hero-title em { font-style: italic; color: var(--accent); }

.hero-bio {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.9s 0.25s ease both;
}

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp 1s 0.6s ease both;
}
.scroll-hint span {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink3);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--ink3), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ── Buttons ── */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: #d4b87a; transform: translateY(-1px); }
.btn-ghost   { border: 1px solid var(--rule); color: var(--ink2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ── Sections ── */
section.page-section {
  padding: 100px 48px;
  border-top: 1px solid var(--rule);
}
.section-inner { max-width: 900px; margin: 0 auto; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: var(--accent2); }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

/* ── Writing / post grid ── */
.writing-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 48px;
}

.post-card {
  background: var(--bg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: background 0.2s ease;
  position: relative;
}
.post-card:hover { background: var(--hover); }
.post-card::after {
  content: '→';
  position: absolute; right: 36px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-size: 18px; color: var(--accent);
  opacity: 0; transition: all 0.2s ease;
}
.post-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

.post-card.featured { background: var(--surface); grid-template-columns: 1fr; }
.post-card.featured .post-title-text { font-size: 26px; }

.featured-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  padding: 3px 8px; margin-bottom: 16px;
}

.post-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

.post-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink); line-height: 1.3; margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.post-excerpt-text {
  font-size: 14px; color: var(--ink2);
  line-height: 1.6; font-weight: 300; max-width: 560px;
}

.post-meta-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--ink3);
  white-space: nowrap; padding-top: 4px;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.service-card {
  background: var(--bg); padding: 32px 28px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--hover); }
.service-num {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent); margin-bottom: 20px; letter-spacing: 0.1em;
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; line-height: 1.3;
}
.service-desc { font-size: 13.5px; color: var(--ink2); line-height: 1.65; font-weight: 300; }

/* ── Page header (inner pages) ── */
.page-header {
  padding: 140px 48px 80px;
  border-bottom: 1px solid var(--rule);
  max-width: 900px;
  margin: 0 auto;
}
.page-kicker {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.page-kicker::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 20px;
}
.page-header .page-lead {
  font-size: 18px; color: var(--ink2);
  font-weight: 300; line-height: 1.7; max-width: 580px;
}

/* ── Page body (inner pages) ── */
.page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px 120px;
}

.post-byline {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink3);
  padding-bottom: 32px; margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.page-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--ink); margin: 48px 0 16px; line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink2); margin: 32px 0 12px;
}
.page-body p { margin-bottom: 20px; color: var(--ink2); }
.page-body p:first-child { color: var(--ink); }
.page-body a { color: var(--accent); border-bottom: 1px solid rgba(200,169,110,0.3); transition: border-color 0.15s; }
.page-body a:hover { border-bottom-color: var(--accent); }
.page-body strong { color: var(--ink); font-weight: 600; }
.page-body ul, .page-body ol { padding-left: 1.4em; margin-bottom: 20px; color: var(--ink2); }
.page-body li { margin-bottom: 8px; line-height: 1.7; }
.page-body hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
.page-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 32px 0;
  font-style: italic; font-size: 18px; color: var(--ink2);
}

/* ── Archive / post listing ── */
.archive-list { list-style: none; }
.archive-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.archive-item:first-child { border-top: 1px solid var(--rule); }
.archive-meta {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 10px;
}
.archive-cat { color: var(--accent); margin-right: 14px; }
.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.25; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.archive-title:hover { color: var(--accent); }
.archive-excerpt { font-size: 14.5px; color: var(--ink2); line-height: 1.6; font-weight: 300; }

/* ── Contact ── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 48px;
}
.contact-text { font-size: 17px; color: var(--ink2); font-weight: 300; line-height: 1.75; margin-bottom: 36px; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink2); font-size: 14px;
  transition: color 0.2s; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-link:hover { color: var(--accent); }
.contact-link-label {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink3); width: 70px; flex-shrink: 0;
}
.contact-link:hover .contact-link-label { color: var(--accent); }
.currently {
  background: var(--surface); border: 1px solid var(--rule); padding: 32px;
}
.currently-title {
  font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.currently-item {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px; color: var(--ink2); font-weight: 300;
}
.currently-item:last-child { border-bottom: none; }
.currently-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-top: 8px; flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
}
.site-footer span {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: var(--ink3); text-transform: uppercase;
}
.site-footer a { color: var(--ink3); transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }

/* ── Mobile ── */
@media (max-width: 720px) {
  nav.site-nav    { padding: 16px 24px; }
  .nav-links      { gap: 20px; }
  .hero           { padding: 100px 24px 80px; }
  .hero-inner     { margin-left: 0; }
  .hero-line      { left: 24px; }
  section.page-section { padding: 72px 24px; }
  .services-grid  { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .page-header    { padding: 120px 24px 60px; }
  .page-body      { padding: 48px 24px 80px; }
  .site-footer    { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
}
