/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --paper: #f3ead8;
  --text: #2b2620;
  --text-mid: #3a332b;
  --text-label: #6a5f4f;
  --text-muted: #8a7d68;
  --text-faint: #a89a82;
  --border: #d9cfb9;
  --accent: #b23a2e;

  --font-serif: 'Spectral', serif;
  --font-display: 'Instrument Serif', serif;
  --font-mono: 'Space Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden], .page-hidden { display: none !important; }

html { font-size: 16px; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ============================================
   SKIP NAV
   ============================================ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-nav:focus { top: 0; }

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 48px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); }

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

nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text);
  cursor: pointer;
  padding-bottom: 3px;
  transition: color 0.15s;
  user-select: none;
}
.nav-link:hover { color: var(--accent); }

.nav-link .nav-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-link.active .nav-underline { opacity: 1; }
.nav-link.active { color: var(--text); }

/* ============================================
   HOME
   ============================================ */
#home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 79px);
}

.home-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 48px 48px 40px;
}

.home-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 12px;
}

.home-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.5px;
  color: var(--text);
}

.home-name em {
  font-style: italic;
  color: var(--text-mid);
}

.home-descriptor {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
}

.home-bio {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 380px;
}

.home-photo-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.home-abstract {
  position: absolute;
  top: -28px;
  left: -72px;
  width: clamp(120px, 12vw, 175px);
  height: clamp(155px, 16vw, 230px);
  object-fit: cover;
  border-radius: 2px;
  z-index: 0;
}

.home-headshot {
  position: relative;
  z-index: 1;
}

.home-headshot {
  width: clamp(200px, 22vw, 320px);
  height: clamp(260px, 30vw, 420px);
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
}

/* Ticker */
.home-ticker {
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}

.home-ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}

.home-ticker-track span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-faint);
  padding-right: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================
   INNER PAGES (work, projects, about)
   ============================================ */
.inner-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}

.inner-page.narrow {
  max-width: 620px;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.2px;
  margin-bottom: 40px;
}

/* ============================================
   WORK / TIMELINE
   ============================================ */
.work-entry {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.work-role-block {
  margin-top: 18px;
}

.work-role-block + .work-role-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.work-role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.work-company {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
}

.work-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-label);
  margin-top: 7px;
}

.work-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}

.work-bullets {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 620px;
}

.work-bullets li {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
}

.work-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--border);
  font-style: normal;
}

.metric-badge {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ============================================
   PROJECTS
   ============================================ */
.project-entry {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.project-header {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.project-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}

.project-title-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.project-title-link:hover { color: var(--accent); }

.project-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
  margin-left: 4px;
}

.project-inline-link {
  color: var(--accent);
  font-size: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.project-inline-link:hover { opacity: 0.7; }

.project-desc {
  margin-top: 12px;
  padding-left: 33px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 580px;
}

.project-metric {
  margin: 14px 0 0 33px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ============================================
   PRESS
   ============================================ */
.press-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s;
  color: var(--text);
}
.press-item:last-child { border-bottom: 1px solid var(--border); }
.press-item:hover { color: var(--accent); }
.press-item:hover .press-pub { color: var(--accent); }

.press-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.press-pub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.press-title-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
}

.press-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about-body p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.about-links-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  margin-top: 40px;
}

.about-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  transition: color 0.15s;
}
.about-link:last-child { border-bottom: 1px solid var(--border); }
.about-link:hover { color: var(--accent); }

.about-link-arrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
  min-height: calc(100vh - 79px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 48px 80px;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 22px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 34px;
  color: #332d26;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
}

.contact-social a {
  color: var(--text-label);
  transition: color 0.15s;
}
.contact-social a:hover { color: var(--accent); }

.contact-meta {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-faint);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 520px) {
  header {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 14px;
  }

  nav { gap: 16px; }

  .nav-link { font-size: 10px; letter-spacing: 1.5px; }

  .home-inner { grid-template-columns: 1fr; padding: 40px 24px 32px; gap: 28px; }

  .home-name { font-size: clamp(44px, 12vw, 72px); }

  .home-headshot { width: 100%; height: 280px; }

  .home-photo-wrap { width: 100%; }

  .inner-page { padding: 48px 24px 72px; }

  .page-title { font-size: 28px; }

  .work-header, .work-role-header { flex-direction: column; gap: 4px; }
}

/* ============================================
   FOCUS
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
