/* One system. Colors: red, blue, yellow, ink on paper.
   Type: Jost at 13 / 15 / 17 / 22 / 28 / 44 / 88 (44 and 22 halve 88).
   One tracking value for small caps. One grid: 200px label column, 40px gap. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --red: #d7263d;
  --blue: #1b4dbd;
  --yellow: #f2b705;
  --gold: #a67a00;
  --paper: #fafaf7;
  --muted: #5f5f5f;
  --line: #e6e6e6;
  --label: 200px;
  --gap: 40px;
  --track: .12em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Jost, system-ui, sans-serif; }
img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
/* Hover band has the same height on every link, whether inline, inline-block or a flex item */
a:hover { background: linear-gradient(var(--yellow), var(--yellow)) 0 55% / 100% 1.3em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.caps { font-size: 13px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 32px 96px; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { top: 16px; }

/* Navigation */
.top { display: flex; justify-content: space-between; align-items: center; }
.shapes { display: flex; gap: 8px; align-items: center; text-decoration: none; padding: 4px 0; }
.shapes:hover { background: none; }
.shapes i { display: block; width: 16px; height: 16px; }
.shapes .tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--yellow); }
.shapes .sq { background: var(--red); }
.shapes .ci { background: var(--blue); border-radius: 50%; }
.quick { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.quick a { display: inline-block; padding: 4px 0; }

/* Header on the same grid as the sections */
.hero { display: grid; grid-template-columns: 1fr 240px; gap: var(--gap); align-items: end; padding: 72px 0; }
h1 { margin: 0; font-size: 88px; line-height: .9; font-weight: 700; letter-spacing: -.02em; }
h1 span { display: block; color: var(--red); }
.focus { margin: 24px 0 4px; font-size: 28px; line-height: 1.25; font-weight: 500; }
.where { margin: 0; color: var(--muted); }
.portrait { position: relative; width: 240px; justify-self: end; }
.portrait img { position: relative; z-index: 1; display: block; width: 240px; height: 240px; object-fit: cover; }
.portrait::before { content: ""; position: absolute; left: -32px; bottom: -32px; width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); }

/* Page title for inner pages */
.page-title { padding: 72px 0 48px; }
.page-title h1 { font-size: 64px; }
.page-title p { margin: 16px 0 0; color: var(--muted); }

/* Sections */
section { display: grid; grid-template-columns: var(--label) 1fr; gap: var(--gap); padding: 36px 0; border-top: 2px solid var(--ink); }
section h2 { margin: 0; }
section p { margin: 0 0 16px; max-width: 640px; }

/* News: year once, then months; one continuous fade toward the oldest item */
.news { list-style: none; margin: 0; padding: 0; -webkit-mask-image: linear-gradient(#000 45%, rgba(0,0,0,.45)); mask-image: linear-gradient(#000 45%, rgba(0,0,0,.45)); }
.news li { display: grid; grid-template-columns: 48px 40px 1fr; gap: 0 12px; padding: 8px 0; }
.news .y { font-weight: 500; }
.news .m { color: var(--muted); text-align: right; }
.news b { font-weight: 500; }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 14px 0; }
.venue { --c: var(--ink); color: var(--c); font-weight: 500; padding-top: 2px; }
.venue::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.venue.micro { --c: var(--red); }
.venue.hpca { --c: var(--blue); }
.venue.hpca::before { border-radius: 50%; }
.venue span { display: block; padding-left: 18px; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; }
.title { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 500; }
.authors { color: var(--muted); font-size: 15px; margin-top: 2px; }
.authors strong { color: var(--ink); font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; align-items: baseline; font-size: 15px; }
.meta a { padding: 2px 0; }
.award { font-weight: 500; }
.more { margin: 16px 0 0 112px; }

/* Contact */
.hello { margin: 0; font-size: clamp(34px, 4vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mail { display: inline-block; margin: 14px 0 0; padding: 2px 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; font-weight: 500; }

@media (max-width: 760px) {
  .wrap { padding: 28px 20px 72px; }
  .top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .quick { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
  h1 { font-size: 60px; }
  .page-title h1 { font-size: 48px; }
  .focus { font-size: 22px; }
  .portrait { justify-self: start; width: 200px; margin-left: 32px; }
  .portrait img { width: 200px; height: 200px; }
  section { grid-template-columns: 1fr; gap: 16px; }
  .pubs li { grid-template-columns: 1fr; gap: 6px; }
  .venue span { display: inline; padding-left: 8px; }
  .more { margin-left: 0; }
}
