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

@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-400italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-500italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-latin-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #0e0d0c;
  --text: #d4cfc4;
  --secondary: #a39a8d;
  --rule: #2c2925;
  --turquoise: #3ecfbf;
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 4px;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  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-repeat: repeat;
  background-size: 180px 180px;
}

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

.site {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px 40px;
  animation: fadeUp 0.65s ease both;
}

/* Mark — centered, italic, signature */
.mark {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--text);
  user-select: none;
  text-align: center;
}

.mark .period { color: var(--turquoise); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 24px;
}
.site-nav a {
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 2px;
  text-decoration: none;
  text-underline-offset: 5px;
}
.site-nav a:hover { color: var(--turquoise); text-decoration: underline; }
.site-orientation {
  max-width: 62ch;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--secondary);
}
.site-orientation p { margin-bottom: 12px; }
.start-link {
  display: inline-block;
  color: var(--turquoise);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  text-underline-offset: 5px;
}
.start-link:hover { color: var(--text); }
#work-title, #writing-title, #press-title, #contact { scroll-margin-top: 24px; }


/* Bio — centered, generous width */
.bio {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 56px;
  max-width: 62ch;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  flex: 1 1 auto;
}

.bio p + p { margin-top: 1em; }

/* Thin divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 0 0 64px;
}

/* Section label */
.label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* Two-column grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin-bottom: 80px;
}

/* Shared item styles — Work and Writing use the same rhythm */
.work-item,
.writing-item {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.work-item:last-child,
.writing-item:last-child { border-bottom: 1px solid var(--rule); }

.work-item h3,
.writing-item h3,
.writing-title {
  font-family: 'Spectral', serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 4px;
}

.work-item h3 a,
.writing-item h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #777065;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.18s;
}

.work-item h3 a:hover,
.writing-item h3 a:hover { color: var(--turquoise); }

.writing-title {
  display: block;
  cursor: default;
  pointer-events: none;
}

.work-item .venue,
.writing-item .venue {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.55;
  display: block;
}

.forthcoming-state {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* Press — full width, auto-filling grid */
.press { margin-bottom: 80px; }

.press > .label {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-bottom: 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

.press-item {
  padding: 20px 32px 20px 0;
  border-top: 1px solid var(--rule);
}

.press-item blockquote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.press-meta {
  font-size: 0.875rem;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.press-meta h3,
.press-date {
  display: inline;
  font: inherit;
}

.press-date::before { content: ' · '; }

.press-meta a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s, border-color 0.18s;
}

.press-meta a:hover {
  color: var(--text);
  border-color: var(--secondary);
}

/* Footer */
.foot {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 2.1;
  letter-spacing: 0.01em;
  text-align: center;
}

.foot a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s, border-color 0.18s;
}

.foot a:hover {
  color: var(--text);
  border-color: var(--secondary);
}

@media (max-width: 680px) {
  .site {
    padding: 0 24px 24px;
    margin-top: -14vh;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0, var(--bg) 240px, var(--bg) 100%);
  }
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .bio { text-align: left; }
  .mark { text-align: center; margin-bottom: 20px; }
  .site-nav { gap: 2px 16px; margin-bottom: 16px; }
  .site-orientation { text-align: left; margin-bottom: 28px; }
  .bio-row { flex-direction: column; gap: 20px; }
  .sra-tab { flex-direction: row; gap: 16px; border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 14px; }
  .press-grid { grid-template-columns: 1fr; }
  .label {
    font-size: 0.75rem;
    color: var(--text);
    letter-spacing: 0.28em;
  }
}
/* Bio + SRA sidebar layout */
.bio-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 0;
}

.sra-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-right: 1px solid var(--rule);
  padding-right: 28px;
}

.sra-tab-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 2px;
}

.sra-tab a {
  font-family: 'Spectral', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--turquoise);
  text-decoration: none;
  transition: color 0.18s;
  line-height: 1.7;
}

.sra-tab a:hover { color: var(--text); }

@media (max-width: 768px) {
  .bio-row { flex-direction: column; gap: 24px; }
  .sra-tab { flex-direction: row; gap: 16px; border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 16px; }
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--turquoise, #3ecfbf);
  color: #0e0d0c;
  padding: 8px 16px;
  font-family: 'Spectral', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.work-note {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.58);
  margin-top: 0.45rem;
  font-style: italic;
}

/* dissolving figure */
.figure {
  position: fixed;
  right: -2%;
  top: -6%;
  height: 112vh;
  width: 52vw;
  z-index: 1;
  pointer-events: none;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.12;
  mix-blend-mode: normal;
  filter: contrast(1.08) brightness(0.7) saturate(1.5);
}

.figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 30%),
    linear-gradient(to left, var(--bg) 0%, transparent 15%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 8%),
    linear-gradient(to top, var(--bg) 0%, transparent 10%);
}

@media (max-width: 680px) {
  .figure {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: min(36vh, 320px);
    overflow: hidden;
    z-index: 1;
  }
  .figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 1;
    filter: contrast(1.06) brightness(0.52) saturate(1.2);
  }
  .figure::after {
    background: linear-gradient(
      to bottom,
      rgba(14,13,12,0.05) 0%,
      rgba(14,13,12,0.4) 50%,
      rgba(14,13,12,0.88) 82%,
      var(--bg) 100%
    );
  }
}

.home-name {
  margin: 42px 0 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-role {
  color: var(--secondary);
  font: 600 0.8125rem/1.6 'Syne', sans-serif;
  margin-bottom: 24px;
}
.home-introduction { max-width: 68ch; line-height: 1.8; margin-bottom: 38px; }
.home-start { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 16px; }
.home-start a { padding-block: 8px; color: var(--turquoise); text-underline-offset: 4px; }
.research-statement { max-width: 68ch; margin: 0 0 64px; line-height: 1.85; }
.research-statement p + p { margin-top: 20px; }
.research-map { color: var(--secondary); }
.research-map a { color: var(--turquoise); text-underline-offset: 3px; }
.contact-block { padding-block: 28px 36px; border-top: 1px solid var(--rule); font-size: 1rem; }
.contact-block p { margin-block: 8px; }
.contact-block a { color: var(--turquoise); text-underline-offset: 4px; }
@media (max-width: 680px) {
  .home-name { margin-top: 28px; }
  .home-role { max-width: 32ch; margin-bottom: 20px; }
  .grid { gap: 40px; margin-bottom: 48px; }
  .research-statement, .press { margin-bottom: 48px; }
}

@media print {
  .home-start { display: none; }
  .home-name { margin-top: 0; }
  .site-nav, .start-link { display: none !important; }
  .site-orientation { text-align: left; margin: 0 0 24px; }
  :root {
    --bg: #ffffff;
    --text: #171513;
    --secondary: #4c4741;
    --rule: #b8b1a8;
    --turquoise: #006f65;
  }

  html,
  body {
    background: #ffffff !important;
    color: #171513 !important;
  }

  body::before,
  .figure,
  .skip-link,
  .sra-tab {
    display: none !important;
  }

  .site {
    animation: none;
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .mark {
    color: #171513;
    margin-bottom: 28px;
    text-align: left;
  }

  .bio-row,
  .grid,
  .press-grid {
    display: block;
  }

  .bio {
    max-width: 68ch;
  }

  .grid,
  .press {
    margin-bottom: 36px;
  }

  .work-col,
  .writing-col {
    break-inside: avoid;
    margin-bottom: 28px;
  }

  .work-item,
  .writing-item,
  .press-item {
    break-inside: avoid;
  }

  a {
    color: #171513 !important;
    text-decoration: underline;
  }

  a[href^='http']::after {
    color: #4c4741;
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
