/* lorenzo.optlyx.com — plain old-school homepage.
   No framework, no build step. Edit by hand. */

/* EB Garamond, self-hosted (variable, weights 400–800).
   Served from /fonts so the page makes no request to Google on every visit —
   faster, and no third-party transfer to justify under the GDPR. */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a1a1a;
  --muted: #666;
  --link: #0645ad;
  --link-visited: #0b0080;
  --rule: #e2e2e2;
  --bg: #ffffff;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  /* EB Garamond runs small on the body — 19px here reads like 17px Georgia. */
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
  font-size: 19px;
  line-height: 1.62;
  margin: 0;
  padding: 0 20px 80px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; }

a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: underline; }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.topbar nav a { margin-right: 14px; }
.topbar nav a.here { color: var(--ink); font-weight: bold; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 22px 0 28px;
}

/* ---- header block ---- */
.photo {
  float: left;
  width: 165px;
  margin: 4px 22px 12px 0;
  border: 1px solid var(--rule);
}
h1 {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 2px;
  letter-spacing: -.005em;
}
.tagline { color: var(--muted); font-size: 17px; margin: 0 0 16px; font-style: italic; }

h2 {
  font-size: 23px;
  font-weight: 500;
  margin: 40px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  clear: both;
}
h3 { font-size: 19px; margin: 22px 0 4px; }

p { margin: 0 0 14px; }

ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 7px; }

.dim, .date { color: var(--muted); }
.date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

/* ---- entry lists (posts, talks, cv rows) ---- */
.entries { list-style: none; padding: 0; }
.entries li { margin-bottom: 14px; }
.entries .meta { display: block; }
.entries .sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 17px;
}

.cv-row { margin-bottom: 20px; }
.cv-row .role { font-weight: bold; }
.cv-row .where { }
.cv-row .when { float: right; }
.cv-row .what { color: #333; margin: 3px 0 0; }
.cv-row::after { content: ""; display: block; clear: both; }

/* a plain line of measured numbers — no cards, no badges */
.stats {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin: 0 0 20px;
}

/* empty-state block: a page with nothing on it should still look designed */
.empty {
  margin: 26px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fbfbfa;
}
.empty p:last-child { margin-bottom: 0; }

blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
  color: #333;
  font-style: italic;
}

code {
  font-family: Menlo, Consolas, monospace;
  font-size: .88em;
  background: #f5f5f5;
  padding: 1px 4px;
}

footer {
  margin-top: 54px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--muted);
}

@media print {
  body { font-size: 12pt; padding: 0; }
  .topbar, footer { display: none; }
  a { color: var(--ink); }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .photo { width: 120px; margin-right: 16px; }
  h1 { font-size: 25px; }
}
