/* MotionPrompt: shared styles.
   Look: a dark film studio. Deep ink background, soft aurora light, glass panels,
   a clean sans for reading and a serif italic for the one word that should sing. */

:root {
  /* Surfaces */
  --bg: #07070c;
  --bg-raised: #0d0d15;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --fg: #f4f3fa;
  --muted: #a3a2b8;
  --faint: #6f6e85;

  /* Brand light: violet into pink into amber */
  --violet: #8b6cff;
  --pink: #ff5fc8;
  --amber: #ffb35c;
  --accent: #a48bff;
  --gradient: linear-gradient(100deg, var(--violet) 0%, var(--pink) 55%, var(--amber) 100%);

  /* Primary button inverts the page */
  --btn-bg: #f4f3fa;
  --btn-fg: #07070c;

  /* Header and footer stay plain; the main area carries the colour */
  --chrome: #0a0a10;
  --stage: #110c26;

  /* Text and controls that sit on the coloured stage: solid enough to read on any glow */
  --on-stage: #dcd8ee;
  --field: rgba(10, 8, 24, 0.6);
  --field-line: rgba(255, 255, 255, 0.2);
  --field-text: #ecebf7;
  --field-hint: #a9a6c2;
  --headline-shine: var(--gradient);

  /* Aurora glow strength (inside the main area) */
  --glow-a: rgba(124, 92, 255, 0.5);
  --glow-b: rgba(255, 79, 200, 0.32);
  --glow-c: rgba(255, 170, 80, 0.2);
  --grid-line: rgba(255, 255, 255, 0.035);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fb;
    --bg-raised: #ffffff;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: #ffffff;
    --line: rgba(20, 16, 50, 0.09);
    --line-strong: rgba(20, 16, 50, 0.18);
    --fg: #121120;
    --muted: #55536b;
    --faint: #85839a;
    --violet: #5b3cf0;
    --pink: #c21f7e;
    --amber: #c85a0c;
    --accent: #5b3cf0;
    --btn-bg: #121120;
    --btn-fg: #ffffff;
    --chrome: #ffffff;
    --stage: #e6ddff;
    --on-stage: #2b2840;
    --field: rgba(255, 255, 255, 0.94);
    --field-line: rgba(40, 20, 90, 0.2);
    --field-text: #2b2840;
    --field-hint: #6a6780;
    --headline-shine: linear-gradient(100deg, #4a22e0 0%, #9c1470 100%);
    --glow-a: rgba(124, 92, 255, 0.6);
    --glow-b: rgba(255, 79, 200, 0.45);
    --glow-c: rgba(255, 170, 80, 0.5);
    --grid-line: rgba(20, 16, 50, 0.045);
    --shadow: 0 30px 70px -35px rgba(40, 30, 90, 0.35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-anchor: none; /* the view slide sets the scroll position itself */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--chrome);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Main area: the coloured stage between the plain header and footer */
.stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  overflow: clip; /* clip, not hidden, so the toolbar can still stick while scrolling */
  background: var(--stage);
  isolation: isolate;
}

/* Backdrop: aurora light, a faint grid and film grain, behind the main content */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb.a { width: 560px; height: 560px; top: -220px; left: -200px; background: var(--glow-a); }
.orb.b { width: 480px; height: 480px; top: -140px; right: -180px; background: var(--glow-b); }
.orb.c { width: 520px; height: 520px; bottom: -260px; left: 30%; background: var(--glow-c); }

@media (prefers-reduced-motion: no-preference) {
  .orb.a { animation: drift-a 22s ease-in-out infinite alternate; }
  .orb.b { animation: drift-b 26s ease-in-out infinite alternate; }
  .orb.c { animation: drift-c 30s ease-in-out infinite alternate; }
}

@keyframes drift-a { to { transform: translate(140px, 90px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-120px, 120px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-160px, -40px) scale(1.12); } }

/* Type */
h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg);
}

p { color: var(--muted); margin: 0; }

a { color: var(--accent); }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.shine {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--chrome) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { width: 26px; height: 26px; flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a,
.site-nav .soon {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--panel-strong); }

.site-nav .soon { color: var(--faint); cursor: default; }

.site-nav .ask {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg);
  font-weight: 500;
}

.site-nav .ask svg { width: 17px; height: 17px; flex: none; color: #1877f2; }

/* Intro: one heading, one line */
.intro { padding: 20px 0 14px; }

.intro h1 { font-size: clamp(1.55rem, 5.2vw, 2.4rem); margin-bottom: 6px; }

.intro p { color: var(--on-stage); font-size: 0.95rem; }

.intro .shine { background-image: var(--headline-shine); }

/* Search and tag filters. Sticks under the header while scrolling. */
.toolbar {
  position: sticky;
  top: 56px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 -16px;
  padding: 10px 16px;
  border-bottom: 1px solid transparent;
}

/* Only once it is stuck under the header does it get a backing, so it never shows a band at rest */
.toolbar.stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--stage) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 720px) {
  .toolbar { flex-direction: row; align-items: center; margin: 0 -24px; padding: 12px 24px; }
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

@media (min-width: 720px) {
  .search { width: 280px; }
}

.search svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--field-hint);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--field);
  color: var(--field-text);
  box-shadow: 0 4px 14px -8px rgba(40, 20, 90, 0.35);
  font: inherit;
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
}

.search input::placeholder { color: var(--field-hint); }

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 25%, transparent);
}

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}

.filters::-webkit-scrollbar { display: none; }

@media (min-width: 720px) {
  .filters { margin: 0; padding: 0; flex-wrap: wrap; }
}

.filter {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--field);
  color: var(--field-text);
  font: 500 0.82rem var(--font);
  text-transform: capitalize;
  cursor: pointer;
}

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

.filter[aria-pressed="true"] {
  border-color: transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.count {
  margin: 4px 0 10px;
  color: var(--on-stage);
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Directory grid: two columns on a phone, more as the screen grows */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 32px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
}

.empty {
  grid-column: 1 / -1;
  padding: 32px 0;
  color: var(--faint);
  text-align: center;
  font-size: 0.92rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

/* Gradient hairline that lights up on hover or focus */
.tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.tile:hover::before,
.tile:focus-visible::before { opacity: 1; }

.tile:focus-visible { outline: none; }

.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) - 5px);
  background: #0b0b10;
}

.thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.thumb iframe { pointer-events: none; }

/* The still shows at once; the clip fades in over it once it is playing. */
.thumb img,
.thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb video {
  opacity: 0;
  transition: opacity 0.3s;
}

.thumb video.ready { opacity: 1; }

.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 7px 6px;
  min-width: 0;
}

.tile-name {
  overflow: hidden;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-lib {
  color: var(--faint);
  font: 500 0.72rem var(--font-mono);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 30%, transparent), 0 10px 40px -8px var(--violet); }

.button.secondary {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--fg);
}

.button.secondary:hover { background: var(--panel-strong); box-shadow: none; border-color: var(--fg); }

:where(a, button, pre):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.72rem/1.5 var(--font-mono);
}

.chip.library {
  border-color: transparent;
  background: color-mix(in srgb, var(--violet) 20%, transparent);
  color: var(--fg);
}

/* Views: the list and a style's detail share the main area and slide between each other */
.view { position: relative; background: transparent; }

.view[hidden] { display: none; }

/* While sliding out, a view is lifted out of the flow and pinned where it was */
.view.leaving {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

/* The view sliding over the other gets a solid backing so the two never show through
   each other. Once it lands, the backing fades away to reveal the glow behind. */
.view.on-top,
.view.settling { isolation: isolate; }

.view.on-top { z-index: 2; box-shadow: -24px 0 48px -24px rgba(10, 6, 30, 0.45); }

.view.on-top::before,
.view.settling::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--stage);
  pointer-events: none;
}

.view.settling::before { animation: backing-out 0.35s ease forwards; }

@keyframes backing-out { to { opacity: 0; } }

/* Detail view */
.detail-bar {
  position: sticky;
  top: 56px;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--stage) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.detail-bar .wrap {
  display: flex;
  align-items: center;
  height: 52px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: -6px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--field);
  color: var(--field-text);
  font: 600 0.9rem var(--font);
  cursor: pointer;
}

.back svg { width: 18px; height: 18px; }

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

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 36px;
}

.preview-dock {
  --ar: 0.5625;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.detail-preview {
  position: relative;
  width: min(100%, calc(50dvh * var(--ar)));
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 14px;
  background: #0b0b10;
  box-shadow: 0 20px 50px -26px rgba(20, 10, 60, 0.6);
}

.preview-stage { position: absolute; inset: 0; }

/* Speaker toggle on the preview: sound is off until the visitor turns it on */
.speaker {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 8, 24, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font: 600 0.8rem var(--font);
  cursor: pointer;
}

.speaker[hidden] { display: none; }

.speaker svg { width: 18px; height: 18px; flex: none; }

.speaker .icon-on,
.speaker[aria-pressed="true"] .icon-off { display: none; }

.speaker[aria-pressed="true"] .icon-on { display: block; }

.speaker[aria-pressed="true"] {
  border-color: transparent;
  background: var(--violet);
}

.speaker:hover { border-color: rgba(255, 255, 255, 0.5); }

.speaker:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.detail-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-info h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

.detail-info h2:focus { outline: none; }

.detail-info > p { color: var(--on-stage); font-size: 0.97rem; }

/* Video settings: format, size and length as compact segmented buttons */
.settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--field-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--field) 70%, transparent);
}

.settings-title {
  margin: 0;
  color: var(--fg);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.setting[hidden] { display: none; }

.setting-label {
  color: var(--field-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .setting-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--field);
}

.segment {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 4px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--field-text);
  font: 600 0.84rem var(--font);
  line-height: 1.2;
  cursor: pointer;
}

.segment small {
  max-width: 100%;
  overflow: hidden;
  color: var(--field-hint);
  font-size: 0.62rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment[aria-pressed="true"] {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.segment[aria-pressed="true"] small { color: inherit; opacity: 0.75; }

.paste-tip {
  margin: 0;
  color: var(--on-stage) !important;
  font-size: 0.86rem !important;
}

/* Prompt box: a header with the copy button, then the style text */
.prompt-box {
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--field);
}

/* The header sticks under the back bar, so Copy stays in reach while reading */
.prompt-head {
  position: sticky;
  top: calc(56px + 52px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--field-line);
  border-radius: 14px 14px 0 0;
  background: var(--field);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.prompt-title {
  color: var(--field-hint);
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.85rem var(--font);
  cursor: pointer;
}

.copy-button svg { width: 17px; height: 17px; flex: none; }

.copy-button .icon-done,
.copy-button.done .icon-copy { display: none; }

.copy-button.done .icon-done { display: block; }

.copy-button.done { background: #16a34a; color: #fff; }

.copy-button:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 25%, transparent); }

.prompt-text {
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: transparent;
  color: var(--field-text);
  font: 0.78rem/1.65 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 820px) {
  .detail-body {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .preview-dock {
    position: sticky;
    top: calc(56px + 52px + 24px);
    padding: 0;
  }

  .detail-preview {
    width: min(100%, calc((100vh - 56px - 52px - 56px) * var(--ar)));
    border-radius: 18px;
  }

}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--chrome);
  color: var(--faint);
  font-size: 0.82rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.site-footer p { color: inherit; }

.github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
}

.github svg { width: 18px; height: 18px; flex: none; }

.author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.author img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--chrome), 0 0 0 3.5px var(--accent);
}

.author span {
  display: flex;
  flex-direction: column;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.author small {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 500;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Motion (off when the viewer asks for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .button, .copy-button, .filter, .back, .segment, .site-nav a { transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
  .tile { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .tile::before { transition: opacity 0.25s ease; }
  .tile:hover { transform: translateY(-3px); }
  .tile:active { transform: scale(0.98); }
}

