:root {
  --parch: #efe6d1;
  --page: #efe6d1;
  --ink: #14110e;
  --faded: #5e5448;
  --rule: #cfc2a6;
  --hair: #e2d7bf;
  --rubric: #972b1a;
  --brass: #8f7036;
  --halo: #e6ae22;
  --t-cultural-heritage: #97762a;
  --t-hci-ux: #356a5a;
  --t-ai-nlp: #2b4777;
  --t-speech: #972b1a;
  --t-digital-humanities: #714f31;
  --t-teaching: #646827;
  --t-japan: #465a72;
  --t-community: #7e7366;
  --shadow: rgba(60, 40, 15, 0.22);
  --display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: "Alegreya Sans", "Gill Sans", "Seravek", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
html,
body {
  margin: 0;
}
/* phones: no pinch or double-tap zoom, no grey tap flash, no font inflation on rotate */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body {
  background-color: var(--parch);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38  0 0 0 0 .28  0 0 0 0 .14  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.09'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.09rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--rubric) 55%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--rubric);
}
:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 2px;
}
button {
  font: inherit;
  color: inherit;
}

.layout {
  display: grid;
  grid-template-columns: minmax(380px, 46fr) minmax(0, 54fr);
  max-width: 1640px;
  margin: 0 auto;
}
/* the instrument: fixed while the page beside it changes */
.instrument {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 4vh, 44px) clamp(16px, 2.5vw, 40px) clamp(14px, 2.5vh, 28px);
  border-right: 1px solid var(--rule);
}
.who {
  width: 100%;
  text-align: center;
  min-height: calc(var(--band, 0px) - 76px);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  position: relative;
}
/* a hairline that fades at both ends, with a brass lozenge at its centre */
.who::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='10'%3E%3Cpath d='M26 0.5L30.5 5L26 9.5L21.5 5Z' fill='%238F7036'/%3E%3Ccircle cx='15' cy='5' r='1.2' fill='%238F7036'/%3E%3Ccircle cx='37' cy='5' r='1.2' fill='%238F7036'/%3E%3C/svg%3E")
      center/52px 10px no-repeat,
    linear-gradient(
        90deg,
        transparent,
        var(--rule) 18%,
        var(--brass) calc(50% - 26px),
        transparent calc(50% - 26px) calc(50% + 26px),
        var(--brass) calc(50% + 26px),
        var(--rule) 82%,
        transparent
      )
      center/100% 1px no-repeat;
}
.who h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  line-height: 1;
  margin: 0;
}
.who h1 a {
  text-decoration: none;
}
.who p {
  color: var(--faded);
  margin: 0.35rem 0 0;
  font-size: 1rem;
}
.who .ident {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  text-align: left;
}
/* the portrait is ringed like the instrument: a hairline, a breath of parchment, then brass */
#portrait {
  flex: none;
  width: clamp(76px, 7.4vw, 100px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow:
    0 0 0 4px var(--parch),
    0 0 0 5px color-mix(in srgb, var(--brass) 45%, transparent);
}
#portrait[hidden] {
  display: none;
}
.dock {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
#astro {
  height: 100%;
  max-height: calc(100dvh - 200px - var(--band, 0px));
  width: auto;
  max-width: 100%;
  aspect-ratio: 500/532;
  flex: 0 1 auto;
  min-height: 0;
}
.rings-key {
  text-align: center;
  font-size: 0.9rem;
  color: var(--faded);
  font-style: italic;
  margin: 0.2rem 0 0;
  max-width: 30em;
}
/* astrolabe */
.astro-wrap {
  position: relative;
  margin: 0.8rem auto 0.2rem;
  width: 100%;
  max-width: 470px;
}
#astro {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  overflow: visible;
  margin-block: auto;
}
#astro text {
  font-family: var(--display);
  fill: var(--ink);
}
#astro .eng {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}
#astro .eng.thin {
  stroke-width: 0.55;
  opacity: 0.75;
}
#astro .ring {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.18;
  stroke-dasharray: 1 3;
}
#astro .face {
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
  transform-origin: 250px 270px;
}
#astro.dragging .face {
  transition: none;
}
#astro .rete {
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
  transform-origin: 250px 270px;
}
#astro .rete * {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.2;
}
#astro .rete .star {
  fill: var(--brass);
  stroke: none;
}
#astro .alidade {
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
  transform-origin: 250px 270px;
  cursor: grab;
}
#astro.dragging .alidade,
#astro.dragging .rete {
  transition: none;
}
#astro.dragging .alidade {
  cursor: grabbing;
}
#astro .alidade:focus {
  outline: none;
}
#astro .alidade:focus-visible .rule {
  stroke: var(--rubric);
  stroke-width: 2;
}
#astro .dot.past {
  opacity: 0.45;
}
#astro .limb-hit {
  fill: transparent;
  cursor: pointer;
}
#astro .mount {
  display: none;
}
.cartouche {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: -0.2rem 0 0.2rem;
}
.cartouche button {
  background: none;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}
.cartouche button:hover {
  border-color: var(--rubric);
  color: var(--rubric);
}
.cartouche button:disabled {
  opacity: 0.3;
  cursor: default;
}
.cartouche output {
  font-family: var(--display);
  font-size: 1.5rem;
  min-width: 6.5em;
  text-align: center;
}
.cartouche output small {
  font-family: var(--sc);
  font-size: 0.85rem;
  color: var(--faded);
  display: block;
  margin-top: -0.15rem;
}
.rings-key {
  text-align: center;
  font-size: 0.86rem;
  color: var(--faded);
  font-style: italic;
  margin: 0 0 0.4rem;
}
.yr-list {
  list-style: none;
  margin: 0.15rem auto 0;
  padding: 0;
  max-width: 24em;
  min-height: 1.4em;
}
.yr-list li {
  margin: 0.12rem 0;
}
.yr-list button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--rubric) 40%, transparent);
  text-underline-offset: 0.18em;
}
.yr-list button:hover {
  color: var(--rubric);
}
.yr-list .none {
  color: var(--faded);
  font-style: italic;
  font-size: 0.92rem;
}
.strip .dot.out,
#bubbles .dot.out {
  opacity: 0.22;
}
.strip .mark {
  stroke: var(--rubric);
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
}
.fade {
  animation: fadein 0.35s ease-out;
}
@keyframes fadein {
  from {
    opacity: 0.15;
  }
}
@media (prefers-reduced-motion: reduce) {
  #astro .rete,
  #astro .alidade {
    transition: none;
  }
  .fade {
    animation: none;
  }
  #astro #glow circle {
    animation: none;
  }
}

.cartouche {
  margin: 0;
}
#astro .dot {
  cursor: pointer;
  transition: opacity 0.2s;
}
#astro .dot:focus {
  outline: none;
}
#astro .dot .hl {
  fill: none;
  stroke: transparent;
}
#astro .dot:hover .hl,
#astro .dot:focus-visible .hl {
  stroke: var(--ink);
  stroke-opacity: 0.5;
}
/* a brass haze rises wherever the instrument answers to the pointer */
#astro #glow {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
#astro.live #glow {
  opacity: 1;
}
#astro #glow circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: haze 2.6s ease-in-out infinite;
}
@keyframes haze {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.08);
  }
}

/* the leaf: the year, on the right */
.leaf {
  padding: clamp(22px, 4vh, 44px) clamp(20px, 4vw, 64px) 80px;
  min-width: 0;
}
.overview {
  margin: 0 0 1.6rem;
}
.overview svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.overview text {
  font-family: var(--body);
  font-size: 11.5px;
  fill: var(--faded);
}
.overview .star {
  transition: opacity 0.3s;
}
@media (prefers-reduced-motion: no-preference) {
  .overview .star.tw {
    animation: twinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d);
  }
  @keyframes twinkle {
    50% {
      opacity: 0.55;
    }
  }
}
.overview .col-hit {
  fill: transparent;
  cursor: pointer;
}
.overview .yr-col:hover .col-hit {
  fill: color-mix(in srgb, var(--rubric) 6%, transparent);
}
.overview .yr-col.on .col-hit {
  fill: transparent;
}
.overview .yr-col.on text {
  fill: var(--rubric);
}
.overview .yr-col:focus {
  outline: none;
}
.overview .yr-col:focus-visible .col-hit {
  stroke: var(--rubric);
}
.overview-cap {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--faded);
  font-style: italic;
  margin-top: 0.2rem;
}

.yh {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 1.4rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.9rem;
}
.yh .num {
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
}
.yh .role {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
}
.yh .role .gloss {
  display: block;
  font-style: italic;
  font-size: 0.62em;
  color: var(--faded);
  margin-top: 0.2rem;
}
.yh .where {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--rubric);
  margin-top: 0.3rem;
}
.sigil {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--rubric);
  overflow: visible;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 1.1rem 0 0.2rem;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--ink);
}
.toc a span {
  color: var(--faded);
  font-family: var(--body);
  font-style: italic;
}
.toc a:hover {
  color: var(--rubric);
}
.group {
  margin-top: 2.1rem;
  scroll-margin-top: 1rem;
}
.group > h2 {
  font-family: var(--sc);
  font-weight: 400;
  color: var(--rubric);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.group > h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}
.group > h2 span {
  color: var(--faded);
  font-family: var(--body);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0;
}
.th {
  display: inline-flex;
  gap: 0.2rem;
  vertical-align: middle;
  margin-left: 0.3rem;
}
.th svg {
  width: 0.75rem;
  height: 0.75rem;
}
.group h3 {
  font-weight: 400;
  margin: 0;
}
.group .m {
  margin: 0.1rem 0 0;
  color: var(--faded);
  font-style: italic;
  font-size: 0.97rem;
}
.group .m em {
  font-style: normal;
}
.group details {
  margin-top: 0.3rem;
  color: var(--faded);
  font-size: 0.97rem;
}
/* the toggle reads as a graduation on the limb: brass small caps, then a hairline running out to the margin */
.group details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-family: var(--sc);
  font-size: 0.92rem;
  letter-spacing: 0.045em;
  color: var(--brass);
}
.group details summary::-webkit-details-marker {
  display: none;
}
.group details summary::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--brass);
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.group details[open] summary::before {
  transform: rotate(0deg) scale(0.88);
}
.group details summary::after {
  content: "";
  flex: 1;
  border-top: 1px dotted var(--rule);
}
.group details summary:hover {
  color: var(--rubric);
}
.group details summary:hover::before {
  background: var(--rubric);
}
.group details .items {
  margin-top: 0.35rem;
}
/* item lists: one small star to a line, struck in the strand's own color */
.group ul.items {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}
.group ul.items li {
  display: grid;
  grid-template-columns: 0.95rem 1fr;
  gap: 0.5rem;
  margin-top: 0.28rem;
}
.group ul.items li:first-child {
  margin-top: 0;
}
.group .ib {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.46rem;
  opacity: 0.9;
}
.group blockquote {
  margin: 0.45rem 0 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--rubric);
  font-family: var(--display);
  font-style: italic;
}
/* positions: a card with the strand's color at its edge */
.card {
  position: relative;
  background: color-mix(in srgb, var(--parch) 72%, white 28%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--c);
  padding: 0.85rem 1.1rem 0.9rem;
  margin: 0.7rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
}
.card > * {
  grid-column: 1;
}
.card .shot {
  grid-column: 2;
  grid-row: 1 / span 5;
  margin: 0;
  width: 170px;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
.shot figcaption {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.3;
  font-style: italic;
  color: var(--faded);
}
.card .d {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--rubric);
  font-size: 1rem;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1.2;
  margin: 0.05rem 0 0;
}
.card .items {
  margin-top: 0.45rem;
}
.card .x {
  margin: 0;
}
/* writing: a citation list */
.cite {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  padding: 0.45rem 0;
}
.cite .bullet {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35rem;
}
.cite h3 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.35;
}
.cite .m {
  font-style: normal;
  font-size: 0.93rem;
}
.cite .k {
  font-variant: small-caps;
  color: var(--faded);
  font-size: 0.9rem;
  margin-left: 0.3rem;
}
/* everything else: dated rows */
.row {
  display: grid;
  grid-template-columns: 6.4rem 1fr auto;
  gap: 0.2rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px dotted var(--rule);
}
.row:first-of-type {
  border-top: 0;
}
.row .d {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--rubric);
  font-size: 1rem;
  padding-top: 0.1rem;
}
.row h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.35;
}
.row .items {
  margin-top: 0.25rem;
}
.row .x {
  margin: 0;
  font-size: 0.97rem;
  color: color-mix(in srgb, var(--ink) 82%, var(--parch));
}
.row .shot {
  margin: 0;
  width: 104px;
}
.quiet {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--faded);
}
.about {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
  color: var(--ink);
}
.about h2 {
  font-family: var(--sc);
  font-weight: 400;
  color: var(--rubric);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.about p {
  margin: 0.2rem 0 0.8rem;
  max-width: 40em;
}
.about nav {
  display: flex;
  gap: 1.2rem;
  font-style: italic;
}
.about small {
  display: block;
  color: var(--faded);
  font-style: italic;
  margin-top: 0.6rem;
}
.fade {
  animation: fadein 0.35s ease-out;
}
@keyframes fadein {
  from {
    opacity: 0.1;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade {
    animation: none;
  }
}

/* phones: the astrolabe becomes a dial docked at the bottom */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .instrument {
    position: static;
    height: auto;
    border-right: 0;
    padding: 34px 18px 0;
  }
  .who {
    text-align: left;
    display: block;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .who::after {
    position: static;
    display: block;
    margin-top: 1.1rem;
  }
  .who .ident {
    justify-content: flex-start;
  }
  body {
    padding-bottom: 208px;
  }
  /* the dock itself is see-through: the instrument's mount draws its rounded top, and taps outside it reach the page */
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(200px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    overflow: clip;
    z-index: 30;
    display: block;
    pointer-events: none;
  }
  #astro {
    position: absolute;
    width: min(560px, 145vw);
    height: auto;
    max-height: none;
    max-width: none;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    touch-action: pan-y;
    pointer-events: none;
  }
  #astro .mount {
    display: inline;
  }
  #astro .mount,
  #astro .face,
  #astro .alidade,
  .dock .cartouche {
    pointer-events: auto;
  }
  .dock .cartouche {
    position: absolute;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    margin: 0;
    background: var(--parch);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
    box-shadow: 0 4px 14px -8px var(--shadow);
  }
  .dock .cartouche output {
    font-size: 1.2rem;
    min-width: 5.6em;
  }
  .dock {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .dock .cartouche output small,
  .rings-key {
    display: none;
  }
  .leaf {
    padding-top: 14px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .row .d {
    padding: 0;
  }
  .row .shot {
    width: 100%;
    margin-top: 0.5rem;
  }
  .row > span {
    display: none;
  }
  .card {
    grid-template-columns: 1fr;
  }
  .card .shot {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 0.6rem;
  }
}
.tip {
  position: fixed;
  pointer-events: none;
  z-index: 40;
  background: var(--parch);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px -12px var(--shadow);
  padding: 0.3em 0.6em;
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity 0.1s;
  max-width: 280px;
}
.tip b {
  font-weight: 500;
  display: block;
}
.tip span {
  color: var(--faded);
  font-style: italic;
}
