/* ==========================================================================
   eunice-rhee.com — shared stylesheet
   See spec: docs/superpowers/specs/2026-05-02-website-rebuild-design.md
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #111;
  --soft: #333;
  --muted: #666;
  --faint: #aaa;
  --line: #e8e6e0;
  --line-strong: #b8b6b0;
  --bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER (name LEFT, nav RIGHT) ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 56px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 38px;
}
nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ===== MAIN — wide for home, narrow for inner pages ===== */
main { margin: 0 auto; padding: 56px 56px 120px; }
main.wide { max-width: 1080px; }
main.narrow { max-width: 760px; }
main.medium { max-width: 920px; }

/* ===== HOME ===== */
.home-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.photo-col { display: flex; flex-direction: column; align-items: center; }
.photo {
  position: relative;
  width: 240px;
  height: 240px;
}
/* Warm cream halo behind the photo — fades to transparent, no hard edge */
.photo::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -60px;
  left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0ece3 0%, rgba(240, 236, 227, 0.55) 45%, rgba(240, 236, 227, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
.photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #25252b;
  display: block;
}
.icon-strip {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.icon-strip a {
  color: #444;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-strip a:hover { color: var(--ink); }
.icon-strip svg { width: 17px; height: 17px; fill: currentColor; display: block; }

.bio { padding-top: 4px; }
.bio .display-name {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.bio .role {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 400;
}
.bio p {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 15.5px;
  line-height: 1.75;
}
.bio p:last-child { margin-bottom: 0; }

/* ===== RESEARCH ===== */
.research-intro { margin-bottom: 56px; }
.research-intro p {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.pubs-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* Boxed publication cards */
.pub-card {
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.pub-card:hover { border-color: var(--line-strong); }
.pub-card.open { border-color: var(--ink); }
.pub-head {
  padding: 22px 26px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  user-select: none;
  /* Reset <button> defaults: */
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  min-height: 134px;
}
.pub-head:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.pub-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.pub-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.pub-venue {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.pub-venue .vol { font-style: normal; color: var(--faint); }

/* The toggle is a real <button> for keyboard accessibility */
.pub-toggle {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.pub-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.pub-card.open .pub-toggle {
  transform: rotate(45deg);
  color: var(--ink);
  border-color: var(--ink);
}

.pub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pub-card.open .pub-body { max-height: 1200px; }
.pub-body-inner {
  padding: 0 26px 24px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.pub-abstract {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--soft);
  margin: 0 0 18px;
}
.pub-links {
  display: flex;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  flex-wrap: wrap;
}
.pub-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.pub-links a:hover { border-color: var(--ink); }

/* ===== TEACHING ===== */
.teach-block { margin-bottom: 48px; }
.teach-school {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.teach-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.teach-block li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  white-space: nowrap;
}
/* 2-column course grid for the Seattle U list */
.teach-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  border-top: 1px solid var(--line);
}
.teach-grid li {
  border-bottom: 1px solid var(--line);
}
.teach-block .code {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 4px;
  text-transform: uppercase;
}
.teach-block .name {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}

/* ===== CV ===== */
.cv-wrap { max-width: 540px; }
.cv-wrap p { margin: 0 0 6px; color: var(--soft); }
.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.cv-button:hover { background: var(--ink); color: white; }
.cv-button svg { width: 14px; height: 14px; fill: currentColor; }
.cv-meta { color: var(--faint); font-size: 13px; margin-top: 48px; }

/* ===== PERSONAL ===== */
.personal { max-width: 720px; margin: 0 auto; }
.personal-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 auto 56px;
  max-width: 460px;
}
.personal-photos figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.personal-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.personal-photos figcaption {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.personal-text { max-width: 560px; margin: 0 auto; }
.personal-text p {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 16.5px;
  line-height: 1.75;
}
.personal-text p:last-child { margin-bottom: 0; }

/* ===== 404 ===== */
.not-found {
  text-align: center;
  padding: 80px 0;
}
.not-found h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 64px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.not-found .nf-sub {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
}
.not-found a.back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px;
  }
  nav ul { gap: 18px; flex-wrap: wrap; }
  main { padding: 32px 24px 80px; }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .photo-col { align-items: center; }
  .bio .display-name { font-size: 32px; }
  .personal-photos {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .teach-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0;
  }
  .pub-head { padding: 18px 18px; }
  .pub-body-inner { padding: 18px 18px 20px; }
  .not-found h1 { font-size: 48px; }
}
