/* noahabp.com — one stylesheet, no JavaScript.
   Type: Source Serif 4 when self-hosted (see CLAUDE.md task 2); Charter/Georgia stack until then.
   Palette: white paper, warm near-black ink, one accent — Stanford cardinal. */

@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/SourceSerif4Variable-Roman.otf.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/SourceSerif4Variable-Italic.otf.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --accent: #8c1515; /* Stanford cardinal */
  --rule: #e7e2dc;
  --serif: "Source Serif 4", "Charter", "Iowan Old Style", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}

.site-nav .wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-nav ul a:hover,
.site-nav ul a:focus-visible { color: var(--accent); }

.site-nav ul a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- Home hero (variant A1: full-bleed photo, ink overlay) ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(26rem, 80vh, 42rem);
  background:
    linear-gradient(rgba(28, 25, 23, 0.50), rgba(28, 25, 23, 0.50)),
    url("assets/hero.jpg") 30% 22% / cover no-repeat;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 3rem;
}

/* Slim cardinal band — the site-wide header on every page */
.band { background: var(--accent); }

.band-inner {
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
}

.band .site-nav {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.band .site-nav .wordmark { color: #ffffff; }

.band .site-nav ul a { color: rgba(255, 255, 255, 0.78); }

.band .site-nav ul a:hover,
.band .site-nav ul a:focus-visible { color: #ffffff; }

.band .site-nav ul a[aria-current="page"] { color: #ffffff; border-bottom-color: #ffffff; }

.band + .page { padding-top: 2.75rem; }

.hero-text {
  margin: auto 0 auto auto;
  width: min(24rem, 44%);
  color: #ffffff;
}

.hero-text .eyebrow { color: #f2d7d7; margin: 0 0 0.9rem; }

.hero-text h1 { color: #ffffff; font-size: clamp(2.4rem, 4.5vw, 2.9rem); }

.hero-text .affiliation { color: rgba(255, 255, 255, 0.88); }

.hero-text .btn { background: #ffffff; color: var(--accent); }

.hero-text .btn:hover,
.hero-text .btn:focus-visible { background: #f2d7d7; }

.hero-headshot { display: none; }

.hero + .page { padding-top: 2.75rem; }

/* Below 700px: collapse to the cardinal block + circular headshot */
@media (max-width: 700px) {
  .hero {
    min-height: 0;
    background: var(--accent);
    padding: 0.25rem 1.25rem 2.5rem;
  }
  .hero-headshot {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px #ffffff;
    margin: 0.75rem 0 1.5rem;
  }
  .hero-text { width: 100%; margin: 0; }
}

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.affiliation {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Status eyebrow — the site's signature device: small-caps cardinal labels
   that carry real status information (job-market flag, review status, sections). */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.85rem 0 0;
}

/* ---------- Content ---------- */

main p { margin: 0 0 1.15rem; }

h2 {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.paper {
  margin-bottom: 1.1rem;
  background: #faf8f6;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
}

.paper > p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 0.9rem;
}

.btn:hover, .btn:focus-visible { background: #6f1010; }

.keywords {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 2.1;
  margin: 1.4rem 0 0;
}

.diss-figure { margin: 1.4rem 0 0.4rem; }

.diss-figure img { max-width: 100%; height: auto; display: block; }

.paper-title {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 0.2rem;
}

.paper-title a { color: var(--ink); }

.byline {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.status {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.diss-title {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0 0 0.6rem;
}

.talks {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.talks li {
  margin: 0 0 0.7rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

/* ---------- Links, contact, footer ---------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  margin: 1.6rem 0 0;
  padding: 0;
}

.links li:not(:last-child)::after { content: "·"; color: var(--muted); margin: 0 0.65rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  html { font-size: 16px; }
}
