/* aligeris.com — site styles */
:root {
  --ground: #ffffff;
  --ink: #141414;
  --ink-2: #555555;
  --rule: #141414;
  --hair: #d9d9d9;
  --signal: #f26b38;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.7 var(--mono);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--signal); color: var(--ink); }
html { scrollbar-color: var(--ink-2) var(--ground); caret-color: var(--signal); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hair); }
a:hover { text-decoration-color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 12px; background: var(--ground); padding: 4px 8px; }

/* Navigation */
.site-nav { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.site-nav .home { font-weight: 500; text-decoration: none; }
.site-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav ul a { text-decoration: none; color: var(--ink-2); }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }

/* Masthead */
.mast { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 64px; padding-top: 72px; align-items: start; }
.mast h1 { font-size: 44px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.lede { margin-top: 20px; font-size: 17px; line-height: 1.65; max-width: 56ch; }
.posts { margin-top: 24px; }
.posts li { display: grid; grid-template-columns: 13ch 1fr; gap: 16px; padding: 6px 0; border-top: 1px solid var(--hair); }
.posts li:last-child { border-bottom: 1px solid var(--hair); }
.posts .k { color: var(--ink-2); }
.ids { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Portrait inside registration marks */
.target { position: relative; margin: 0 0 28px; padding: 18px; }
.target img { filter: grayscale(1) contrast(1.04); aspect-ratio: 1; object-fit: cover; width: 100%; }
.reg { position: absolute; width: 19px; height: 19px; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: 9px; top: 0; width: 1px; height: 19px; }
.reg::after { top: 9px; left: 0; height: 1px; width: 19px; }
.reg.tl { left: 0; top: 0; } .reg.tr { right: 0; top: 0; }
.reg.bl { left: 0; bottom: 0; } .reg.br { right: 0; bottom: 0; }
.target figcaption { position: absolute; right: 0; top: 100%; margin: 4px 0 0; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); text-align: right; }

/* The axis: shrinking bar groups ending in the signal patch */
.axis { display: flex; align-items: flex-end; gap: 22px; height: 26px; margin-top: 64px; border-bottom: 1px solid var(--rule); }
.axis .g { display: flex; align-items: flex-end; gap: var(--s); }
.axis .g i { display: block; width: var(--s); height: var(--h); background: var(--ink); }
.axis .patch { margin-left: auto; width: 56px; height: 26px; background: var(--signal); }

/* Sections */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.block + .block { margin-top: 0; }
.block h2, .doc h2 { position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 8ch; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.entry .t { display: block; }
.entry .m { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.entry .y { text-align: right; font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.more { display: inline-block; margin-top: 14px; font-size: 13px; }

.block h2::after, .doc h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 32px; height: 3px; background: var(--signal); }

/* Inner pages */
.page-head { padding-top: 64px; }
.page-head h1 { font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.page-head .lede { margin-top: 16px; }
.page-head + .axis { margin-top: 40px; }
.doc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 64px; margin-top: 48px; }
.toc { position: sticky; top: 32px; align-self: start; font-size: 13px; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.doc section { scroll-margin-top: 24px; }
.doc section + section { margin-top: 64px; }
.doc .prose { margin-top: 16px; max-width: 68ch; }
.doc .prose p + p { margin-top: 14px; }
.doc h3 { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 28px; }
.cv .entry { grid-template-columns: 10ch minmax(0, 1fr); }
.cv .entry .y { text-align: left; order: -1; }
.entry .d { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; max-width: 68ch; }
.legend { margin-top: 14px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend .role { display: inline-flex; align-items: center; gap: 8px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 12px; line-height: 1.6; background: var(--signal); color: var(--ink); }
.facts { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.facts strong { color: var(--ink); font-weight: 500; }

/* Publications */
.pubs .yr { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 24px; }
.pub { padding: 12px 80px 12px 0; border-bottom: 1px solid var(--hair); }
.pub b { font-weight: 500; }
.pub .links { display: inline; }
.pub .links a { margin-left: 10px; font-size: 13px; white-space: nowrap; }

/* Contact */
.kv li { display: grid; grid-template-columns: 16ch minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.kv .k { color: var(--ink-2); }

/* Role marks: solid stroke = PI or lead, dashed = researcher */
.entry .role { display: flex; align-items: flex-start; gap: 8px; }
.entry .role::before { flex: none; margin-top: 0.85em; }
.role::before { content: ""; width: 18px; border-top: 1.5px solid var(--ink); }
.role.dashed::before { border-top-style: dashed; }

.news { margin-top: 64px; }
.news .entry { grid-template-columns: 9ch minmax(0, 1fr); }
.news .entry .y { text-align: left; order: -1; }

/* Footer */
.site-foot { margin-top: 88px; padding: 18px 0 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .page-head { padding-top: 40px; }
  .pub { padding-right: 0; }
  .page-head h1 { font-size: 30px; }
  .mast { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .target { max-width: 200px; }
  .cols { grid-template-columns: 1fr; gap: 48px; }
  .mast h1 { font-size: 34px; }
  .axis { margin-top: 48px; gap: 14px; }
}
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .site-nav ul { gap: 6px 18px; }
  .posts li { grid-template-columns: 1fr; gap: 0; }
  .entry { grid-template-columns: 1fr; gap: 2px; }
  .entry .y { text-align: left; order: -1; }
  .news .entry, .cv .entry, .kv li { grid-template-columns: 1fr; gap: 2px; }
}
