:root {
  --bg-top: #05070a;
  --bg-bottom: #0a111e;
  --grid: #121a26;
  --accent: #2ee6a8;
  --text: #e8fff6;
  --dim: #78beaa;
  --faint: #466966;
  --tick: #285a50;
  --mono: "Consolas", ui-monospace, "SFMono-Regular", Menlo, Monaco,
    "DejaVu Sans Mono", "Liberation Mono", monospace;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--mono);
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(14, 96, 76, 0.32), transparent 62%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine tech grid, fading towards the edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
}

main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 96px);
}

.mark {
  text-align: center;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7.8vw, 9.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-shadow: 0 0 80px rgba(46, 230, 168, 0.18);
}

.rule {
  position: relative;
  display: block;
  width: min(520px, 62vw);
  height: 1px;
  margin: clamp(14px, 2.2vw, 30px) auto 0;
  background: linear-gradient(90deg, transparent, #2d5a51 15%, #2d5a51 85%, transparent);
}

.rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(46, 230, 168, 0.85);
}

/* SSH connection statistics under the rule. */
.ssh {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  margin: clamp(22px, 4.5vh, 44px) 0 0;
}

.ssh > div {
  text-align: center;
}

.ssh dt {
  font-size: clamp(0.52rem, 0.72vw, 0.68rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.ssh dd {
  margin: 0.4em 0 0;
  font-size: clamp(1.1rem, 2.3vw, 2.1rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(46, 230, 168, 0.15);
}

.tag {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 clamp(16px, 4vw, 48px) clamp(18px, 7vh, 80px);
  text-align: center;
  font-size: clamp(0.6rem, 0.85vw, 0.95rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--faint);
  text-transform: uppercase;
}

/* Small visit counter, bottom-right. */
.stats {
  position: fixed;
  right: clamp(64px, 5.6vw, 96px);
  bottom: clamp(26px, 5.4vh, 54px);
  z-index: 2;
  font-size: clamp(0.58rem, 0.78vw, 0.72rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-align: right;
}

.stats__title {
  margin: 0 0 0.4em;
  font-size: 0.85em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3d5a53;
}

.stats__list {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.1em 0.85em;
  margin: 0;
}

.stats__list dt {
  text-align: left;
}

.stats__list dd {
  margin: 0;
  text-align: right;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* Corner ticks, pinned to the viewport. */
.tick {
  position: fixed;
  width: clamp(14px, 1.6vw, 26px);
  height: clamp(14px, 1.6vw, 26px);
  border: 0 solid var(--tick);
  pointer-events: none;
  z-index: 2;
}

.tick.tl {
  top: clamp(16px, 4.3vh, 46px);
  left: clamp(16px, 4.3vh, 46px);
  border-top-width: 2px;
  border-left-width: 2px;
}

.tick.tr {
  top: clamp(16px, 4.3vh, 46px);
  right: clamp(16px, 4.3vh, 46px);
  border-top-width: 2px;
  border-right-width: 2px;
}

.tick.bl {
  bottom: clamp(16px, 4.3vh, 46px);
  left: clamp(16px, 4.3vh, 46px);
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.tick.br {
  bottom: clamp(16px, 4.3vh, 46px);
  right: clamp(16px, 4.3vh, 46px);
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* ---- Top navigation ---- */
.nav {
  position: fixed;
  top: clamp(14px, 2.8vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: clamp(0.6rem, 0.8vw, 0.74rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  color: var(--faint);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  border-color: rgba(46, 230, 168, 0.35);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--dim);
  border-color: rgba(46, 230, 168, 0.2);
}

/* ---- Document pages ---- */
body.page {
  overflow-y: auto;
}

main.doc {
  display: block;
  width: 100%;
  max-width: 84ch;
  margin: 0 auto;
  padding: clamp(84px, 12vh, 140px) clamp(20px, 6vw, 48px) clamp(72px, 10vh, 120px);
}

/* Wide variant for the statistics table: let every column fit on screen. */
main.doc--wide {
  max-width: min(1720px, 96vw);
  padding-left: clamp(16px, 2.6vw, 40px);
  padding-right: clamp(16px, 2.6vw, 40px);
}

/* Long prose stays readable even when the table is wide. */
main.doc--wide > h1,
main.doc--wide > p {
  max-width: 96ch;
}

/* Justified prose: even both edges, no automatic hyphenation. */
main.doc--justify p {
  text-align: justify;
}

/* Keep hyphenated terms such as «SSH-подключений» on one line. */
.nw {
  white-space: nowrap;
}

.doc h1 {
  margin: 0 0 0.55em;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: normal;
  text-shadow: none;
}

.doc .lead {
  margin: 0 0 1.8em;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--dim);
}

.doc h2 {
  margin: 2.4em 0 0.9em;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.doc p,
.doc li {
  margin: 0 0 1em;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.8;
  color: #a9c0b8;
}

.doc ul {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

.doc li::marker {
  color: var(--faint);
}

.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 168, 0.3);
}

.doc a:hover {
  border-color: var(--accent);
}

.doc code {
  font-size: 0.95em;
  color: var(--dim);
}

.doc .note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  word-break: break-word;
}

/* ---- KPI row ---- */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1.8em 0 2.4em;
  background: #16211f;
  border: 1px solid #16211f;
}

.kpi > div {
  padding: 1em 1.1em;
  background: #070c0b;
}

.kpi--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi dt {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.kpi dd {
  margin: 0.4em 0 0;
  font-size: 1.35rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---- CSS-only tabs (no JavaScript) ---- */
.tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}

.tabs__nav {
  display: flex;
  gap: 0.2em;
  margin: 1.6em 0 0;
  border-bottom: 1px solid #1b2a27;
}

.tabs__nav label {
  margin-bottom: -1px;
  padding: 0.75em 1.1em;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.tabs__nav label:hover {
  color: var(--dim);
}

#tab-visits:checked ~ .tabs__nav label[for="tab-visits"],
#tab-downloads:checked ~ .tabs__nav label[for="tab-downloads"] {
  color: var(--accent);
  border-color: var(--accent);
}

.tabs__panel {
  display: none;
}

#tab-visits:checked ~ .tabs__panel--visits,
#tab-downloads:checked ~ .tabs__panel--downloads {
  display: block;
}

/* ---- Table ---- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.64rem, 0.8vw, 0.78rem);
}

.table th,
.table td {
  white-space: nowrap;
}

.table th {
  padding: 0.7em 0.9em;
  text-align: left;
  font-weight: 400;
  font-size: 0.9em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid #1b2a27;
}

.table td {
  padding: 0.55em 0.9em;
  color: #9db4ad;
  vertical-align: top;
  border-bottom: 1px solid #101917;
}

.table tbody tr:hover td {
  background: rgba(46, 230, 168, 0.035);
}

.table .ip {
  color: var(--text);
}

/* Long values wrap instead of being cut with an ellipsis. */
.table .ua,
.table .src {
  white-space: normal;
  overflow-wrap: anywhere;
}

.table .ua {
  max-width: 54ch;
}

.table .src {
  max-width: 40ch;
}

.table .dim {
  color: var(--faint);
}

.table .file {
  color: var(--dim);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table th a {
  color: inherit;
  text-decoration: none;
}

.table th a:hover {
  color: var(--accent);
}

/* ---- Filters, buttons and pager (admin statistics) ---- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9em 1.1em;
  margin: 1.6em 0 1.2em;
  padding: 1.2em;
  border: 1px solid #16211f;
  background: #060b0a;
}

.filters label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.filters input,
.filters select {
  display: block;
  width: 100%;
  margin-top: 0.45em;
  padding: 0.5em 0.6em;
  background: #070c0b;
  border: 1px solid #1b2a27;
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--accent);
}

.filters__actions {
  display: flex;
  align-items: end;
  gap: 0.6em;
}

.btn {
  display: inline-block;
  padding: 0.65em 1.1em;
  border: 1px solid rgba(46, 230, 168, 0.45);
  border-radius: 2px;
  background: rgba(46, 230, 168, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: rgba(46, 230, 168, 0.16);
}

.btn--ghost {
  border-color: #1b2a27;
  background: transparent;
  color: var(--faint);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 1em 0 0;
}

.pager a {
  padding: 0.35em 0.75em;
  border: 1px solid #1b2a27;
  border-radius: 2px;
  color: var(--dim);
  font-size: 0.74rem;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager a.cur {
  border-color: var(--accent);
  color: var(--text);
}

/* ---- Admin panels ---- */
.panel {
  margin: 2.2em 0 0;
}

.panel .kpi {
  margin: 1em 0 1.1em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 2.2em;
  margin: 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.45em 0;
  border-bottom: 1px solid #101917;
}

.facts dt {
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  font-size: 0.76rem;
  color: var(--dim);
  text-align: right;
}

.badge {
  padding: 0.15em 0.6em;
  border: 1px solid;
  border-radius: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.badge--ok {
  color: #2ee6a8;
  border-color: rgba(46, 230, 168, 0.45);
}

.badge--warn {
  color: #ffb86b;
  border-color: rgba(255, 184, 107, 0.45);
}

.badge--crit {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.45);
}

.btn--danger {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.08);
  color: #ff6b6b;
}

.btn--danger:hover {
  background: rgba(255, 107, 107, 0.18);
}

.panel--danger {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(255, 107, 107, 0.25);
}

.banner {
  margin: 1.2em 0 0;
  padding: 0.8em 1em;
  border: 1px solid rgba(46, 230, 168, 0.35);
  background: rgba(46, 230, 168, 0.07);
  color: var(--dim);
  font-size: 0.8rem;
}

.danger-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 1.4em;
}

/* ---- File list ---- */
.files {
  list-style: none;
  margin: 1.6em 0 1.2em;
  padding: 0;
}

.files li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.2em 1.4em;
  padding: 1em 0;
  border-bottom: 1px solid #101917;
}

.files .name {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
}

.files .meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}

.files .desc {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8aa39b;
}

/* Link to a file that is not uploaded yet. */
.files a.pending {
  color: var(--dim);
  border-bottom-style: dashed;
  border-bottom-color: rgba(120, 190, 170, 0.22);
}

.soon {
  display: inline-block;
  padding: 0.12em 0.55em;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.07);
  vertical-align: 0.1em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none;
  }
}

/* Narrow or short viewports: let the page breathe and scroll if needed. */
@media (max-width: 980px) {
  .ssh {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
  }
}

@media (max-width: 560px), (max-height: 560px) {
  body {
    overflow-y: auto;
    overflow-x: clip;
  }

  main {
    padding: clamp(20px, 8vw, 40px);
  }

  h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 10.2vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .ssh {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .ssh dd {
    font-size: 1.15rem;
  }

  /* The centred tag would collide with the counter: drop the decoration. */
  .tag {
    display: none;
  }

  .stats {
    right: 38px;
    bottom: 14px;
    font-size: 0.58rem;
  }

  .nav {
    gap: 12px;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  main.doc {
    padding-top: 72px;
  }

  .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .files li {
    grid-template-columns: 1fr;
  }

  .files .meta {
    text-align: left;
  }
}
/* ---- Public HASSH / banner statistics ---- */
.fp-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0.7rem 0 0.2rem;
}

.fp-svg .fp-lbl {
    fill: var(--dim);
    font: 11px var(--mono);
}

.fp-svg .fp-val {
    fill: var(--text);
    font: 11px var(--mono);
}

.fp-svg .fp-bar {
    fill: var(--accent);
    opacity: 0.72;
}

.fp-heat {
    border-collapse: collapse;
    width: 100%;
    margin: 0.7rem 0 0.2rem;
    font: 10px var(--mono);
}

.fp-heat th,
.fp-heat td {
    border: 1px solid var(--grid);
    padding: 2px 1px;
    text-align: center;
    color: var(--dim);
}

.fp-heat thead th {
    color: var(--faint);
}

.fp-heat tbody th {
    color: var(--faint);
    white-space: nowrap;
    padding: 2px 6px;
}

.fp-heat .heat-0 { background: #0a1018; }
.fp-heat .heat-1 { background: #0e2a22; }
.fp-heat .heat-2 { background: #124336; }
.fp-heat .heat-3 { background: #17604a; }
.fp-heat .heat-4 { background: #1d8a66; }
.fp-heat .heat-5 { background: #2ee6a8; color: #05070a; }

.fp-table code {
    font-size: 0.72rem;
    color: var(--dim);
}

.fp-table .fp-alg {
    max-width: 34ch;
    overflow-wrap: anywhere;
    color: var(--faint);
}
/* ---- HASSH: growth badges, cards, full algorithm strings ---- */
.fp-up {
    fill: #ff6b6b;
    color: #ff6b6b;
    font-weight: 600;
}

.fp-up--zero {
    fill: var(--faint);
    color: var(--faint);
    font-weight: 400;
}

.fp-card {
    border: 1px solid var(--grid);
    padding: 0.7rem 0.9rem;
    margin: 0.6rem 0;
}

.fp-card-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.fp-card-head code {
    color: var(--accent);
    font-size: 0.85rem;
}

.fp-total {
    color: var(--text);
}

.fp-card-meta {
    color: var(--faint);
    font-size: 0.72rem;
    margin: 0.3rem 0 0.45rem;
}

.fp-alg-full {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--grid);
}
/* ---- HASSH algorithm group colours + legend ---- */
.alg--kex    { color: #2ee6a8; }
.alg--cipher { color: #7ad1ff; }
.alg--mac    { color: #ffd166; }
.alg--comp   { color: #c792ea; }

.alg-sep {
    color: var(--faint);
}

.fp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    list-style: none;
    margin: 0.2rem 0 0.8rem;
    padding: 0;
    font-size: 0.76rem;
    color: var(--dim);
}

.fp-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fp-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 2px;
    display: inline-block;
}

.fp-swatch.alg--kex    { background: #2ee6a8; }
.fp-swatch.alg--cipher { background: #7ad1ff; }
.fp-swatch.alg--mac    { background: #ffd166; }
.fp-swatch.alg--comp   { background: #c792ea; }
/* ---- show-all / top-10 toggle ---- */
.fp-actions {
    margin: 0.6rem 0 0;
}

.fp-actions .btn {
    display: inline-block;
}
/* ---- prominent blinking mode button next to the title ---- */
.fp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    margin-bottom: clamp(0.9rem, 2vh, 1.6rem);
}

.fp-head h1 {
    margin: 0;
}

.fp-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    font: 700 0.8rem/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #05070a;
    border: 1px solid var(--accent);
    background: var(--accent);
    box-shadow: 0 0 18px rgba(46, 230, 168, 0.35);
    animation: fp-blink 1.6s ease-in-out infinite;
}

.fp-toggle--top {
    color: #05070a;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(46, 230, 168, 0.35);
}

.fp-toggle--all {
    color: #05070a;
    background: #7ad1ff;
    border-color: #7ad1ff;
    box-shadow: 0 0 18px rgba(122, 209, 255, 0.35);
}

.fp-toggle:hover,
.fp-toggle:focus-visible {
    animation-play-state: paused;
    opacity: 1;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

@keyframes fp-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-toggle { animation: none; }
}
/* ---- make sure the mode button text is readable on its filled background ---- */
.doc a.fp-toggle,
.doc a.fp-toggle:visited,
.doc a.fp-toggle:hover,
.doc a.fp-toggle:focus-visible {
    color: #05070a;
    text-decoration: none;
}

/* ---- bottom contact ---- */
.footer-contact {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: var(--faint);
    font: 0.78rem var(--mono);
    letter-spacing: 0.08em;
}
.footer-contact p { margin: 0; }

/* ---- language switch ---- */
.nav .lang {
    color: var(--accent);
    border-left: 1px solid var(--grid);
    padding-left: 0.9rem;
    margin-left: 0.2rem;
}
