/* Hofvarpnir Studios. Fonts are SIL OFL; licenses are next to them in /assets/fonts/. */
/* Alice (headings) and Manrope (text), the fonts of the original 2021 site. Alice has one weight and no italic. */
@font-face { font-family: Alice; src: url(/assets/fonts/alice-regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #F3EBDD; --ink: #23152A; --muted: #62546A; --rule: #DDD0BB;
  --plum: #51284F; --sun: #F2F0A1; --on-plum: #F7F1F7; --on-plum-muted: #DCCBDB;
  --serif: Alice, Georgia, serif;
  --display: var(--serif);
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 21px; }
.brand img { width: 40px; height: auto; display: block; }
header.site nav a { margin-left: 28px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--plum); }
header.site nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 56px; font-size: 14px; color: var(--muted); }
footer.site p { margin: 0; }

/* Type */
.label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); margin: 0 0 22px; }
h1, h2, h3, .brand, .num, .papers, .big { font-variant-ligatures: common-ligatures; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1, .band h2, .big { font-family: var(--display); }
h1 { font-size: clamp(46px, 6.6vw, 82px); line-height: 1.03; letter-spacing: -.015em; margin: 0 0 28px; }
h1 em, h2 em { color: var(--plum); font-style: normal; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 30em; margin: 0 0 34px; }
.textlink { font-weight: 600; text-decoration: none; background: linear-gradient(var(--plum), var(--plum)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s; }
.textlink:hover { background-size: 0 2px; background-position: 100% 100%; }

/* Home */
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.art img { width: 100%; height: auto; display: block; }
.cols { border-top: 1px solid var(--rule); }
.cols .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.col { padding: 44px 32px 52px 0; }
.col + .col { padding-left: 32px; border-left: 1px solid var(--rule); }
.num { font-family: var(--serif); color: var(--plum); font-size: 18px; }
.col h2 { font-size: 30px; margin: 4px 0 12px; }
.col p { margin: 0; color: var(--muted); }
.col a { color: var(--plum); font-weight: 600; text-underline-offset: 3px; }

.work .intro { color: var(--muted); margin: -8px 0 24px; max-width: 40em; }
.papers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.papers li { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.papers .year { font-family: var(--serif); color: var(--plum); font-size: 18px; }
.papers a { font-family: var(--serif); font-size: 21px; line-height: 1.35; text-decoration: none; }
.papers a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--plum); }
.papers .meta { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.work .tool { color: var(--muted); margin: 22px 0 0; }
.work .tool a { color: var(--plum); font-weight: 600; text-underline-offset: 3px; }

.band { background: var(--plum); color: var(--on-plum); }
.band .wrap { padding-top: 96px; padding-bottom: 96px; }
.band h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; margin: 0; max-width: 22ch; }
.band h2 span { color: var(--sun); }
.band p { margin: 0; font-size: 20px; }
.band a { color: var(--sun); }

/* Inner pages */
.page .wrap { padding-top: 72px; padding-bottom: 88px; }
.page h1 { font-size: clamp(42px, 5.6vw, 68px); }
.page h2 { font-size: 30px; margin: 64px 0 20px; }
.prose { max-width: 38em; }
.prose p { margin: 0 0 18px; }
.prose .lede { margin-bottom: 22px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.people img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 18px; }
.people h3 { font-size: 24px; margin: 0; }
.people p { margin: 2px 0 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 0; max-width: 38em; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); padding-top: 5px; }
.facts dd { margin: 0; }
.big { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 0 0 8px; }
.big a { text-decoration: none; background: linear-gradient(var(--plum), var(--plum)) 0 100% / 100% 2px no-repeat; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .art { max-width: 340px; order: -1; }
  .cols .wrap { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 32px 0; border-left: 0; }
  .col + .col { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  header.site nav a { margin-left: 20px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 64px; gap: 28px; }
  .art { max-width: 220px; }
  .page .wrap { padding-top: 48px; }
  .papers li { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .band .wrap { padding-top: 64px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
