/* Sushil Chhetri — personal site.
   Shares the Loom palette on purpose: the two sites should read as related, with this one
   quieter (more type, fewer surfaces) since it is a person rather than a product. */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #0b0d12;
  --bg-raised: #11141b;
  --bg-inset: #0e1117;
  --border: #1e2430;
  --border-strong: #2b3444;
  --text: #e7ecf3;
  --text-dim: #a3adbf;
  --text-faint: #6b7688;
  --accent: #f0a742;
  --link: #f0b968;
  --accent-soft: rgba(240, 167, 66, 0.12);
  --grad: linear-gradient(100deg, #f0a742 0%, #e0725f 42%, #a06bff 100%);
  --radius: 12px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-raised: #f7f8fa;
  --bg-inset: #f2f4f7;
  --border: #e3e7ee;
  --border-strong: #ccd3de;
  --text: #10141c;
  --text-dim: #47505f;
  --text-faint: #77808f;
  --accent: #b26a00;
  --link: #a35c00;
  --accent-soft: rgba(178, 106, 0, 0.1);
}

/* Page-wide backdrop ---------------------------------------------------------
   Two layers: a static wash of colour, and a woven grid that drifts on scroll. The grid is
   the loom motif again, at a whisper — legible as texture, never as pattern competing with
   the text. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}
.bg > * { position: absolute; will-change: transform; }

/* FAR — soft colour, barely moves. Establishes the mood and the sense of distance. */
.bg-orbs {
  inset: -22% -10%;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(240, 167, 66, 0.16), transparent 70%),
    radial-gradient(34% 28% at 84% 20%, rgba(160, 107, 255, 0.16), transparent 70%),
    radial-gradient(30% 26% at 62% 88%, rgba(224, 114, 95, 0.11), transparent 70%),
    radial-gradient(26% 22% at 8% 72%, rgba(160, 107, 255, 0.09), transparent 70%);
  filter: blur(6px);
}

/* MID — the weave. The loom motif, at a whisper. */
.bg-weave {
  inset: -18% -8%;
  background-image:
    repeating-linear-gradient(90deg, rgba(176, 190, 216, 0.11) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(176, 190, 216, 0.095) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(176, 190, 216, 0.045) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(176, 190, 216, 0.04) 0 1px, transparent 1px 36px);
  -webkit-mask-image: radial-gradient(88% 78% at 50% 34%, #000 30%, transparent 88%);
  mask-image: radial-gradient(88% 78% at 50% 34%, #000 30%, transparent 88%);
}

/* Wraiths — hooded silhouettes drifting between the weave and the motes.
   Kept at the edge of perception on purpose: a background figure you NOTICE is a distraction,
   one you half-see is atmosphere. Heavy blur, very low opacity, and never over the text
   column — they live in the outer thirds. */
/* Vertical bleed only. A negative HORIZONTAL inset makes `right: 3%` resolve against a box
   wider than the viewport, which pushed the right-hand figure two-thirds off-screen. The drift
   is vertical, so there is nothing for horizontal bleed to hide. */
.bg-wraiths { inset: -24% 0; }
.wr {
  position: absolute;
  width: clamp(120px, 12vw, 200px);
  height: auto;
  /* Slightly LIGHTER than the page: a fill darker than the background is invisible on it.
     Cool and desaturated so it reads as a shade, never as a solid object. */
  color: #9fb0c8;
  fill: currentColor;
  opacity: 0.085;
  filter: blur(2.5px);
  animation: wraith-hover 11s ease-in-out infinite;
}
.wr1 { left: 4%;  top: 12%; opacity: 0.085; animation-duration: 11s; }
.wr2 { right: 6%; top: 34%; opacity: 0.065; animation-duration: 14s; animation-delay: -5s; transform: scaleX(-1); width: clamp(100px, 10vw, 170px); }
.wr3 { left: 12%; top: 62%; opacity: 0.05; animation-duration: 17s; animation-delay: -9s; width: clamp(80px, 8vw, 140px); filter: blur(4px); }

/* A hover, not a drift: the figure rises and settles on a slow cycle, swaying a little as it
   goes. Four stops rather than two so the turn at each end is not symmetrical — a perfect
   there-and-back reads as a machine, an uneven one reads as floating.
   `translate`/`rotate` are used instead of `transform` so this never fights the parallax
   transform applied to the parent layer. */
@keyframes wraith-hover {
  0%, 100% { translate: 0 0;          rotate: -3deg; }
  22%      { translate: -13px -34px;  rotate: 1.4deg; }
  48%      { translate: 9px -62px;    rotate: 3.4deg; }
  72%      { translate: 15px -30px;   rotate: -1deg; }
  88%      { translate: -4px -9px;    rotate: -2.4deg; }
}
@media (prefers-reduced-motion: reduce) { .wr { animation: none; } }

/* In light mode a near-black silhouette is far too loud, so they become a soft grey haze. */
:root[data-theme="light"] .wr { color: #7d8698; opacity: 0.16; filter: blur(3.5px); }
:root[data-theme="light"] .wr3 { opacity: 0.1; }

/* Below the text/graphic split there is no outer third to hide in. */
@media (max-width: 900px) { .bg-wraiths { display: none; } }

/* NEAR — sparse motes, the fastest layer. Two tiled fields at different pitches so the
   spacing never resolves into an obvious repeat. */
.bg-motes {
  inset: -30% -10%;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(240, 167, 66, 0.5) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 68% 8%, rgba(160, 107, 255, 0.45) 0 1.6px, transparent 1.8px),
    radial-gradient(circle at 40% 74%, rgba(224, 114, 95, 0.4) 0 1.3px, transparent 1.5px),
    radial-gradient(circle at 88% 58%, rgba(231, 236, 243, 0.28) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 26% 52%, rgba(231, 236, 243, 0.2) 0 1px, transparent 1.2px);
  background-size: 460px 420px, 520px 470px, 380px 350px, 610px 540px, 300px 280px;
  -webkit-mask-image: radial-gradient(92% 82% at 50% 38%, #000 20%, transparent 92%);
  mask-image: radial-gradient(92% 82% at 50% 38%, #000 20%, transparent 92%);
}

:root[data-theme="light"] .bg-orbs {
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(178, 106, 0, 0.11), transparent 70%),
    radial-gradient(34% 28% at 84% 20%, rgba(111, 63, 214, 0.10), transparent 70%),
    radial-gradient(30% 26% at 62% 88%, rgba(192, 80, 60, 0.07), transparent 70%);
}
:root[data-theme="light"] .bg-weave {
  background-image:
    repeating-linear-gradient(90deg, rgba(40, 55, 80, 0.09) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(40, 55, 80, 0.075) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(40, 55, 80, 0.04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(40, 55, 80, 0.035) 0 1px, transparent 1px 36px);
}
:root[data-theme="light"] .bg-motes {
  background-image:
    radial-gradient(circle at 12% 22%, rgba(178, 106, 0, 0.42) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 68% 8%, rgba(111, 63, 214, 0.38) 0 1.6px, transparent 1.8px),
    radial-gradient(circle at 40% 74%, rgba(192, 80, 60, 0.32) 0 1.3px, transparent 1.5px),
    radial-gradient(circle at 88% 58%, rgba(40, 55, 80, 0.22) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 26% 52%, rgba(40, 55, 80, 0.16) 0 1px, transparent 1.2px);
}

/* The hero drifts and fades as it leaves — the reference's signature move. Transition only
   on opacity: transform is driven per-frame and must not lag behind the scroll. */
.hero .shell { will-change: transform, opacity; }

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

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 76px; }
html[data-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-sans);
  /* No background here on purpose: html already paints it, and an opaque background on body
     paints OVER the z-index:-3 backdrop, which silently hid it entirely. */
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.22; font-weight: 650; letter-spacing: -0.025em; }
code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.36em;
  white-space: nowrap;
}

.shell { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -9999px; background: var(--bg-raised); color: var(--text); padding: 0.75rem 1rem; border: 1px solid var(--accent); border-radius: 8px; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header -------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; gap: 1.5rem; }
.brand {
  font-weight: 800; letter-spacing: 0.02em; font-size: 0.95rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hdr nav { display: flex; gap: 1.3rem; margin-right: auto; font-size: 0.9rem; }
.hdr nav a { color: var(--text-dim); font-weight: 500; }
.hdr nav a:hover { color: var(--text); text-decoration: none; }
/* The one nav item that leaves the site — marked so it doesn't read as another anchor. */
.hdr nav a.out { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); font-weight: 600; }
.hdr nav a.out:hover { color: var(--link); }
/* Visually hidden, still announced. Not display:none — that removes it from the a11y tree. */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 560px) { .hdr nav a:not(.out):not(.keep) { display: none; } }
.hdr nav a[aria-current="page"] { color: var(--text); }
a.brand:hover { text-decoration: none; }
.icon {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text-dim); cursor: pointer;
}
.icon:hover { color: var(--text); border-color: var(--border-strong); }

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 5rem 0 3.5rem; }
.glow {
  position: absolute; inset: -45% 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 48% at 42% 50%, rgba(240, 167, 66, 0.15), transparent 70%),
    radial-gradient(36% 36% at 72% 40%, rgba(160, 107, 255, 0.15), transparent 70%);
}


#architecture {
  position: absolute;
  /* Anchored to the content column, not the viewport — a viewport-relative canvas drifts
     off-screen on a wide display. */
  left: 50%;
  transform: translateX(11%);
  width: min(1000px, 80vw);
  top: -4.5rem;
  height: min(680px, 126%);
  z-index: -1;
  opacity: 0;
  transition: opacity 1.4s ease;
  /* Drag-to-rotate needs the pointer, unlike the purely decorative layers behind it. */
  pointer-events: auto;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%),
    linear-gradient(to bottom, transparent 1%, #000 16%, #000 78%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 30%),
    linear-gradient(to bottom, transparent 1%, #000 16%, #000 78%, transparent 99%);
  mask-composite: intersect;
}
#architecture:active { cursor: grabbing; }

.arch-key {
  position: absolute;
  right: 6%;
  top: 1.5rem;
  display: flex;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  z-index: -1;
}
.arch-key li { display: flex; align-items: center; gap: 0.32rem; }
.arch-key i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent);
}
/* The swatches must track the tier colours in architect.js — including their light-theme set,
   which is why these are classes here rather than a hex inlined on each <li>. */
.k-client { --c: #a06bff; }
.k-gateway { --c: #d566b9; }
.k-service { --c: #e2704f; }
.k-data { --c: #f0a742; }
:root[data-theme="light"] .k-client { --c: #6a37cc; }
:root[data-theme="light"] .k-gateway { --c: #a63a8b; }
:root[data-theme="light"] .k-service { --c: #c04a2f; }
:root[data-theme="light"] .k-data { --c: #b8690a; }
#architecture[data-on] ~ .arch-key { opacity: 0.85; }
@media (max-width: 900px) { .arch-key { display: none; } }
/* Higher than a decorative layer would carry: this one has labels meant to be read. */
#architecture[data-on] { opacity: 0.88; }
:root[data-theme="light"] #architecture[data-on] { opacity: 0.92; }
@media (max-width: 900px) { #architecture { display: none; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); margin: 0 0 0.9rem;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.1rem); margin: 0 0 1.3rem; }
.lede { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--text-dim); margin: 0 0 1.4rem; }
.meta { color: var(--text-faint); font-size: 0.9rem; margin: 0 0 1.8rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #14100a; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--accent); }

/* Blocks -------------------------------------------------------------------- */
/* Top only: a `padding` shorthand here zeroed .shell's side gutter on phones. */
.block { padding-top: 3.5rem; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700;
  color: var(--accent); margin: 0 0 0.5rem;
}
.block h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin: 0 0 1rem; }
.body { color: var(--text-dim); margin: 0 0 1.1rem; }
.body strong { color: var(--text); font-weight: 620; }
.note { color: var(--text-faint); font-size: 0.86rem; margin: 0.9rem 0 0; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem;
  margin: 1.8rem 0;
  padding: 1.4rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
}
.stats div { text-align: center; }
.stats b {
  display: block; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 0.8rem; color: var(--text-faint); }

.points { list-style: none; margin: 1.6rem 0 1.8rem; padding: 0; display: grid; gap: 0.9rem; }
.points li {
  color: var(--text-dim); font-size: 0.95rem;
  padding-left: 1.1rem; border-left: 2px solid var(--border);
}
.points li:hover { border-left-color: var(--accent); }
.points b { color: var(--text); font-weight: 620; }

/* Cards --------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.card {
  display: block; padding: 1.2rem;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.card p { margin: 0 0 0.7rem; color: var(--text-dim); font-size: 0.89rem; }
.tag { font-size: 0.74rem; color: var(--text-faint); font-family: var(--font-mono); }

/* Contact ------------------------------------------------------------------- */
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0.8rem; margin-top: 1.7rem; }
.reach-card {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.reach-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.reach-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.reach-card:hover .reach-icon { color: var(--accent); }
.reach-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.reach-body b { font-size: 0.95rem; font-weight: 620; }
.reach-body em { font-style: normal; font-size: 0.84rem; color: var(--text-faint); }
/* A card that shows an arrow should behave like one on hover. */
.reach-go { margin-left: auto; color: var(--text-faint); transition: transform 0.18s ease, color 0.18s ease; }
.reach-card:hover .reach-go { color: var(--accent); transform: translateX(3px); }
.contact .note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-faint); }

/* Blog ---------------------------------------------------------------------- */
.blog-title { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 0 0 0.9rem; }
.post-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.post-item {
  display: block; padding: 1.2rem 1.25rem;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: border-color 0.18s ease, transform 0.18s ease;
}
.post-item:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.post-item time, .post-head time { font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }
.post-item h3 { margin: 0.25rem 0 0.4rem; font-size: 1.1rem; }
.post-item p { margin: 0 0 0.7rem; color: var(--text-dim); font-size: 0.92rem; }
.post-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-tags li {
  font-size: 0.72rem; font-family: var(--font-mono); color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 0.1rem 0.6rem;
}

.post-head { margin-bottom: 2rem; }
.post-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 0.35rem 0 0.8rem; }

.prose { color: var(--text-dim); font-size: 1.02rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre, .prose figure { margin: 0 0 1.2rem; }
.prose h2 { color: var(--text); font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.4rem 0 0.8rem; }
.prose h3 { color: var(--text); font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.prose strong { color: var(--text); font-weight: 620; }
.prose li { margin: 0.3rem 0; }
.prose blockquote { border-left: 2px solid var(--accent); padding: 0.1rem 0 0.1rem 1rem; color: var(--text-faint); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.prose img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 10px;
}
/* `![alt](src)` followed by an `*italic line*` is a figure with a caption. */
.prose p:has(> img) { margin: 1.8rem 0; }
.prose p:has(> img) > em {
  display: block; margin-top: 0.6rem; text-align: center;
  font-size: 0.86rem; color: var(--text-faint);
}
.prose code { white-space: normal; }
.prose pre {
  background: var(--bg-inset); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1.1rem; overflow-x: auto; font-size: 0.88rem; line-height: 1.55;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; color: var(--text); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.45rem 0.7rem; text-align: left; }
.prose th { color: var(--text); background: var(--bg-raised); }

/* Mermaid diagrams: a raised panel, centred, scrollable rather than squashed on a phone. */
.diagram {
  margin: 1.6rem 0; padding: 1.2rem; overflow-x: auto; text-align: center;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 3rem;
}
.diagram svg { max-width: 100%; height: auto; }
/* On a phone a wide diagram scaled to fit is unreadable; keep a legible size and scroll it. */
@media (max-width: 600px) { .diagram svg { min-width: 520px; } }
.diagram.is-error { text-align: left; border-color: #c0504a; }
.diagram.is-error pre { margin: 0; white-space: pre-wrap; font-size: 0.85rem; }

.post-back { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.92rem; }

/* Links --------------------------------------------------------------------- */
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text); font-size: 0.9rem; font-weight: 550;
}
.links a:hover { border-color: var(--accent); text-decoration: none; }

.ft { border-top: 1px solid var(--border); margin-top: 4.5rem; padding: 1.8rem 0; }
.ft p { margin: 0; color: var(--text-faint); font-size: 0.85rem; }

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