/* =============================================================================
   WD Colours — shared stylesheet
   Warm paper, ink, thin rules. Nothing here needs a network.
   ========================================================================== */

:root {
  --paper: #f4f1e9;
  --paper-2: #fbf9f4;
  --paper-3: #eae5d9;
  --ink: #191713;
  --ink-2: #4b463c;
  --ink-3: #7d7666;
  --rule: rgba(25, 23, 19, 0.16);
  --rule-soft: rgba(25, 23, 19, 0.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --measure: 68ch;
  --page: 1140px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* paper grain ------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 28px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* top bar ----------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule-soft);
}

.topbar-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand em {
  font-style: italic;
  color: var(--ink-3);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar nav a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.topbar nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.fmt {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fmt button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 3px 7px;
  cursor: pointer;
  line-height: 1.2;
}

.fmt button:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.fmt button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* headings ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 40px 0 14px;
}

.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ink-2);
  margin: 0 0 28px;
}

p {
  max-width: var(--measure);
}

a {
  color: inherit;
}

.sub {
  color: var(--ink-3);
  font-size: 14px;
}

/* sections ---------------------------------------------------------- */

.section {
  padding: 68px 0 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.section-head .aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
  text-align: right;
  margin: 0;
  max-width: 44ch;
}

.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 40px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero .disc {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
  background:
    radial-gradient(120% 118% at 36% 26%, var(--disc-hi) 0%, transparent 54%),
    radial-gradient(100% 100% at 58% 66%, var(--disc) 42%, var(--disc-lo) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 26px 60px -30px rgba(25, 23, 19, 0.6);
  filter: url(#wd-edge);
}

.hero-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 22px;
  margin: 0;
  font-size: 14px;
}

.hero-meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

.hero-meta dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* copyable values ---------------------------------------------------- */

.val {
  font-family: var(--mono);
  font-size: 12px;
  background: none;
  border: 0;
  padding: 1px 4px;
  margin: 0;
  cursor: copy;
  color: var(--ink);
  border-radius: 2px;
  letter-spacing: 0.01em;
  text-align: left;
}

.val:hover {
  background: var(--paper-3);
}

.val:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.val::after {
  content: "";
}

.val .v-name {
  color: var(--ink-3);
}

/* wash card ---------------------------------------------------------- */

.wash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
}

@media (max-width: 900px) {
  .wash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .wash-grid {
    grid-template-columns: 1fr;
  }
}

.wash {
  margin: 0;
  text-align: center;
}

.wash-disc {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 47% 53% 51% 49% / 50% 49% 51% 50%;
  background:
    radial-gradient(130% 125% at 32% 24%, var(--wash-hi) 0%, transparent 50%),
    radial-gradient(110% 110% at 64% 72%, var(--wash-lo) 0%, transparent 58%),
    var(--wash);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 18px 3px var(--wash-edge);
  filter: url(#wd-edge);
  cursor: copy;
}

/* pigment granulation — the texture a watercolour wash leaves behind */
.wash-disc::before,
.hero .disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.wash-disc:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 22px 5px var(--wash-edge);
}

.wash figcaption {
  margin-top: 14px;
}

.wash-name {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--ink);
}

.wash-hex {
  display: block;
  margin-top: 3px;
}

/* ramps -------------------------------------------------------------- */

.ramp {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.ramp-step {
  flex: 1 1 8.5%;
  min-width: 92px;
  border: 0;
  border-right: 1px solid var(--rule-soft);
  background: var(--paper-2);
  padding: 0 0 10px;
  cursor: copy;
  text-align: left;
  color: var(--ink);
}

.ramp-step:last-child {
  border-right: 0;
}

.ramp-chip {
  display: block;
  height: 74px;
  background: var(--c);
  border-bottom: 1px solid var(--rule-soft);
}

.ramp-step .r-label {
  display: block;
  padding: 9px 10px 0;
  font-family: var(--mono);
  font-size: 12px;
}

.ramp-step .r-name {
  display: block;
  padding: 2px 10px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.25;
}

.ramp-step:hover .r-label {
  text-decoration: underline;
}

.ramp-step.anchor {
  box-shadow: inset 0 0 0 2px var(--ink);
  position: relative;
}

.ramp-step.anchor::after {
  content: "anchor";
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anchor-ink, #fff);
  mix-blend-mode: difference;
}

.ramp.small .ramp-step {
  min-width: 110px;
  flex-basis: 12.5%;
}

.ramp.small .ramp-chip {
  height: 54px;
}

/* harmony ------------------------------------------------------------ */

.harmony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 26px;
}

.harmony-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 16px 16px 12px;
}

.harmony-card h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 600;
}

.harmony-card p {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 12px 0 0;
  max-width: none;
}

.harmony-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: copy;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--ink);
}

.harmony-swatch:hover .hs-hex {
  text-decoration: underline;
}

.hs-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(25, 23, 19, 0.12);
  flex: none;
}

.hs-meta {
  font-size: 11.5px;
  line-height: 1.35;
}

.hs-hex {
  font-family: var(--mono);
  font-size: 12px;
}

.hs-hue {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}

thead th {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.mono,
th.mono {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.pair {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pair .sw {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(25, 23, 19, 0.15);
  flex: none;
}

.pass,
.fail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pass {
  color: #2f6b3c;
}

.fail {
  color: #a33a2c;
}

.na {
  color: var(--ink-3);
}

/* notes -------------------------------------------------------------- */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
  align-items: start;
}

.notes h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 600;
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
}

.notes li {
  margin-bottom: 9px;
}

.notes li::marker {
  color: var(--ink-3);
}

.physics {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 72ch;
}

.physics .lead {
  font-style: italic;
  color: var(--ink);
}

/* spectrum ----------------------------------------------------------- */

.spectrum {
  position: relative;
  height: 34px;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(
    to right,
    oklch(58% 0.24 295),
    oklch(54% 0.24 258),
    oklch(72% 0.16 232),
    oklch(80% 0.19 148),
    oklch(90% 0.19 100),
    oklch(76% 0.2 58),
    oklch(60% 0.23 28)
  );
}

.spectrum .band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(10, 8, 6, 0.55);
}

.spectrum .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(10, 8, 6, 0.8);
}

.spectrum .tick span {
  position: absolute;
  top: 2px;
  left: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.spectrum-legend {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* theme preview ------------------------------------------------------ */

.theme-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.theme-switch button {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.tp {
  background: var(--t-bg);
  color: var(--t-text);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14px;
}

.tp[hidden] {
  display: none;
}

.tp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--t-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tp-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--t-accent);
}

.tp-brand {
  font-family: var(--serif);
  font-size: 16px;
}

.tp-nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 12.5px;
}

.tp-nav a {
  color: var(--t-text-muted);
  text-decoration: none;
}

.tp-nav a:focus-visible {
  outline: 2px solid var(--t-focus);
  outline-offset: 2px;
}

.tp h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 8px;
  line-height: 1.15;
}

.tp p {
  margin: 0 0 16px;
  color: var(--t-text);
  max-width: 56ch;
}

.tp p.tp-muted {
  color: var(--t-text-muted);
}

.tp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tp-btn {
  font: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.tp-btn.primary {
  background: var(--t-accent);
  color: var(--t-on-accent);
}

.tp-btn.ghost {
  background: transparent;
  color: var(--t-text);
  border-color: var(--t-border);
}

.tp-btn:focus-visible {
  outline: 2px solid var(--t-focus);
  outline-offset: 2px;
}

.tp-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--t-surface-alt);
  color: var(--t-text);
  border: 1px solid var(--t-border);
}

.tp-field {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  color: var(--t-text);
  font: inherit;
  font-size: 13px;
  padding: 8px 11px;
  min-width: 190px;
}

.tp-field:focus-visible {
  outline: 2px solid var(--t-focus);
  outline-offset: 1px;
}

.tp-card {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 16px;
}

.tp-card h5 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-text-muted);
  margin: 0 0 8px;
}

/* plate -------------------------------------------------------------- */

.plate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .plate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .panel .p-spectrum .tick span {
    display: none;
  }
}

.panel {
  position: relative;
  min-width: 0;
  background: #000;
  padding: 10px 12px 14px;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}

.panel .p-name {
  display: block;
  position: absolute;
  top: 10px;
  left: 12px;
  right: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--p-accent, #fff);
}

.panel .p-temp {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--p-accent, #fff);
}

.panel .p-disc {
  display: block;
  width: 82%;
  aspect-ratio: 1;
  margin: 16px auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(118% 118% at 38% 30%, var(--disc-hi) 0%, transparent 52%),
    radial-gradient(100% 100% at 55% 62%, var(--disc) 45%, var(--disc-lo) 100%);
  filter: url(#wd-edge);
}

.panel .p-spectrum {
  display: block;
  position: relative;
  height: 26px;
  background: linear-gradient(
    to right,
    oklch(58% 0.24 295),
    oklch(54% 0.24 258),
    oklch(72% 0.16 232),
    oklch(80% 0.19 148),
    oklch(90% 0.19 100),
    oklch(76% 0.2 58),
    oklch(60% 0.23 28)
  );
  opacity: 0.92;
}

.panel .p-spectrum .band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
}

.panel .p-spectrum .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.panel .p-spectrum .tick span {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 8.5px;
  font-family: var(--mono);
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

/* family grid on the index ------------------------------------------ */

.fam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 30px 26px;
}

.fam-card {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.fam-card .fc-disc {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(118% 118% at 38% 30%, var(--disc-hi) 0%, transparent 52%),
    radial-gradient(100% 100% at 55% 62%, var(--disc) 45%, var(--disc-lo) 100%);
  filter: url(#wd-edge);
  margin-bottom: 14px;
}

.fam-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 4px;
}

.fam-card .fc-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.fam-card .fc-swatches {
  display: flex;
  gap: 3px;
  margin: 12px 0 10px;
}

.fam-card .fc-swatches i {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(25, 23, 19, 0.12);
}

.fam-card .fc-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.fam-card .fc-link:hover {
  border-bottom-color: var(--ink);
}

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

footer.foot {
  margin-top: 90px;
  border-top: 1px solid var(--rule);
  padding: 26px 0 60px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: baseline;
}

footer.foot .credit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
}

footer.foot a {
  color: var(--ink-2);
}

/* toast -------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 16px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 40;
  max-width: 80vw;
}

.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* utility ------------------------------------------------------------ */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stack-sm > * + * {
  margin-top: 10px;
}

.muted {
  color: var(--ink-3);
}

.nowrap {
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
