/* Editorial Quiet — Design System
   Instrument Serif · JetBrains Mono · Geist */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@300;400;500&family=Geist:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --bg:   #f3efe7;
  --fg:   #1a1814;
  --rule: rgba(26,24,20,.18);
  --dim:  rgba(26,24,20,.7);
}
[data-theme="dark"] {
  --bg:   #13110d;
  --fg:   #f1ece0;
  --rule: rgba(241,236,224,.16);
  --dim:  rgba(241,236,224,.7);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  transition: background .5s ease;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', 'Helvetica Neue', Helvetica, sans-serif;
  transition: background .5s ease, color .5s ease;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a { opacity: .7; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── Theme toggle ── */
.theme-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 14px 7px 28px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .25s ease, border-color .25s ease;
}
.theme-btn:hover { background: var(--rule); }
.theme-btn .swatch {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--fg) 50%, transparent 50%);
  border: 1px solid var(--fg);
  transition: transform .5s cubic-bezier(.6,.2,.1,1);
}
[data-theme="dark"] .theme-btn .swatch {
  transform: translateY(-50%) rotate(180deg);
}

/* ═══════════════════════════════════
   Hero (index.html)
   ═══════════════════════════════════ */
.hero-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 72px 56px;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.hero-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(80px, 13.6vw, 196px);
  line-height: .92;
  letter-spacing: -.02em;
  font-weight: 400;
  font-style: italic;
}
.hero-name .period { font-style: normal; }

.hero-sub {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 28px;
}
.sub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
  flex-shrink: 0;
  transform: translateY(-3px);
}
.role-wrap {
  height: 22px;
  overflow: hidden;
}
.role-text {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 22px;
  animation: rollUp .6s cubic-bezier(.6,.2,.1,1);
}
@keyframes rollUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-meta a {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
}
.pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.foot-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 60px;
  line-height: 1;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 260px;
}
.foot-col p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--dim);
}

/* ═══════════════════════════════════
   Shared inner-page header
   ═══════════════════════════════════ */
.inner-page {
  padding: 0 72px 80px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}

.page-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(64px, 8.3vw, 120px);
  line-height: .9;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}

.page-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ═══════════════════════════════════
   About (pages/about.html)
   ═══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 96px;
  align-items: start;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fact-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fact-key { color: var(--dim); }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-text p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 620px;
}
.about-text a {
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
}

/* ═══════════════════════════════════
   Work (pages/work.html)
   ═══════════════════════════════════ */
.work-section {
  margin-bottom: 80px;
}

.carousel-wrap {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  height: 280px;
  width: auto;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.carousel-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .2s ease;
}
.carousel-btn:hover { background: var(--rule); }

.carousel-placeholder {
  height: 280px;
  width: 340px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}
