/* Yossi Oren: academic website */
:root {
  --navy: #071c32;
  --ink: #102a43;
  --body: #34475a;
  --gold: #c8a84b;
  --paper: #fdfdfc;
  --line: #e3e8ed;
  --width: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--body); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 2px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 8px 16px; z-index: 10; background: white; color: var(--ink); }
.skip-link:focus { top: 10px; }
.site-header { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-bottom: 2px solid var(--gold); }
.navigation { max-width: var(--width); min-height: 84px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; padding: 0 2px; }
.home-link { font-size: 21px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav-links a:hover, .home-link:hover { color: #e6ca80; }
.navigation a[aria-current="page"] { color: #e6ca80; }
.nav-links .contact-link { color: #fff; }
.page-content { width: min(var(--width), calc(100% - 80px)); margin: 0 auto; flex: 1; }
.introduction { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center; padding-top: 76px; padding-bottom: 54px; }
.eyebrow { color: #8c702a; font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; margin: 0 0 18px; }
h1 { color: var(--ink); font-size: clamp(44px, 5.5vw, 66px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; margin: 0; }
.role { font-size: 24px; line-height: 1.4; color: var(--ink); margin: 28px 0 20px; }
.affiliation { line-height: 1.65; font-size: 18px; margin: 0; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 2px; }
.biography { border-top: 1px solid var(--line); padding-top: 32px; max-width: 100%; margin-bottom: 100px; }
.biography p { margin: 0 0 22px; }
.site-footer { width: min(var(--width), calc(100% - 80px)); margin: 0 auto; border-top: 1px solid var(--line); text-align: center; padding: 23px 0 25px; color: #73808c; font-size: 12px; }
.site-footer p { margin: 0; }
.research-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; padding-top: 65px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.research-sections { max-width: 880px; padding-top: 38px; padding-bottom: 65px; }
.research-sections section + section { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
h2 { color: var(--ink); font-size: 27px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 19px; }
.research-sections p { margin: 0 0 17px; }
@media (min-width: 1400px) { .introduction { padding-top: 90px; } }
@media (max-width: 1120px) { .navigation { margin: 0 40px; } .introduction { gap: 55px; grid-template-columns: 1fr 32%; } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .navigation { margin: 0 24px; min-height: 76px; gap: 14px; }
  .nav-links { gap: 23px; }
  .nav-links a { font-size: 14px; }
  .home-link { font-size: 18px; }
  .page-content, .site-footer { width: calc(100% - 48px); }
  .introduction { grid-template-columns: 1fr 38%; gap: 24px; padding-top: 48px; padding-bottom: 36px; }
  .eyebrow { font-size: 10px; margin-bottom: 13px; }
  h1 { font-size: 42px; }
  .role { font-size: 19px; margin: 20px 0 14px; }
  .affiliation { font-size: 14px; }
  .biography { padding-top: 26px; margin-bottom: 60px; }
  .research-heading { align-items: flex-start; flex-direction: column; padding-top: 43px; padding-bottom: 28px; gap: 23px; }
  h2 { font-size: 25px; }
}
@media (max-width: 420px) {
  .navigation { margin: 0 20px; flex-wrap: wrap; padding: 17px 0; min-height: 70px; gap: 10px; }
  .nav-links { gap: 20px; }
  .page-content, .site-footer { width: calc(100% - 40px); }
  .introduction { gap: 18px; }
  h1 { font-size: 35px; }
  .role { font-size: 17px; }
  .affiliation { font-size: 13px; }
  .identity .eyebrow { letter-spacing: .1em; }
}

/* Solid navy introduction matching the navigation background. */
.home-page .page-content { width: 100%; }
.hero-band {
  background: var(--navy);
  color: #f3f0e9;
}
.hero-band .introduction { width: min(var(--width), calc(100% - 80px)); margin: 0 auto; padding-top: 54px; padding-bottom: 54px; }
.hero-band h1 { color: #f8f6ef; font-family: Georgia, "Times New Roman", serif; }
.hero-band .role { color: #f3f0e9; }
.research-tagline { color: #e6ca80; font-size: 12px; font-weight: 650; letter-spacing: .16em; line-height: 1.5; margin: 24px 0 0; font-family: Georgia, "Times New Roman", serif; }
.home-page .biography { width: min(var(--width), calc(100% - 80px)); margin: 0 auto 100px; border-top: 0; }
@media (max-width: 760px) {
  .navigation { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 8px 20px; }
  .nav-links { flex-wrap: wrap; gap: 12px 23px; }
}
@media (max-width: 700px) {
  .hero-band .introduction { width: calc(100% - 48px); padding-top: 42px; padding-bottom: 42px; }
  .home-page .biography { width: calc(100% - 48px); margin-bottom: 60px; }
  .research-tagline { font-size: 10px; letter-spacing: .10em; margin-top: 20px; }
}
@media (max-width: 480px) {
  .hero-band .introduction { grid-template-columns: 1fr; gap: 28px; }
  .hero-band .portrait { width: min(240px, 80%); }
}
@media (max-width: 420px) {
  .hero-band .introduction, .home-page .biography { width: calc(100% - 40px); }
  .nav-links { width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
}

.publications-content { max-width: 880px; padding-top: 38px; padding-bottom: 65px; }
.publications-content p { margin: 0 0 17px; }
.publication-spacer { height: 17px; }
.publication-list { margin: 0; padding-left: 24px; }
.publication-list li { margin: 0 0 26px; padding-left: 3px; }
.publications-content a { color: var(--ink); text-decoration-color: var(--gold); overflow-wrap: anywhere; }
.publications-content a:hover { color: #8c702a; }
.publications-content strong { font-weight: 700; }

/* Consistent figure heights, with one full-width section for the two-panel plot. */
.research-projects { max-width: 100%; --figure-height: 300px; }
.research-projects .research-project { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.research-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 32px; align-items: center; }
.research-copy { min-width: 0; }
.research-projects .research-figure { margin: 0; min-width: 0; }
.research-figure a { display: flex; align-items: center; justify-content: center; height: var(--figure-height); }
.research-projects .research-figure img { display: block; width: auto; height: var(--figure-height); max-width: 100%; object-fit: contain; }
.figure-below .research-layout { display: block; }
.figure-below .research-figure { margin-top: 26px; }
@media (max-width: 1000px) {
  .research-projects { --figure-height: 260px; }
  .research-layout { grid-template-columns: minmax(0, 1fr) 375px; gap: 26px; }
}
@media (max-width: 800px) {
  .research-layout { grid-template-columns: 1fr; gap: 24px; }
  .research-projects { --figure-height: min(300px, calc((100vw - 48px) * 0.44)); }
}
