/* Panos Vorgias — academic website.
   Edit these variables to change the palette across both pages. */
:root {
  color-scheme: light;
  --background: #fbf8ef;
  --ink: #252722;
  --muted: #66685e;
  --accent: #796019;
  --gold: #d6b74e;
  --rule: #dfdccf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell-width: 54rem;
  --text-width: 39rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  border-top: 4px solid var(--gold);
  background: var(--background);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #efe0a3; color: var(--ink); }

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

a:hover { color: var(--ink); text-decoration-color: currentColor; }

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

main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--background);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.skip-link:focus { top: 0.75rem; }

.site-shell {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.primary-nav, .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.1rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav { padding: 1.9rem 0 0; }

.primary-nav a, .footer-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0 0.4rem;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover, .footer-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.primary-nav a[aria-current="page"], .footer-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.page-heading {
  text-align: center;
  margin: 2.8rem 0 2.2rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.subtitle-separator { padding: 0 0.35rem; }
.subtitle a { color: inherit; text-decoration: none; }
.subtitle a:hover { color: var(--accent); }

.portrait {
  width: 212px;
  max-width: 100%;
  margin: 0 auto 2.35rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.home-copy {
  max-width: var(--text-width);
  margin: 0 auto;
}

p { margin: 0 0 1.35rem; }

.document-links, .paper-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.8rem;
  row-gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.79rem;
  line-height: 1.7;
}

.document-links { margin: 1.7rem 0 2rem; }
.document-links a, .paper-links a { text-decoration: none; }
.document-links a:hover, .paper-links a:hover { text-decoration: underline; }

.file-type {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.market-note {
  padding: 1.2rem 0 0;
  margin: 0 0 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}

.market-note strong { font-weight: 400; font-style: italic; }
.contact { margin-bottom: 0; font-size: 1rem; }

.site-footer {
  max-width: var(--text-width);
  margin: 3.5rem auto 0;
  padding: 1.35rem 0 2.6rem;
  border-top: 1px solid var(--rule);
}

.footer-nav { font-size: 0.66rem; }

/* Research page */
.research-content { max-width: 44rem; margin: 0 auto; }
.research-heading { margin-bottom: 3rem; }

.research-section + .research-section { margin-top: 3.7rem; }

.section-label {
  margin: 0 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper { scroll-margin-top: 2rem; }
.paper + .paper { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

.paper h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.paper-subtitle {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.45;
}

.coauthors { margin: 0.65rem 0 0; color: var(--muted); font-size: 1rem; font-style: italic; }
.paper-links { margin: 0.9rem 0 0; }

.abstract-details { margin-top: 1rem; }
.abstract-details summary {
  width: fit-content;
  padding: 0.15rem 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.77rem;
  cursor: pointer;
  list-style: none;
}

.abstract-details summary::-webkit-details-marker { display: none; }
.abstract-details summary::before { display: inline-block; width: 1rem; content: "+"; }
.abstract-details[open] summary::before { content: "\2212"; }
.abstract-details summary:hover { color: var(--ink); }
.abstract { margin: 0.9rem 0 0; font-size: 1rem; line-height: 1.8; }

@media (max-width: 36rem) {
  body { font-size: 17px; line-height: 1.7; }
  .site-shell { padding: 0 1.35rem; }
  .primary-nav { padding-top: 1.35rem; }
  .primary-nav, .footer-nav { gap: 1.8rem; }
  .page-heading { margin-top: 2.1rem; margin-bottom: 1.8rem; }
  .subtitle { font-size: 0.79rem; }
  .subtitle-separator { display: none; }
  .affiliation { display: block; }
  .portrait { width: 184px; margin-bottom: 1.9rem; }
  .document-links { column-gap: 1.35rem; }
  .site-footer { margin-top: 2.7rem; padding-bottom: 2rem; }
  .research-heading { margin-bottom: 2.2rem; }
  .paper h3 { font-size: 1.35rem; }
  .paper-subtitle { font-size: 1.04rem; }
  .research-section + .research-section { margin-top: 2.7rem; }
}

@media print {
  body { border: 0; background: white; font-size: 11pt; }
  .site-shell { padding: 0; }
  .primary-nav, .site-footer, .skip-link { display: none; }
  .page-heading { margin-top: 0; }
  .portrait { width: 120px; }
  a { color: inherit; }
}

/* Make every job market paper link prominent on both pages. */
a.jmp-link { font-weight: 700; }
