/* oettl.org — hand-set, no framework.
   Palette: paper, ink, one accent (Emory Blue, PMS 280). */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #012169;
  --rule: rgba(26, 26, 26, 0.9);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

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

/* ---- frame ---- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 40px 48px;
  display: grid;
  grid-template-columns: 300px minmax(0, 640px);
  gap: 0 84px;
  justify-content: space-between;
}

/* ---- rail ---- */

.rail {
  position: sticky;
  top: 76px;
  align-self: start;
}

.rail h1 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.rail .role {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.rail .affil {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.rail .portrait { margin: 30px 0; }

.rail nav ul,
.rail .contact {
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}

.rail nav { margin-bottom: 22px; }

.rail nav a,
.rail .contact a {
  color: var(--accent);
  text-decoration: none;
}

.rail nav a:hover,
.rail .contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rail .contact { border-top: 1px solid var(--rule); padding-top: 20px; }

/* ---- content ---- */

section { margin-bottom: 92px; }

h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-bottom: 44px;
}

#about p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
}

#about p + p { margin-top: 18px; }

#about a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---- paper entries ---- */

.paper {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0 28px;
  margin-bottom: 60px;
}

.paper.nofig { grid-template-columns: minmax(0, 1fr); }

.paper figure { align-self: start; }

.paper .year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.paper h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 5px;
  text-wrap: balance;
}

.paper .authors {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 5px;
}

.paper .venue {
  font-size: 14px;
  margin-bottom: 10px;
}

.paper .links {
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.paper .links a { text-decoration: none; }
.paper .links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.paper details { margin-top: 12px; }

.paper summary {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  width: fit-content;
}

.paper summary::marker { color: var(--muted); }
.paper summary:hover { color: var(--ink); }

.paper details[open] summary { color: var(--ink); margin-bottom: 10px; }

.paper details p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 58ch;
}

/* ---- book chapters ---- */

.chapters { list-style: none; }

.chapters li {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 62ch;
}

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

.chapters a {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.chapters a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ---- small screens ---- */

@media (max-width: 880px) {
  .page {
    display: block;
    padding: 44px 20px 40px;
  }

  .rail {
    position: static;
    margin-bottom: 72px;
  }

  .rail h1 { font-size: 32px; }

  .rail .portrait { max-width: 220px; }

  .paper {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px 0;
  }

  .paper figure { grid-row: auto; max-width: 320px; }

  section { margin-bottom: 72px; }
}

/* ---- standalone card home ---- */

.solo {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
}

.solo .card {
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 560px) 300px;
  gap: 84px;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 56px;
}

.solo h1 {
  font-size: 56px;
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}

.solo .role { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }

.solo .affil { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 30px; }

.solo .bio { font-size: 17px; line-height: 1.55; max-width: 52ch; margin-bottom: 38px; }

.solo .go { list-style: none; font-family: var(--mono); font-size: 14px; line-height: 2.1; margin-bottom: 30px; }
.solo .go a, .solo .contact a { color: var(--accent); text-decoration: none; }
.solo .go a:hover, .solo .contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.solo .contact {
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.1;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.solo footer {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .solo { padding: 40px 20px 32px; }
  .solo .card { display: block; margin: 24px 0 48px; }
  .solo h1 { font-size: 38px; }
  .solo .card .portrait { max-width: 220px; margin-bottom: 36px; }
}

/* rail extras for split-site pages */

.rail h1 a { color: inherit; text-decoration: none; }

/* ---- print ---- */

@media print {
  body { font-size: 11pt; }
  .page { display: block; max-width: none; padding: 0; }
  .rail { position: static; margin-bottom: 2em; }
  .rail nav, .rail .portrait { display: none; }
  .paper { break-inside: avoid; grid-template-columns: 110pt 1fr; }
  .paper figure { max-width: 100pt; }
  a { color: #000; text-decoration: none; }
  .colophon { display: none; }
}
