/* David Teeters — shared styles
   Palette: warm off-white, charcoal ink, deep rust accent
   Type: Fraunces (display) / Spectral (body) / JetBrains Mono (utility)
*/

:root {
  --bg:           #F7F4EE;
  --bg-alt:       #EFECE4;
  --bg-dark:      #1A1A1A;
  --ink:          #1F1F1F;
  --ink-soft:     #4A4A4A;
  --muted:        #7A7A7A;
  --rule:         #D8D3C9;
  --rule-strong:  #A6A196;
  --accent:       #7A3E29;
  --accent-soft:  #B8836A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

/* --- header / nav --- */
header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav .mark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
}
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: baseline; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.nav .cv-link {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.nav .cv-link:hover { background: var(--accent); color: var(--bg) !important; }

/* --- LANDING HERO: 3-city split background --- */
.hero-cities {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
}
.panel {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Placeholder gradients — replace with real cityscape photos (see IMAGES.md) */
.panel-nyc {
  background: linear-gradient(180deg, #0F1A2E 0%, #3A2F3F 45%, #6B4530 100%);
}
.panel-london {
  background: linear-gradient(180deg, #1A2540 0%, #4A3550 45%, #7A5A3F 100%);
}
.panel-singapore {
  background: linear-gradient(180deg, #1E304A 0%, #4A5065 45%, #8A6A45 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,30,0.72) 0%, rgba(15,20,30,0.58) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #F5F2ED;
  padding: 80px 0;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-lede {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  max-width: 780px;
  margin: 0;
  color: #F0EDE7;
}
.hero-signature {
  margin-top: 44px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

/* --- 3-card row on landing --- */
.three-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.three-card {
  background: var(--bg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background 120ms;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.three-card:hover { background: var(--bg-alt); }
.three-card .three-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.three-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.three-card p {
  margin: 0 0 auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.three-card .three-cta {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* --- page header (inner pages) --- */
.page-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-head.with-bg {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 40px;
  color: #F5F2ED;
}
.page-head.with-bg .page-head-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-head.with-bg .page-head-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,30,0.58) 0%, rgba(15,20,30,0.78) 100%);
  z-index: 1;
}
.page-head.with-bg .wrap { position: relative; z-index: 2; }
.page-head.with-bg h1,
.page-head.with-bg p { color: #F5F2ED; }
.page-head.with-bg .eyebrow { color: var(--accent-soft); }
.bg-markets {
  background: linear-gradient(135deg, #0F1A2E 0%, #1F2A3F 40%, #4A3A2A 100%);
}
.bg-research {
  background: linear-gradient(135deg, #3A2F26 0%, #5A4A38 50%, #7A6A50 100%);
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-head h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.page-head p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
  color: var(--ink-soft);
  margin: 0;
}

section.content-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
section.content-section:last-of-type { border-bottom: none; }
.section-head {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 28px;
}
.section-head .folio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.005em;
}
.section-body { display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.section-body .spacer { grid-column: 1; }
.section-body .content { grid-column: 2; }

/* --- Featured paper callout --- */
.paper-card {
  background: var(--bg-alt);
  padding: 30px 32px 28px;
  border-left: 3px solid var(--accent);
  margin-bottom: 24px;
}
.paper-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.paper-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.paper-card .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}
.paper-card p.abstract {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 20px;
  color: var(--ink-soft);
}
.paper-card .links {
  display: flex;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

/* --- FLB dataset feature (dark) --- */
.flb-feature {
  padding: 36px 32px;
  background: var(--bg-dark);
  color: var(--bg);
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.flb-feature .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.flb-feature h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 16px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}
.flb-feature p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #CFC6B6;
  margin: 0 0 16px;
  max-width: 60ch;
  position: relative;
  z-index: 2;
}
.flb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 8px;
  padding-top: 24px;
  border-top: 1px solid #3A3A3A;
  position: relative;
  z-index: 2;
}
.flb-stat .n {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--bg);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.flb-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* --- Paper list (Alpha-Omega) --- */
.paper-suite { margin: 8px 0 24px; }
.paper-suite h3.suite-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.paper {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.paper:last-child { border-bottom: none; }
.paper .greek {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.paper .info h4 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}
.paper .info p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.paper .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.paper .status.hot { color: var(--accent); }

/* --- Ledger rows (Markets, Educator) --- */
.ledger { border-top: 2px solid var(--ink); margin-top: 8px; }
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.ledger-row .years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.ledger-row .role {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
}
.ledger-row .role .firm {
  display: block;
  font-family: 'Spectral', serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}
.ledger-row .desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --- Publications --- */
.pub {
  padding: 16px 0;
  border-bottom: 1px dashed var(--rule);
}
.pub:last-child { border-bottom: none; }
.pub h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.pub .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
}
.pub .desc {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pub .citation-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Featured citation callout (Financial Times) --- */
.ft-callout {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 32px 34px;
  margin: 0 0 8px;
  position: relative;
}
.ft-callout .ft-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ft-callout .ft-quote {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--bg);
  border: none;
  padding: 0;
  quotes: none;
  max-width: 42ch;
}
.ft-callout .ft-cite {
  font-size: 14.5px;
  line-height: 1.55;
  color: #CFC6B6;
  margin: 0;
  max-width: 60ch;
}
.ft-callout .ft-cite em { font-style: italic; color: var(--bg); }
.ft-callout a { color: var(--bg); text-decoration-color: var(--accent-soft); }

/* --- Educator page --- */
.teach-block { margin-bottom: 32px; }
.teach-block:last-child { margin-bottom: 0; }
.teach-block .header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 16px;
}
.teach-block .header h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}
.teach-block .header .years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.teach-block .header .role {
  display: block;
  font-family: 'Spectral', serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.course {
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.course:last-child { border-bottom: none; }
.course h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 4px;
}
.course .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.course .desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* --- Personal photo grid (educator) --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 0;
}
.photo-slot {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.photo-slot.filled {
  background-size: cover;
  background-position: center;
  border: none;
}

/* --- Inline visuals (Bloomberg on Capital Markets; ledger + woodcut on Research) --- */
.inline-visual {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 20px 0;
  padding: 20px;
  text-align: center;
}
.inline-visual.filled {
  background-size: cover;
  background-position: center;
  border: none;
}
.inline-visual.tall { aspect-ratio: 3 / 4; }
.inline-visual.narrow { aspect-ratio: 21 / 9; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}
.contact-block p { margin: 0 0 6px; font-size: 15px; }
.contact-block .name { font-family: 'Fraunces', serif; font-size: 15px; }

/* --- Footer --- */
footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
footer .row { display: flex; justify-content: space-between; }

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav ul { gap: 12px; font-size: 11px; }
  .nav .cv-link { padding: 4px 8px; font-size: 10px; }
  .hero-cities { min-height: 70vh; }
  .three-cards { grid-template-columns: 1fr; gap: 1px; }
  .section-head, .section-body { grid-template-columns: 1fr; gap: 8px; }
  .section-body .spacer { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .flb-stats { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .paper { grid-template-columns: 40px 1fr; }
  .paper .status { grid-column: 2; text-align: left; margin-top: 4px; }
  .teach-block .header { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
