/* stathistompaidis.org: one small stylesheet, no web fonts, no scripts. */

:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #5b636e;
  --rule: #e3e6ea;
  --link: #1d4f91;
  --link-hover: #0f3266;
  --callout-bg: #f3f6fa;
  --callout-border: #1d4f91;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e6e8eb;
    --muted: #a3abb5;
    --rule: #2c3239;
    --link: #8ab4f0;
    --link-hover: #b5d0f7;
    --callout-bg: #1c2229;
    --callout-border: #8ab4f0;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.5rem 1.5rem;
}
.site-name {
  font-weight: 650; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }

main { padding: 2.25rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 {
  font-size: 1.2rem; margin: 2.5rem 0 0.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.role { color: var(--muted); margin: 0 0 1.5rem; }
.intro .role { margin-bottom: 0.75rem; }

/* One line of profile links under the name */
.quick-links { margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.quick-links a { white-space: nowrap; }

/* Intro with photo */
.intro { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.intro img {
  width: 160px; height: 160px; object-fit: cover; border-radius: 50%;
  background: var(--rule);
}
@media (min-width: 40rem) {
  .intro { grid-template-columns: 1fr auto; align-items: start; }
  .intro img { order: 2; width: 180px; height: 180px; }
}

/* Financial Barometer callout */
.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--callout-bg);
  border-left: 4px solid var(--callout-border);
  border-radius: 0 6px 6px 0;
}
.callout p { margin: 0.25rem 0 0; }
.callout .callout-title { margin: 0; font-weight: 650; font-size: 1.1rem; }
.callout .callout-title a { text-decoration: none; }
.callout .callout-title a:hover { text-decoration: underline; }

/* Lists of papers */
.papers { list-style: none; margin: 0; padding: 0; }
.papers li { margin: 0 0 1.1rem; }
.paper-title { font-weight: 600; }
.paper-meta { color: var(--muted); }
.paper-links { font-size: 0.95rem; }
.paper-links a + a::before { content: " · "; color: var(--muted); }

.plain { padding-left: 1.2rem; }
.plain li { margin: 0.25rem 0; }

address { font-style: normal; }

.muted { color: var(--muted); }

/* Placeholder text that still needs Stathis's content: easy to spot in preview. */
.todo {
  background: #fff3c4; color: #5c4400; padding: 0 0.2em; border-radius: 3px;
}
@media (prefers-color-scheme: dark) {
  .todo { background: #4a3d10; color: #ffe8a3; }
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  font-size: 0.9rem; color: var(--muted);
}
.site-footer p { margin: 0.25rem 0; }

@media print {
  .site-header nav, .skip { display: none; }
  .callout { border: 1px solid #999; background: none; }
  a { color: inherit; }
}
