/* ── Base: body, header, hero, shared section primitives, footer ── */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line-soft);
}

.logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
}
.logo .mark { color: var(--accent); }

nav { display: flex; gap: 2.25rem; }
nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); }

/* Hero */
#hero {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 2.5rem 5rem;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-tag::before { content: ''; width: 1.75rem; height: 0.5px; background: var(--line); }

.hero-title {
  font-family: var(--font-serif);
  font-size: 7rem;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 1.75rem;
}
.hero-title .mark { color: var(--accent); font-weight: 300; }

.hero-lede {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.hero-desc { font-size: 15px; color: var(--muted); max-width: min(100%, 52ch); line-height: 1.7; }

/* Shared section primitives */
section { padding: 7rem 2.5rem; }
.page-top { padding-top: 8.5rem; }
.wrap { max-width: 1040px; margin: 0 auto; }
.rule { border: none; border-top: 0.5px solid var(--line-soft); max-width: 1040px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 1rem;
  max-width: 19ch;
}

.section-intro { font-size: 16px; color: var(--muted); max-width: 54ch; line-height: 1.7; }

/* Footer */
footer {
  padding: 2rem 2.5rem;
  border-top: 0.5px solid var(--line);
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.footer-logo .mark { color: var(--accent); }
.footer-copy { font-size: 11px; color: var(--faint); letter-spacing: 0.03em; }

/* Responsive: shared */
@media (max-width: 860px) {
  header { padding: 1.2rem 1.5rem; }
  nav { gap: 1.25rem; }
  section { padding: 4.5rem 1.5rem; }
  #hero { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: 5.25rem; }
  .hero-lede { font-size: 1.55rem; }
  .section-title { font-size: 2.65rem; }
}
@media (max-width: 560px) {
  nav { display: none; }
  .hero-tag {
    display: block;
    line-height: 1.6;
    letter-spacing: 0.14em;
    max-width: 34ch;
  }
  .hero-tag::before {
    display: block;
    margin-bottom: 1rem;
  }
  .hero-title { font-size: 3.35rem; }
  .hero-lede { font-size: 1.35rem; max-width: 23ch; }
  .hero-desc { max-width: 28ch; }
  .section-title { font-size: 2.25rem; }
}
