@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation: none; }

:root {
  --paper: #F5F5F1;
  --blue: #0050C0;
  --yellow: #FFE500;
  --m: clamp(16px, 2.4vw, 40px);
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--blue);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 420;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, dl, dd, figure { margin: 0; }

::selection { background: var(--yellow); color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sheet {
  position: relative;
  min-height: 100svh;
  padding: var(--m);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.sheet > main { flex: 1 0 auto; }

.sheet--register.is-printed,
.no-js .sheet--register { background: var(--yellow); }

/* masthead */

.masthead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--m);
  align-items: baseline;
  font-size: .875rem;
  line-height: 1.25;
  font-weight: 500;
}

.masthead__name {
  grid-column: 1 / span 3;
  font-size: 1rem;
  font-weight: 800;
  font-stretch: 88%;
}

.masthead__what { grid-column: 4 / span 4; }
.masthead__where { grid-column: 8 / span 2; }

.masthead__nav {
  grid-column: 10 / span 3;
  justify-self: end;
  display: flex;
  gap: 1.25rem;
}

.masthead a:hover,
.masthead a:focus-visible,
.masthead a[aria-current="page"],
.facts a:hover,
.facts a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

/* the index: one run-on block of titles */

.poster {
  list-style: none;
  margin: clamp(2rem, 7vh, 5rem) 0 0;
  padding: 0;
  font-size: clamp(1.5rem, 3.4vw, 4rem);
  line-height: .94;
  font-weight: 800;
  font-stretch: 76%;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.intro {
  margin-top: clamp(2rem, 7vh, 5rem);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  font-weight: 560;
  font-stretch: 92%;
  max-width: 34ch;
}

.intro + .sr-only + h2 + .poster { margin-top: clamp(1.25rem, 3vh, 2rem); }

.poster li { display: inline; }

.poster .reg-label {
  display: block;
  margin: .9em 0 .15em;
  font-size: clamp(.75rem, .85vw, .875rem);
  line-height: 1.2;
  font-weight: 620;
  font-stretch: 100%;
  letter-spacing: .01em;
  text-transform: none;
}

.poster .reg-label:first-child { margin-top: 0; }

.poster .reg-start::before {
  content: "\A";
  white-space: pre;
}

.work:hover .work__title,
.work:focus-visible .work__title {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .07em;
}

.work:focus-visible { outline-offset: 1px; }

.work.is-overprinted .work__title {
  background: var(--yellow);
  box-shadow: .07em 0 0 var(--yellow), -.07em 0 0 var(--yellow);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nb { white-space: nowrap; }

.work__meta {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  margin: .3rem .45em 0 .2em;
  font-size: clamp(.75rem, .8vw, .875rem);
  line-height: 1.1;
  font-weight: 520;
  font-stretch: 100%;
  letter-spacing: .01em;
  text-transform: none;
}

.sep {
  font-weight: 200;
  font-stretch: 62%;
  margin-right: .12em;
}

/* the second plate */

.locus {
  position: relative;
  margin: clamp(2rem, 6vh, 4rem) calc(-1 * var(--m)) calc(-1 * var(--m)) 0;
  min-height: clamp(10rem, 30svh, 22rem);
}

.locus__ink {
  position: absolute;
  inset: 0 0 0 33.333%;
  background: var(--yellow);
}

.locus__words {
  position: relative;
  z-index: 1;
  margin-left: 33.333%;
  padding: clamp(1rem, 2.2vw, 2.25rem) var(--m) calc(var(--m) + 1.5rem) clamp(1rem, 2.2vw, 2.25rem);
  font-size: clamp(1.375rem, 2.5vw, 2.625rem);
  line-height: 1.08;
  font-weight: 560;
  font-stretch: 86%;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.locus__words > span {
  display: block;
  max-width: 26ch;
}

.locus__ink { visibility: hidden; }

.is-printed .locus__ink,
.no-js .locus__ink { visibility: visible; }
.is-printed.is-wordless .locus__ink { visibility: hidden; }

/* work and about pages */

.work-page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--m);
  align-content: start;
  margin-top: clamp(2rem, 7vh, 5rem);
}

.work-page__title {
  grid-column: 1 / -1;
  font-size: clamp(3rem, 10.5vw, 12rem);
  line-height: .86;
  font-weight: 820;
  font-stretch: 72%;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.work-page__title--motto { text-transform: none; font-stretch: 80%; }

.motto-translation {
  grid-column: 1 / -1;
  margin-top: .75rem;
  font-size: clamp(1.125rem, 1.8vw, 1.625rem);
  font-weight: 560;
  font-stretch: 92%;
}

.work-page__medium {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .25em 1.5em;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 620;
  font-stretch: 92%;
}

.bio {
  grid-column: 1 / span 7;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.22;
  font-weight: 520;
  font-stretch: 92%;
}

.bio p { max-width: 34ch; }
.bio p + p { margin-top: .9em; }

.facts {
  grid-column: 1 / span 4;
  align-self: start;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  gap: 1.1rem;
}

.facts > div { display: grid; gap: .15rem; }
.facts dt { font-size: .8125rem; font-weight: 720; }
.facts dd { font-size: 1.0625rem; line-height: 1.38; max-width: 42ch; }

.links { display: flex; flex-wrap: wrap; gap: .25em 1em; }
.links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.locus--work {
  grid-column: 5 / -1;
  margin: clamp(2rem, 5vh, 3.5rem) calc(-1 * var(--m)) 0 0;
  min-height: auto;
  align-self: start;
}

.subworks {
  grid-column: 5 / span 7;
  display: grid;
  gap: clamp(2rem, 5vh, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.subwork {
  padding-top: .9rem;
  border-top: 3px solid var(--blue);
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
}

.subwork__title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 76%;
  text-transform: uppercase;
}

.subwork__meta {
  display: flex;
  gap: 1.25em;
  margin: .4rem 0 .6rem;
  font-size: .875rem;
  font-weight: 620;
}

.subwork p:not(.subwork__meta) { max-width: 62ch; }
.subwork .plates { margin-top: 1rem; }

.locus--work .locus__words { margin-left: 0; }
.locus--work .locus__ink { left: 0; }

.sheet--register .locus__ink { background: none; }

.story,
.chapter__body {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
  font-weight: 430;
  font-stretch: 96%;
}

.story {
  grid-column: 5 / span 7;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.story p,
.chapter__body p { max-width: 62ch; }
.story p + p,
.chapter__body p + p { margin-top: .85em; }

.chapter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--m);
  margin-top: clamp(3rem, 9vh, 6rem);
}

.chapter__label {
  grid-column: 1 / span 4;
  font-size: .8125rem;
  font-weight: 720;
  line-height: 1.9;
}

.chapter__body { grid-column: 5 / span 7; }

.vocab {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.about-quote {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--yellow);
}

.about-quote p {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.2;
  font-weight: 560;
  font-stretch: 88%;
  max-width: 36ch;
}

.about-quote footer {
  margin-top: .6rem;
  font-size: .8125rem;
  font-weight: 620;
}

.recognition { display: grid; gap: 1.4rem; }
.recognition dt { font-weight: 720; }
.recognition ul,
.texts { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .3rem; }
.texts { margin-top: 1rem; }
.texts li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; }
.texts a { font-weight: 720; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.texts span { font-size: .9375rem; }

.vocab dt { font-weight: 720; }
.vocab dd { max-width: 58ch; }

.timeline {
  grid-column: 1 / -1;
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--m);
  align-items: baseline;
  padding: .85rem 0 .95rem;
  border-top: 1px solid var(--blue);
}

.timeline__years {
  grid-column: 1 / span 4;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 76%;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  grid-column: 5 / span 7;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.plates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--m);
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
}

.plates > figure:only-child {
  grid-column: 1 / -1;
  width: min(100%, 64rem);
}

.plates { align-items: start; }

.plate-photo__frame {
  display: block;
  position: relative;
  z-index: 0;
}

.plate-photo__frame::before {
  content: '';
  position: absolute;
  inset: -.6rem;
  z-index: -1;
  background: var(--yellow);
  visibility: hidden;
}

.is-printed .plate-photo__frame::before,
.no-js .plate-photo__frame::before { visibility: visible; }

.plate-photo__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.plates .plate-photo figcaption,
.portrait figcaption { margin-top: 1.1rem; }

.portrait {
  grid-column: 9 / -1;
  grid-row: span 2;
  align-self: start;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.plates--drawings {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}

.drawing__link { display: block; }
.drawing__link:hover img,
.drawing__link:focus-visible img { outline: 3px solid var(--blue); outline-offset: 3px; }

.plates--drawings:not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 64rem;
}

.drawing img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.plate-photo figcaption,
.drawing figcaption {
  margin-top: .55rem;
  font-size: .8125rem;
  font-weight: 560;
}

.colophon {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  font-size: .8125rem;
  font-weight: 560;
}

/* running foot: the same index, small */

.runfoot {
  margin-top: clamp(3rem, 10vh, 7rem);
  padding-top: .9rem;
  border-top: 3px solid var(--blue);
}

.poster--small {
  margin: 0;
  font-size: clamp(1.125rem, 1.9vw, 1.75rem);
}

.poster--small .work__meta { display: none; }

/* phone */

@media (max-width: 760px) {
  .masthead {
    grid-template-columns: 1fr auto;
    row-gap: .2rem;
  }
  .masthead__name { grid-column: 1; }
  .masthead__nav { grid-column: 2; grid-row: 1; }
  .masthead__what,
  .masthead__where { grid-column: 1 / -1; }

  .locus {
    margin-left: calc(-1 * var(--m));
    min-height: 12rem;
  }
  .locus__words { margin-left: 0; padding: 1.1rem var(--m) calc(var(--m) + 1.25rem); }
  .locus__ink { left: 0; }

  .facts,
  .bio,
  .portrait,
  .story,
  .subworks,
  .chapter__label,
  .chapter__body,
  .timeline__years,
  .timeline p { grid-column: 1 / -1; }
  .timeline p { margin-top: .4rem; }
  .locus--work {
    grid-column: 1 / -1;
    margin-left: calc(-1 * var(--m));
  }
  .locus--work .locus__words { padding-left: var(--m); }

  .plates { grid-template-columns: 1fr; }
}
