/* florianfoos.net — academic site stylesheet (2026) */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #4a4945;
  --muted: #76746d;
  --rule: #e2dfd7;
  --accent: #1f3f66;
  --accent-ink: #19345a;
  --tag-bg: #eef1f6;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171716; --surface: #1f1f1d; --ink: #ecebe6; --ink-2: #c6c4bc; --muted: #9a988f;
    --rule: #34332f; --accent: #9db8de; --accent-ink: #b9cdea; --tag-bg: #26303d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171716; --surface: #1f1f1d; --ink: #ecebe6; --ink-2: #c6c4bc; --muted: #9a988f;
  --rule: #34332f; --accent: #9db8de; --accent-ink: #b9cdea; --tag-bg: #26303d; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.62;
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-top: 22px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; font-family: var(--sans); font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--accent); border-bottom-color: var(--rule); }
nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 36px 0 56px; }
h1 { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 0 0 18px; }
h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 44px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--ink-2); }

/* Home */
.intro { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.portrait { width: 220px; height: 220px; border-radius: 4px; object-fit: cover; display: block; }
.contact { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin-top: 14px; line-height: 1.7; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .portrait { width: 160px; height: 160px; }
  body { font-size: 17px; }
  h1 { font-size: 28px; }
}

/* Lists of works */
.works { list-style: none; margin: 0; padding: 0; }
.works li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.works li:last-child { border-bottom: 0; }
.works .title { font-weight: 600; }
.works .venue { font-style: italic; }
.works .authors, .works .meta { color: var(--ink-2); }
.links { font-family: var(--sans); font-size: 13.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.tag { font-family: var(--sans); font-size: 12px; background: var(--tag-bg); color: var(--accent-ink); padding: 1px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
.year-head { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); margin: 22px 0 0; }

/* Research areas */
.area { padding: 4px 0 18px; border-bottom: 1px solid var(--rule); }
.area:last-of-type { border-bottom: 0; }
.area p { color: var(--ink-2); }
.keyworks { font-family: var(--sans); font-size: 14.5px; margin: 6px 0 0; padding-left: 18px; }
.keyworks li { margin: 3px 0; }

/* Two-column dated lists */
.dated { width: 100%; border-collapse: collapse; }
.dated td { padding: 7px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.dated td:first-child { width: 130px; font-family: var(--sans); font-size: 14px; color: var(--muted); padding-right: 16px; white-space: nowrap; }
.dated tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .dated td { display: block; border-bottom: 0; padding: 0; }
  .dated td:first-child { padding-top: 10px; }
  .dated tr { display: block; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
}

.site-footer { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }

/* Photos */
figure.photo { margin: 22px 0 8px; }
figure.photo img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 4px; }
