/* magict.cloud – start, apps, license and about pages. The photo quiz has its own
   stylesheet (quiz.css) with the same colors. */

:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #161616;
  --muted: #6e6c68;
  --border: #e4e2dd;
  --soft: #efede8;
  --accent: #e8503a;
  --accent-strong: #d43f2a; /* white text on it passes WCAG AA */
  --ok: #1d8a4e;
  --no: #c9473f;
  --band: #e4f3e7;          /* "Free to use" strip: light green (user's choice) */
  --band-text: #161616;
  --band-muted: #3f5a47;
  --band-line: rgba(22, 22, 22, 0.25);
  /* Text on the start-page photo: light design fades the photo to the page colour with
     dark text, dark design fades to black with white text. */
  --hero-fade: 246, 245, 242;
  --hero-ink: #161616;
  --hero-ink-soft: rgba(22, 22, 22, 0.85);
  --hero-kicker: #c23a26;
  --hero-shadow: 0 0 14px rgba(246, 245, 242, 0.9);
  --ghost-bg: rgba(255, 255, 255, 0.55);
  --ghost-bg-hover: rgba(255, 255, 255, 0.85);
  --ghost-border: rgba(22, 22, 22, 0.3);
  --ghost-text: #161616;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --card: #161616;
    --text: #f2f1ee;
    --muted: #9c9a95;
    --border: #2a2a2a;
    --soft: #1d1d1d;
    --accent: #ff6a4f;
    --ok: #3fbf78;
    --no: #ef6a61;
    --band: #1a1a1a;
    --band-text: #f2f1ee;
    --band-muted: rgba(242, 241, 238, 0.8);
    --band-line: rgba(242, 241, 238, 0.4);
    --hero-fade: 0, 0, 0;
    --hero-ink: #fff;
    --hero-ink-soft: rgba(255, 255, 255, 0.92);
    --hero-kicker: #ffb4a6;
    --hero-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
    --ghost-bg: rgba(255, 255, 255, 0.08);
    --ghost-bg-hover: rgba(255, 255, 255, 0.18);
    --ghost-border: rgba(255, 255, 255, 0.5);
    --ghost-text: #fff;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --card: #161616;
  --text: #f2f1ee;
  --muted: #9c9a95;
  --border: #2a2a2a;
  --soft: #1d1d1d;
  --accent: #ff6a4f;
  --ok: #3fbf78;
  --no: #ef6a61;
  --band: #1a1a1a;
  --band-text: #f2f1ee;
  --band-muted: rgba(242, 241, 238, 0.8);
  --band-line: rgba(242, 241, 238, 0.4);
  --hero-fade: 0, 0, 0;
  --hero-ink: #fff;
  --hero-ink-soft: rgba(255, 255, 255, 0.92);
  --hero-kicker: #ffb4a6;
  --hero-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  --ghost-bg: rgba(255, 255, 255, 0.08);
  --ghost-bg-hover: rgba(255, 255, 255, 0.18);
  --ghost-border: rgba(255, 255, 255, 0.5);
  --ghost-text: #fff;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
body:lang(zh) { line-height: 1.75; }

main { flex: 1; }

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn.primary:hover { background: #bd3420; border-color: #bd3420; }
.btn.small { padding: 6px 14px; font-size: 13px; }

.more {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more { color: var(--accent); } }
:root[data-theme="dark"] .more { color: var(--accent); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.site-header { position: relative; z-index: 3; }
.header-row {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo { width: 26px; height: 26px; color: var(--accent); flex: none; }

.main-nav { display: flex; gap: 4px; }
.main-nav a, .langs a, .langs span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover, .langs a:hover { color: var(--text); background: var(--soft); }
.main-nav a[aria-current] { color: var(--text); background: var(--soft); }

/* Appearance switch: automatic → light → dark; the icon shows the current choice. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { color: var(--text); background: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
:root:not([data-theme]) .theme-toggle .ico-auto,
:root[data-theme="light"] .theme-toggle .ico-light,
:root[data-theme="dark"] .theme-toggle .ico-dark { display: block; }

.langs { display: flex; gap: 2px; }
.langs a, .langs span { padding: 5px 9px; font-size: 13px; }
.langs [aria-current] { color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; gap: 4px 6px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
  .main-nav { order: 3; width: 100%; margin: 0 -12px; }
  .main-nav a { font-size: 15px; }
}

/* ------------------------------------------------------------ hero (start page) */

/* Light or dark like the rest of the page; only the text on the photo is always white. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
/* One start-page photo per design (site/hero/hero.yaml `scheme`): only the one for the
   current design is shown; the other one (loading="lazy", display: none) never loads. */
.hero-photo[data-scheme="dark"] { display: none; }
:root[data-theme="dark"] .hero-photo[data-scheme="light"] { display: none; }
:root[data-theme="dark"] .hero-photo[data-scheme="dark"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-photo[data-scheme="light"] { display: none; }
  :root:not([data-theme="light"]) .hero-photo[data-scheme="dark"] { display: block; }
}
/* The photo with the text on it. Photo and text share one grid cell; the text sits on the
   side away from the main subject (text-left / text-right), so the subject is never
   covered. Width, crop and the phone crop of the photo come from home.css (generated
   from the post's keep/portrait values by tool/build.py). Font sizes follow the photo's
   width (cqw = 1 % of it). */
.hero-frame {
  display: grid;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}
.hero-frame > .hero-link,
.hero-frame > .hero-text,
.hero-frame::after { grid-area: 1 / 1; }
.hero-link { display: block; }
.hero-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  max-height: 70svh;
  object-fit: cover;
}
.hero-frame::after {
  content: "";
  pointer-events: none;
}
/* A fade behind the text only (to the page colour in the light design, to black in the
   dark one). It reaches 66 % across and is at most 8 % strong beyond 64 %; the text
   starts at 48 %. hero_layout() in tool/build.py puts the text on this side only when
   the subject ends by 36 %. */
.text-right::after { background: linear-gradient(to left, rgba(var(--hero-fade), 0.86), rgba(var(--hero-fade), 0.72) 38%, rgba(var(--hero-fade), 0.62) 50%, rgba(var(--hero-fade), 0.3) 58%, rgba(var(--hero-fade), 0.08) 64%, rgba(var(--hero-fade), 0) 66%); }
.text-left::after { background: linear-gradient(to right, rgba(var(--hero-fade), 0.86), rgba(var(--hero-fade), 0.72) 38%, rgba(var(--hero-fade), 0.62) 50%, rgba(var(--hero-fade), 0.3) 58%, rgba(var(--hero-fade), 0.08) 64%, rgba(var(--hero-fade), 0) 66%); }
.hero-text {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 52cqw;
  padding: 0 4cqw 4cqw;
  color: var(--hero-ink);
  text-shadow: var(--hero-shadow);
}
.hero-text .kicker { color: var(--hero-kicker); }
.hero-text .btn.ghost { background: var(--ghost-bg); border-color: var(--ghost-border); color: var(--ghost-text); text-shadow: none; }
.hero-text .btn.ghost:hover { background: var(--ghost-bg-hover); border-color: var(--ghost-text); }
.text-right .hero-text { justify-self: end; padding-left: 2cqw; }
.text-left .hero-text { justify-self: start; padding-right: 2cqw; }
.text-below .hero-text { grid-area: 2 / 1; max-width: none; padding: 28px 24px 8px; color: var(--text); text-shadow: none; }
.hero .hero-frame .kicker { font-size: clamp(10px, 1.05cqw, 13px); margin-bottom: 0.8cqw; }
.hero .hero-frame h1 { font-size: clamp(28px, 6.6cqw, 104px); text-wrap: balance; }
.hero .hero-frame .lead { font-size: clamp(13px, 1.45cqw, 19px); margin-top: 1.4cqw; color: var(--hero-ink-soft); }
.hero .hero-frame .actions { margin-top: 2cqw; }
@media (max-width: 900px) {
  .hero .hero-frame .btn { padding: 8px 14px; font-size: 13px; }
}

.hero-caption {
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0 24px 28px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.hero-caption a { color: var(--muted); text-decoration: none; }
.hero-caption a:hover { color: var(--text); text-decoration: underline; }

/* Hero text that is not on the photo (below it): page colours, normal buttons. */
.text-below .kicker { color: var(--accent-strong); }
.hero .text-below .hero-frame .lead, .hero .hero-frame.text-below .lead { color: var(--muted); }
.text-below .btn.ghost {
  background: var(--card); border-color: var(--border); color: var(--text);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Upright phones: the subject is in the middle of the crop, so only the title goes on
   the photo, in the strip under the subject (title-on-photo); the rest follows below. */
@media (orientation: portrait) and (max-width: 640px) {
  .hero-frame { grid-template-rows: auto auto auto; }
  .hero-text { display: contents; }
  .hero-title, .hero-more { position: relative; z-index: 1; padding: 0 16px; color: var(--text); text-shadow: none; }
  .hero-title { grid-area: 2 / 1; padding-top: 22px; }
  .hero-title .kicker { color: var(--accent-strong); }
  .hero-more { grid-area: 3 / 1; padding-bottom: 8px; }
  .hero .hero-frame .hero-more .lead { color: var(--muted); }
  .hero-more .btn.ghost {
    background: var(--card); border-color: var(--border); color: var(--text);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .title-on-photo .hero-title { grid-area: 1 / 1; align-self: end; padding: 0 16px 16px; color: var(--hero-ink); text-shadow: var(--hero-shadow); }
  .title-on-photo .hero-title .kicker { color: var(--hero-kicker); }
  .hero-frame::after { background: none; }
  /* The photo runs out into the page colour under the subject, behind the title. */
  .title-on-photo::after { background: linear-gradient(to top, rgba(var(--hero-fade), 0.9), rgba(var(--hero-fade), 0.55) 14%, rgba(var(--hero-fade), 0) 26%); }
  .hero .hero-frame .kicker { font-size: 12px; margin-bottom: 6px; }
  .hero .hero-frame h1 { font-size: min(13.5vw, 64px); }
  .hero .hero-frame .lead { font-size: 16px; margin-top: 18px; }
  .hero .hero-frame .actions { margin-top: 20px; }
  .hero .hero-frame .btn { padding: 11px 20px; font-size: 15px; }
  .hero-caption { padding: 0 16px 28px; }
}

/* Without any photo yet: a big ring on dark instead. */
.hero-plain {
  display: flex; align-items: flex-end; min-height: min(70vh, 720px); background: #0d0d0d; color: #fff;
  --ghost-bg: rgba(255, 255, 255, 0.08); --ghost-bg-hover: rgba(255, 255, 255, 0.18);
  --ghost-border: rgba(255, 255, 255, 0.5); --ghost-text: #fff;
}
.hero-plain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(232, 80, 58, 0.35), rgba(13, 13, 13, 0) 55%);
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  right: -6vw;
  top: 8%;
  width: min(60vw, 560px);
  color: rgba(232, 80, 58, 0.22);
}
.hero-mark .logo { width: 100%; height: auto; color: inherit; }

.hero-content { position: relative; z-index: 1; padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero-plain .hero-content { padding-top: 64px; }
.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb4a6;
}
:lang(zh) .kicker { letter-spacing: 0.2em; }
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero .lead {
  max-width: 36em;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.85);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.btn.ghost { background: var(--ghost-bg); border-color: var(--ghost-border); color: var(--ghost-text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost:hover { background: var(--ghost-bg-hover); border-color: var(--ghost-text); }

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

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.section h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); }
.section-text { max-width: 44em; margin: 12px 0 28px; color: var(--muted); font-size: 17px; }
.empty { color: var(--muted); }

/* Latest photos */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  color: #fff;
  text-decoration: none;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile:hover img { transform: scale(1.04); }
.tile-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 40px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
.tile-meta time { font-weight: 500; opacity: 0.85; white-space: nowrap; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* Apps on the start page */
.app-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-mini a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-mini a:hover { border-color: var(--muted); transform: translateY(-2px); }
.app-mini img { flex: none; width: 56px; height: 56px; border-radius: 22%; }
.app-mini span span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
@media (max-width: 860px) { .app-mini { grid-template-columns: minmax(0, 1fr); } }

/* Free to use */
.free { background: var(--band); color: var(--band-text); }
.free-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.free-row > div { max-width: 44em; }
.free p { margin: 12px 0 0; font-size: 17px; color: var(--band-muted); }
.free .btn { background: transparent; color: var(--band-text); border-color: var(--band-line); }
.free .btn:hover { border-color: var(--band-text); }

/* ------------------------------------------------------------ inner pages */

.page-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 28px; }
.page-head h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.page-head .lead { max-width: 40em; margin: 16px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }

/* About page: a photo of me, one per design (site/about/about.yaml), always whole:
   landscape photos fill the column; upright ones do on phones, on wider screens they keep
   their height in check. The size is known before loading (width/height attributes), so
   lazy loading works; the photo of the other design (display: none) never loads. */
.about-photo { margin: 0 0 36px; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--border);
}
@media (min-width: 600px) {
  .about-photo.upright img { width: auto; height: min(78vh, 680px); }
}
.about-photo figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.about-photo[data-scheme="dark"] { display: none; }
:root[data-theme="dark"] .about-photo[data-scheme="light"] { display: none; }
:root[data-theme="dark"] .about-photo[data-scheme="dark"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .about-photo[data-scheme="light"] { display: none; }
  :root:not([data-theme="light"]) .about-photo[data-scheme="dark"] { display: block; }
}

.prose { padding-bottom: 72px; }
.prose h2 { margin: 40px 0 10px; font-size: 24px; }
.prose p { margin: 0 0 14px; font-size: 17px; max-width: 42em; }

/* Apps page */
.app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 80px;
  padding: 0;
  list-style: none;
}
.app-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 4px 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}
.app-icon { width: 72px; height: 72px; border-radius: 22%; }
.app-body h2 { margin: 2px 0 2px; font-size: 22px; }
.app-tagline { margin: 0; font-weight: 600; }
.app-text { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.app-facts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 14px 0 0; font-size: 14px; }
.app-facts div { display: flex; gap: 8px; }
.app-facts dt { color: var(--muted); }
.app-facts dd { margin: 0; font-weight: 600; }
.app-facts dd span { white-space: nowrap; }
.app-open { grid-column: 2; justify-self: start; margin-top: 16px; }
.app-open .host { font-weight: 500; opacity: 0.8; }
@media (max-width: 900px) { .app-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .app-card { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; gap: 4px 14px; }
  .app-icon { width: 56px; height: 56px; }
  .app-open { grid-column: 1 / -1; }
  .app-open .host { display: none; }
}

/* License page */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rule {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.rule h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; }
.rule .mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  color: #fff;
}
.can .mark { background: var(--ok); }
.cannot .mark { background: var(--no); }
.rule ul { margin: 0; padding-left: 20px; }
.rule li { margin: 6px 0; }
@media (max-width: 720px) { .rules { grid-template-columns: minmax(0, 1fr); } }

.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.credit code {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--soft);
  font: 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.notfound { padding-bottom: 96px; }

.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.page-head .profile-links { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.page-head .profile-links a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

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

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 28px;
}
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
