/* ---------------------------------------------------------------------------
   pierreguichard.fr
   The whole visual system is taken from one measurement: the diffraction
   pattern of fast hydrogen atoms through monocrystalline graphene.
   Ground colour (#30123b) and accents are the "turbo" colour map of that
   figure; the recurring motifs are interference fringes and diffraction
   orders.
   --------------------------------------------------------------------------- */

:root {
  /* --- dark: the ground of the measurement itself --------------------- */
  --bg:        #150a1e;
  --bg-panel:  #21103049;
  --bg-solid:  #30123b;

  --ink:        #efeaf5;
  --ink-soft:   #c3b6d3;
  --ink-mute:   #9384a6;
  --ink-strong: #ffffff;

  /* diffraction orders, in order of increasing intensity */
  --o-blue:    #4675ed;
  --o-azure:   #39a2fc;
  --o-cyan:    #1bcfd4;
  --o-green:   #61fc6c;
  --o-amber:   #f3c63a;
  --o-orange:  #fe9b2d;
  --o-red:     #d93806;

  --line:      rgba(160, 130, 210, 0.16);
  --line-soft: rgba(160, 130, 210, 0.09);

  --field:     color-mix(in srgb, var(--bg-solid) 40%, transparent);
  --plate-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 90px -20px color-mix(in srgb, var(--o-blue) 35%, transparent);
  --wave-blend: normal;
  --wave-opacity: 0.28;
  --fringe-alpha: 5.5%;
  --wash-alpha: 16%;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1180px;
}

/* --- light: same figure, read on paper rather than in the dark ---------- */
:root[data-theme="light"] {
  --bg:        #f8f5fb;
  --bg-panel:  rgba(48, 18, 59, 0.035);
  --bg-solid:  #ffffff;

  --ink:        #1a1024;
  --ink-soft:   #443850;
  --ink-mute:   #6b5f77;
  --ink-strong: #0d0714;

  --o-blue:    #3357c9;
  --o-azure:   #1f6fd4;
  --o-cyan:    #077078;
  --o-green:   #2e8b39;
  --o-amber:   #96690a;
  --o-orange:  #b0530b;
  --o-red:     #b8300a;

  --line:      rgba(48, 18, 59, 0.17);
  --line-soft: rgba(48, 18, 59, 0.09);

  --field:     rgba(48, 18, 59, 0.03);
  --plate-shadow: 0 1px 2px rgba(48,18,59,.08), 0 24px 60px -24px rgba(48,18,59,.35);
  --wave-blend: multiply;
  --wave-opacity: 0.34;
  --fringe-alpha: 7%;
  --wash-alpha: 10%;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #f8f5fb;
    --bg-panel:  rgba(48, 18, 59, 0.035);
    --bg-solid:  #ffffff;

    --ink:        #1a1024;
    --ink-soft:   #443850;
    --ink-mute:   #6b5f77;
    --ink-strong: #0d0714;

    --o-blue:    #3357c9;
    --o-azure:   #1f6fd4;
    --o-cyan:    #077078;
    --o-green:   #2e8b39;
    --o-amber:   #96690a;
    --o-orange:  #b0530b;
    --o-red:     #b8300a;

    --line:      rgba(48, 18, 59, 0.17);
    --line-soft: rgba(48, 18, 59, 0.09);

    --field:     rgba(48, 18, 59, 0.03);
    --plate-shadow: 0 1px 2px rgba(48,18,59,.08), 0 24px 60px -24px rgba(48,18,59,.35);
    --wave-blend: multiply;
    --wave-opacity: 0.34;
    --fringe-alpha: 7%;
    --wash-alpha: 10%;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.14rem);
  line-height: 1.68;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

/* The interference ground: two radial wave trains of slightly different
   period, superposed. Their beat is what you see in the background. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 78% 8%,
      color-mix(in srgb, var(--o-blue) var(--fringe-alpha), transparent) 0 1px,
      transparent 1px 46px),
    repeating-radial-gradient(circle at 12% 88%,
      color-mix(in srgb, var(--o-cyan) var(--fringe-alpha), transparent) 0 1px,
      transparent 1px 53px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70rem 50rem at 82% -12%, color-mix(in srgb, var(--o-blue) var(--wash-alpha), transparent), transparent 62%),
    radial-gradient(52rem 40rem at 4% 4%,   color-mix(in srgb, var(--o-red) 5.5%, transparent), transparent 60%),
    radial-gradient(60rem 60rem at 50% 120%, color-mix(in srgb, var(--o-cyan) 7%, transparent), transparent 62%);
}

/* --- typography ---------------------------------------------------------- */

h1, h2, h3, h4 { font-weight: 400; line-height: 1.14; margin: 0; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.72rem, 3.2vw, 2.5rem); font-weight: 350; }
h3 { font-size: clamp(1.22rem, 1.8vw, 1.45rem); font-weight: 500; letter-spacing: -0.005em; }
h4 { font-size: 1.06rem; font-weight: 500; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--o-azure); text-decoration: none; }
.prose a, a.link {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--o-azure) 38%, transparent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color .18s, text-decoration-color .18s;
}
.prose a:hover, a.link:hover { color: var(--o-cyan); text-decoration-color: var(--o-cyan); }

em { font-style: italic; color: var(--ink); }
strong { font-weight: 600; color: var(--ink-strong); }
sup { font-size: .72em; line-height: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--o-cyan);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--o-cyan);
  box-shadow: 0 0 8px color-mix(in srgb, var(--o-cyan) 70%, transparent), 9px 0 0 -1px color-mix(in srgb, var(--o-cyan) 45%, transparent), 18px 0 0 -2px color-mix(in srgb, var(--o-cyan) 20%, transparent);
  flex: none;
}
.eyebrow.amber { color: var(--o-amber); }
.eyebrow.amber::before { background: var(--o-amber); box-shadow: 0 0 8px color-mix(in srgb, var(--o-amber) 70%, transparent), 9px 0 0 -1px color-mix(in srgb, var(--o-amber) 45%, transparent), 18px 0 0 -2px color-mix(in srgb, var(--o-amber) 20%, transparent); }

.lede { font-size: 1.22em; line-height: 1.55; color: var(--ink-soft); font-weight: 300; }
.mute { color: var(--ink-mute); }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; }

.prose { max-width: var(--measure); }
.prose > * + h3 { margin-top: 2.2em; }
.prose h3 + p { margin-top: 0.7em; }

/* --- layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2.8rem, 6vw, 5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* A diffraction-order divider: intensity falls off as a sinc envelope. */
.orders { display: flex; align-items: center; gap: 10px; padding-block: 0.4rem; }
.orders span {
  display: block; border-radius: 50%; background: currentColor; color: var(--o-azure); flex: none;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--o-azure); color: #100; padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- header -------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--ink); font-size: 1.02rem; letter-spacing: 0.01em; white-space: nowrap;
}
.brand:hover { color: var(--ink-strong); }
.brand svg { flex: none; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); }
.nav a {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-mute); position: relative; padding-block: 0.35rem;
  transition: color .18s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0; bottom: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--o-cyan);
  box-shadow: 0 0 7px var(--o-cyan);
}
.nav-toggle { display: none; }

.head-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink-mute); cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--o-azure); background: color-mix(in srgb, var(--o-blue) 10%, transparent); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: none; }
}

@media (max-width: 760px) {
  .site-head .wrap { gap: .75rem; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.8rem; font-size: 0.82rem; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"]::after { left: auto; right: 0; translate: 0 0; bottom: 50%; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--line); color: var(--ink-soft);
    font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    padding: .45rem .7rem; border-radius: 2px; cursor: pointer;
  }
}

/* --- hero ---------------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-inner { max-width: 40rem; }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 span { display: block; }
.hero h1 .given { color: var(--ink-soft); }
.hero-title-rule { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0 1.5rem; }
.hero-title-rule .line { height: 1px; background: linear-gradient(90deg, var(--o-azure), transparent); flex: 1; }

.hero-role {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}

.figure-plate { position: relative; }
.figure-plate img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--o-blue) 30%, transparent);
  box-shadow: var(--plate-shadow);
}
.figure-plate figcaption {
  margin-top: 0.9rem; font-family: var(--mono); font-size: 0.7rem; line-height: 1.6;
  letter-spacing: 0.05em; color: var(--ink-mute);
}
.figure-plate figcaption b { color: var(--ink-soft); font-weight: 500; }

/* the animated interference field behind the hero plate */
.hero { isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; }
canvas.wavefield {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  filter: blur(0.8px);
  opacity: var(--wave-opacity);
  mix-blend-mode: var(--wave-blend);
  mask-image: radial-gradient(72% 92% at 76% 50%, #000 0%, rgba(0,0,0,.5) 46%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 92% at 76% 50%, #000 0%, rgba(0,0,0,.5) 46%, transparent 78%);
  pointer-events: none;
}
/* keep the text column legible whatever the field is doing behind it */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--bg) 10%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, transparent 66%);
}

/* --- buttons ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.72rem 1.15rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.btn:hover { color: var(--ink-strong); border-color: var(--o-azure); background: color-mix(in srgb, var(--o-blue) 10%, transparent); box-shadow: 0 0 30px -8px color-mix(in srgb, var(--o-azure) 55%, transparent); }
.btn--primary { border-color: color-mix(in srgb, var(--o-azure) 50%, transparent); color: var(--ink-strong); background: color-mix(in srgb, var(--o-blue) 13%, transparent); }
.btn svg { flex: none; opacity: .75; }

/* --- cards / axes -------------------------------------------------------- */

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.card:hover { border-color: color-mix(in srgb, var(--o-azure) 45%, transparent); transform: translateY(-2px); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--o-azure) 60%, transparent); }
.card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px;
  background: repeating-radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--o-blue) 16%, transparent) 0 1px, transparent 1px 13px);
  opacity: .5; pointer-events: none;
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .idx { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; color: var(--o-amber); }
.card .more { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--o-azure); margin-top: auto; }

/* --- research axes ------------------------------------------------------- */

.axis { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-soft); scroll-margin-top: 84px; }
.axis-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1.6rem; }
.axis-num {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: .2em; color: var(--o-orange);
  border: 1px solid color-mix(in srgb, var(--o-orange) 35%, transparent); border-radius: 2px; padding: .25rem .55rem; flex: none;
}
.axis-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0,1fr) minmax(0, 340px); align-items: start; }
@media (max-width: 940px) { .axis-layout { grid-template-columns: 1fr; } }

.aside {
  border: 1px solid var(--line-soft); border-radius: 3px; padding: 1.35rem 1.4rem;
  background: var(--bg-panel); position: sticky; top: 92px;
}
@media (max-width: 940px) { .aside { position: static; } }
.aside h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: 1rem; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.facts li { display: grid; gap: .2rem; }
.facts .v { font-family: var(--mono); font-size: 1.28rem; color: var(--o-amber); letter-spacing: -.01em; line-height: 1.2; }
.facts .v small { font-size: .6em; color: var(--ink-mute); letter-spacing: .06em; }
.facts .k { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }

/* --- lists --------------------------------------------------------------- */

.stack { list-style: none; margin: 0; padding: 0; }
.stack > li { padding-block: 1.35rem; border-top: 1px solid var(--line-soft); }
.stack > li:first-child { border-top: 0; }

.pub { display: grid; grid-template-columns: 2.2rem minmax(0,1fr); gap: 0 1rem; }
.pub .n { font-family: var(--mono); font-size: .74rem; color: var(--o-azure); padding-top: .35rem; }
.pub .t { font-size: 1.06rem; color: var(--ink); line-height: 1.4; margin-bottom: .35rem; }
.pub .a { font-size: .92rem; color: var(--ink-mute); line-height: 1.5; }
.pub .a b { color: var(--ink-soft); font-weight: 500; }
.pub .j { font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.pub .j em { font-style: normal; color: var(--o-amber); }

.tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 2px; border: 1px solid var(--line); color: var(--ink-mute);
}
.tag--live { color: var(--o-green); border-color: color-mix(in srgb, var(--o-green) 30%, transparent); }
.tag--soon { color: var(--o-orange); border-color: color-mix(in srgb, var(--o-orange) 30%, transparent); }

/* --- timeline (cv) ------------------------------------------------------- */

.tl { list-style: none; margin: 0; padding: 0; }
.tl > li {
  display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 0 1.8rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line-soft); position: relative;
}
.tl > li:first-child { border-top: 0; }
.tl .when { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--o-cyan); padding-top: .32rem; }
.tl .what h3 { margin-bottom: .3rem; }
.tl .what p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.tl .where { font-size: .92rem; color: var(--ink-mute); margin-top: .25rem; }
@media (max-width: 640px) {
  .tl > li { grid-template-columns: 1fr; gap: .5rem; }
  .tl .when { padding-top: 0; }
}

/* --- teaching ------------------------------------------------------------ */

.filterbar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding-block: 1.2rem; position: sticky; top: 66px; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.search {
  flex: 1 1 220px; min-width: 0;
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line); border-radius: 2px; padding: .55rem .8rem;
  background: var(--field);
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--ink); font-family: var(--mono); font-size: .82rem; letter-spacing: .02em;
}
.search input::placeholder { color: var(--ink-mute); }
.search:focus-within { border-color: var(--o-azure); box-shadow: 0 0 26px -10px color-mix(in srgb, var(--o-azure) 70%, transparent); }

.chip {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .8rem; border-radius: 2px; border: 1px solid var(--line);
  background: none; color: var(--ink-mute); cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-mute); }
.chip[aria-pressed="true"] { color: var(--ink-strong); border-color: color-mix(in srgb, var(--o-azure) 55%, transparent); background: color-mix(in srgb, var(--o-blue) 15%, transparent); }

.course { padding-block: 1.6rem; border-top: 1px solid var(--line-soft); }
.course-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .2rem; }
.course-head .lvl { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--o-orange); }
.course > p { color: var(--ink-mute); font-size: .93rem; margin: .35rem 0 1.1rem; max-width: 62ch; }

.sheets { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sheets a {
  display: flex; gap: .8rem; align-items: baseline;
  padding: .7rem .85rem; border: 1px solid var(--line-soft); border-radius: 2px;
  color: var(--ink-soft); font-size: .93rem; line-height: 1.45; height: 100%;
  transition: border-color .18s, color .18s, background .18s;
}
.sheets a:hover { color: var(--ink-strong); border-color: color-mix(in srgb, var(--o-azure) 50%, transparent); background: color-mix(in srgb, var(--o-blue) 9%, transparent); }
.sheets .num { font-family: var(--mono); font-size: .72rem; color: var(--o-azure); flex: none; padding-top: .15rem; }
.sheets .desc { display: block; color: var(--ink-mute); font-size: .82rem; margin-top: .15rem; }
.sheets a:hover .desc { color: var(--ink-soft); }
.sheets li.exam a { border-style: dashed; }

.empty { padding: 3rem 0; color: var(--ink-mute); font-family: var(--mono); font-size: .85rem; }

/* --- quote --------------------------------------------------------------- */

.quote { max-width: 46ch; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-style: italic; font-weight: 300; color: var(--ink-soft); line-height: 1.45; }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }

/* --- footer -------------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line-soft); padding-block: 3rem 3.5rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-grid a { color: var(--ink-soft); font-size: .95rem; }
.foot-grid a:hover { color: var(--o-cyan); }
.colophon { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-mute); }

/* --- misc ---------------------------------------------------------------- */

.portrait { width: 100%; height: auto; max-width: 280px; border-radius: 3px; border: 1px solid var(--line); display: block; }
.note { border-left: 2px solid color-mix(in srgb, var(--o-orange) 55%, transparent); padding: .2rem 0 .2rem 1.1rem; color: var(--ink-soft); font-size: .97rem; }

::selection { background: color-mix(in srgb, var(--o-azure) 35%, transparent); color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--o-cyan); outline-offset: 3px; border-radius: 2px; }

.quote .orders { justify-content: center; margin-bottom: 1.8rem; }

/* Each interest card opens on its own small figure, bled to the card edges. */
.card .plate {
  color: var(--o-azure);
  margin: -1.6rem -1.5rem 1.3rem;
  padding: .3rem .2rem 0;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, color-mix(in srgb, currentColor 9%, transparent), transparent 82%),
    repeating-radial-gradient(circle at 50% 120%,
      color-mix(in srgb, currentColor 7%, transparent) 0 1px, transparent 1px 22px);
}
.card .plate-fig { display: block; width: 100%; height: auto; }
.card:hover .plate { background:
    linear-gradient(180deg, color-mix(in srgb, currentColor 14%, transparent), transparent 82%),
    repeating-radial-gradient(circle at 50% 120%,
      color-mix(in srgb, currentColor 9%, transparent) 0 1px, transparent 1px 22px); }
.card .plate + h3 { margin-top: 0; }

.tag--award { color: var(--o-amber); border-color: color-mix(in srgb, var(--o-amber) 40%, transparent); }
.tl .what .tag { vertical-align: middle; }
