/* Re’em Stern — personal academic website. Text-led, restrained and responsive. */
:root {
  --paper: #fcfbf8;
  --text: #28313d;
  --muted: #59616a;
  --rule: #e6e1d9;
  --accent: #8a725d;
  --content: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: #344b62; text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: #8a6347; }
a:focus-visible { outline: 2px solid #8a6347; outline-offset: 4px; }
.skip { position: absolute; z-index: 100; left: 12px; top: -100px; padding: 8px 14px; background: #fff; }
.skip:focus { top: 10px; }
.shell { width: min(var(--content), calc(100% - 72px)); margin: 0 auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav { min-height: 84px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: clamp(24px, 4.4vw, 62px); row-gap: 6px; }
.nav a { color: #606974; text-decoration: none; font-size: 15.5px; letter-spacing: .005em; padding: 10px 2px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: #202731; font-weight: 650; }
main { min-height: calc(100vh - 205px); }
.home { padding: 68px 0 90px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: clamp(38px, 6vw, 88px); align-items: start; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: clamp(32px, 3.3vw, 40px); line-height: 1.25; letter-spacing: -.025em; margin: 0 0 10px; }
.affiliation { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0 0 33px; }
.body-copy { max-width: 670px; font-size: 16.3px; line-height: 1.84; }
.body-copy p { margin: 0 0 21px; }
.body-copy p:last-child { margin-bottom: 0; }
em, cite { font-family: Georgia, 'Times New Roman', serif; }
.photo-frame { margin: 3px 0 0; padding: 6px; border: 1px solid #c8c0b6; background: #fff; }
.photo-frame img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.page { padding: 65px 0 92px; }
.page h1 { font-size: 37px; margin-bottom: 30px; }
.page-content { max-width: 765px; }
.page-content p { margin: 0 0 22px; font-size: 16.1px; line-height: 1.86; }
.page-content > section { margin-top: 48px; }
.page-content > section:first-of-type { margin-top: 0; }
h2 { font-size: 24px; line-height: 1.38; margin: 0 0 19px; }
h3 { font-size: 19px; line-height: 1.35; margin: 28px 0 11px; }
.bibliography { list-style: none; padding: 0; margin: 0; }
.bibliography li { margin: 0 0 22px; padding-left: 1.2em; text-indent: -1.2em; font-size: 15.9px; line-height: 1.8; }
.bibliography .pub-note { color: var(--muted); font-size: 14.4px; }
.ordinary-list { list-style: none; padding: 0; margin: 0; }
.ordinary-list li { padding: 0 0 15px; margin: 0 0 15px; border-bottom: 1px solid var(--rule); font-size: 15.8px; line-height: 1.75; }
.ordinary-list li:last-child { border: 0; }
.entry-date { color: var(--muted); }
.cv-section { padding-bottom: 4px; margin-top: 38px; }
.cv-section h2 { padding-bottom: 9px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.cv-section p { font-size: 15.7px; margin-bottom: 15px; }
.cv-section .bibliography li { font-size: 15.5px; }
.site-footer { border-top: 1px solid var(--rule); padding: 26px 0 32px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }
@media (max-width: 760px) {
  .shell { width: min(var(--content), calc(100% - 44px)); }
  .nav { min-height: 75px; column-gap: 29px; }
  .home { padding: 47px 0 66px; }
  .home-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; }
  .body-copy { font-size: 15.8px; }
}
@media (max-width: 580px) {
  .nav { min-height: 72px; column-gap: 22px; row-gap: 0; }
  .nav a { font-size: 14.5px; }
  .home { padding: 40px 0 60px; }
  .home-layout { grid-template-columns: 1fr; gap: 26px; }
  .home .photo-frame { order: -1; width: min(64%, 220px); margin: 0 auto 0 0; }
  h1 { font-size: 34px; }
  .affiliation { margin-bottom: 25px; }
  .page { padding: 41px 0 72px; }
  .page h1 { font-size: 33px; margin-bottom: 24px; }
  h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { body { background: white; color: black; } .nav, .site-footer { display: none; } .page, .home { padding: 8px 0; } .home-layout { grid-template-columns: 1fr 210px; gap: 25px; } }
