/* ============================================================
   Fonts — self-hosted Sofia Sans (OFL), no external requests.
   Weight 450 body is load-bearing: this variable font is what
   actually renders it.
   ============================================================ */
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/sofia-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/sofia-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Tokens — DESIGN.md palette, tuned for both themes
   ============================================================ */
:root {
  color-scheme: light dark;

  /* surfaces */
  --canvas: #F3F0EE;
  --lifted: #FCFBFA;
  --bone: #F4F4F4;
  --white: #FFFFFF;
  --ghost: #E8E2DA;

  /* ink & text */
  --ink: #141413;
  --charcoal: #262627;
  --slate: #696969;
  --granite: #555555;
  --taupe: #D1CDC7;
  --ink-80: rgba(20, 20, 19, .8);
  --line: rgba(20, 20, 19, .12);
  --line-strong: rgba(20, 20, 19, .35);

  /* accents */
  --orange: #CF4500;
  --orange-light: #F37338;
  --clay: #9A3A0A;
  --link: #3860BE;
  --thread-line: #F3A581; /* orange-light at 60% over --canvas */

  /* elevation — atmospheric only */
  --lift-1: 0 4px 24px rgba(0, 0, 0, .04);
  --lift-2: 0 24px 48px rgba(0, 0, 0, .08);

  /* theme anchors */
  --nav-bg: rgba(255, 255, 255, .88);
  --footer-bg: #141413;
  --footer-text: #F3F0EE;

  /* radii — the lopsided scale */
  --r-btn: 20px;
  --r-card: 40px;
  --r-pill: 999px;
  --r-circle: 50%;

  --font: "Sofia Sans", Arial, sans-serif;
  --track-tight: -.02em;
  --max-width: 680px;
}

html[data-theme="dark"] {
  --canvas: #141413;
  --lifted: #1E1E1C;
  --bone: #2A2A28;
  --white: #1E1E1C;
  --ghost: #2E2C29;
  --ink: #F3F0EE;
  --charcoal: #E0DDD7;
  --slate: #A8A39B;
  --granite: #B5B0A8;
  --taupe: #63605B;
  --ink-80: rgba(243, 240, 238, .8);
  --line: rgba(243, 240, 238, .12);
  --line-strong: rgba(243, 240, 238, .35);
  --orange: #F37338;
  --orange-light: #F58A5C;
  --clay: #C0501E;
  --link: #7B9CF2;
  --thread-line: #9B5B3F; /* orange-light at 60% over --canvas */
  --lift-1: 0 4px 24px rgba(0, 0, 0, .5);
  --lift-2: 0 24px 48px rgba(0, 0, 0, .55);
  --nav-bg: rgba(30, 30, 28, .9);
  --footer-bg: #000000;
}

html[data-theme="auto"] { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --canvas: #141413;
    --lifted: #1E1E1C;
    --bone: #2A2A28;
    --white: #1E1E1C;
    --ghost: #2E2C29;
    --ink: #F3F0EE;
    --charcoal: #E0DDD7;
    --slate: #A8A39B;
    --granite: #B5B0A8;
    --taupe: #63605B;
    --ink-80: rgba(243, 240, 238, .8);
    --line: rgba(243, 240, 238, .12);
    --line-strong: rgba(243, 240, 238, .35);
    --orange: #F37338;
    --orange-light: #F58A5C;
    --clay: #C0501E;
    --link: #7B9CF2;
    --thread-line: #9B5B3F; /* orange-light at 60% over --canvas */
    --lift-1: 0 4px 24px rgba(0, 0, 0, .5);
    --lift-2: 0 24px 48px rgba(0, 0, 0, .55);
    --nav-bg: rgba(30, 30, 28, .9);
    --footer-bg: #000000;
  }
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main.container { flex: 1 0 auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
}

code {
  background: var(--ghost);
  border-radius: var(--r-btn);
  padding: 0.1em 0.5em;
  font-size: 0.9em;
}

/* ---- floating nav pill ---- */

.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;
  padding: 16px 16px 0;
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-radius: var(--r-pill);
  box-shadow: var(--lift-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  white-space: nowrap;
  padding: 8px 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: var(--r-circle);
  background: var(--orange);
  font-size: 0; /* the glyph becomes a pure dot */
  flex: 0 0 auto;
}

.site-header .search { flex: 1; max-width: 380px; }
.site-header .search input {
  width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  min-height: 44px;
}
.site-header .search input::placeholder { color: var(--taupe); }
.site-header .search input:focus { outline: none; border-color: var(--ink); }

.nav-links { margin-left: auto; display: flex; gap: 8px; }
.nav-links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--track-tight);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background .18s;
}
.nav-links a:hover { background: var(--bone); text-decoration: none; }

/* ---- page container ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* ---- hero: ghost text + arcs + centered search ---- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  /* the home page is one full viewport: title + search centered, and the
     ink footer stays below the fold until you scroll manually */
  min-height: calc(100vh - 152px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.arc-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.arc-layer svg {
  width: 100%;
  height: 100%;
  stroke: var(--orange-light);
  stroke-width: 1.25;
  opacity: .55;
}

.hero h1 {
  position: relative;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
}

.tagline {
  position: relative;
  color: var(--slate);
  margin: 20px auto 40px;
  max-width: 480px;
}

.search.big {
  position: relative;
  max-width: 460px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.search.big input {
  flex: 1;
  min-width: 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  padding: 12px 24px;
  min-height: 48px;
}
.search.big input::placeholder { color: var(--taupe); }
.search.big input:focus { outline: none; border-color: var(--ink); }
.search.big button {
  border: none;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 28px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--track-tight);
  min-height: 48px;
  transition: transform .12s, background .18s;
}
.search.big button:hover { background: var(--charcoal); }
.search.big button:active { transform: scale(.98); }

.hint {
  position: relative;
  color: var(--taupe);
  font-size: 0.9rem;
}

/* ---- static pages ---- */

.error-page {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 40px;
}

.error-page h1 { margin-bottom: 8px; }
.error-page p { color: var(--slate); }

/* about: full-viewport centered card, arcs behind like the home hero */
.about-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 152px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.about-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 40px;
  max-width: 560px;
}
.about-card h1 { margin-bottom: 12px; }
.about-card p { color: var(--ink-80); margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; color: var(--slate); }

/* ---- profile ---- */

.profile {
  background: var(--lifted);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.banner { max-height: 180px; overflow: hidden; }
.banner img {
  width: 100%;
  display: block;
  border-radius: var(--r-card) var(--r-card) 0 0;
}

.profile-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  padding: 0 32px 8px;
}

.avatar {
  border-radius: var(--r-circle);
  background: var(--bone);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar.big {
  width: 112px;
  height: 112px;
  border: 4px solid var(--lifted);
  margin-top: -56px;
}

.profile-names { padding-bottom: 4px; }
.profile-names .fullname {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: var(--track-tight);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.handle { color: var(--slate); }

.badge {
  display: inline-flex;
  align-items: center;
  color: var(--orange-light);
}
.badge svg { width: 1em; height: 1em; }

.bio { padding: 0 32px; margin: 8px 0 0; color: var(--ink-80); }

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 32px 0;
  color: var(--slate);
  font-size: 0.92rem;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fact svg { width: 14px; height: 14px; flex: none; }

.profile-counts {
  display: flex;
  gap: 32px;
  padding: 16px 32px 28px;
  color: var(--slate);
  font-size: 0.95rem;
}
.profile-counts strong { color: var(--ink); font-weight: 500; }

.error-note { padding: 24px 32px 32px; color: var(--clay); }

/* ---- tabs (pill segmented) ---- */

.tabs {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--track-tight);
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  transition: background .18s, color .18s;
}
.tabs a.active {
  color: var(--canvas);
  background: var(--ink);
  border-color: var(--ink);
}
.tabs a:hover { text-decoration: none; border-color: var(--line-strong); }
.tabs a.active:hover { border-color: var(--ink); background: var(--ink); }

/* ---- tweets ---- */

.tweet {
  background: var(--lifted);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 28px;
}

.tweet.is-focal {
  border: 1.5px solid var(--ink);
  padding: 32px 36px;
}

.usercard {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.usercard .avatar { width: 48px; height: 48px; }
.usercard-names { display: flex; flex-direction: column; min-width: 0; }
.fullname {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handle { color: var(--slate); font-size: 0.9rem; }

.tweet-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-weight: 450;
}
.tweet-text a.mention { font-weight: 500; color: var(--clay); }

.retweet-label, .is-pinned .retweet-label {
  color: var(--slate);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.tombstone {
  color: var(--slate);
  font-style: italic;
  background: var(--bone);
  border-radius: var(--r-btn);
  padding: 12px 20px;
}

.tweet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--slate);
}
.tweet-time { color: var(--slate); white-space: nowrap; }
.tweet-time:hover { color: var(--ink); text-decoration: none; }
.tweet-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.tweet-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tweet-stats svg { width: 14px; height: 14px; flex: none; }

/* whole-card permalink overlay: clicking anywhere on a post opens it, like
   X. Interactive elements are raised above the overlay so they keep working,
   and the text paragraph is raised too so it stays selectable/copyable —
   clicks on plain text select, clicks on the card around it navigate. */
.tweet { position: relative; }
.tweet-link { position: absolute; inset: 0; z-index: 1; }
.tweet .retweet-label,
.tweet .usercard a,
.tweet .tweet-text,
.tweet .media-item,
.tweet .media-video,
.tweet .quote-card,
.tweet .tweet-time,
.tweet .tweet-stats {
  position: relative;
  z-index: 2;
}

.quote-card {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 16px 20px;
  background: var(--white);
}
.quote-card .usercard .avatar { width: 36px; height: 36px; }
.quote-card .tweet-text { font-size: 0.95rem; }

/* ---- media (hero-frame gesture, scaled) ---- */

.media-grid {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.media-n1 { grid-template-columns: 1fr; }
.media-n2, .media-n4 { grid-template-columns: 1fr 1fr; }
.media-n3 { grid-template-columns: 1fr 1fr 1fr; }

.media-item {
  display: block;
  background: var(--bone);
  border-radius: var(--r-card);
  overflow: hidden;
}
.media-item:hover { text-decoration: none; }
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 520px;
  border-radius: var(--r-card);
}

.media-video { position: relative; }

.media-video video {
  width: 100%;
  max-height: 520px;
  display: block;
  background: #000;
  border-radius: var(--r-card);
}

/* download chip, overlaid on the video's top-right corner: out of the way
   of the player controls and clipped safely by the card's rounded corners */
.media-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.media-dl svg { width: 13px; height: 13px; }

.media-dl:hover {
  color: #fff;
  background: rgba(0, 0, 0, .75);
  text-decoration: none;
}

/* divider shown above gated reply sections ("Probable spam") */
.replies-label {
  display: inline-block;
  margin: 16px 0 4px;
  padding: 5px 14px;
  font-size: 14px;
  color: var(--slate);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---- lists & misc ---- */

.user-list .user-row { padding: 20px 28px; }

.pagination { text-align: center; padding: 8px 0 16px; }

.empty { color: var(--taupe); text-align: center; padding: 32px 0; }

/* section headers become eyebrow labels: orange dot + uppercase tracking */
.replies-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 8px 0 -8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.replies-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-circle);
  background: var(--orange-light);
  flex: 0 0 auto;
}

.timeline { display: flex; flex-direction: column; gap: 16px; }

/* Reply threads: a thin rail runs down the left gutter connecting each
   reply to the next, with a small bead marking every reply's avatar.
   Both live entirely in the gutter — never inside a card — anchored to
   each avatar's fixed 48px offset from its card's top, so the rail lines
   up card to card however long a reply's text runs. */
.reply-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reply-thread.is-linked { padding-left: 26px; } /* gutter for the rail */
.reply-thread.is-linked > .tweet,
.reply-thread.is-linked > .more-replies { position: relative; }

/* one segment per reply, running from its own avatar down to the next
   reply's avatar (16px gap + that reply's own 48px avatar offset) */
.reply-thread.is-linked > .tweet:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  left: -14px;
  bottom: -64px;
  width: 2px;
  border-radius: var(--r-pill);
  background: var(--thread-line);
}
/* a branch truncated by "Show more" aims at the link's center instead
   (16px gap + the link's own ~14px center offset) */
.reply-thread.is-linked > .tweet:has(+ .more-replies)::after { bottom: -30px; }

/* a bead on the rail at every reply's avatar height */
.reply-thread.is-linked > .tweet::before,
.reply-thread.is-linked > .more-replies::before {
  content: "";
  position: absolute;
  left: -17px;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--thread-line);
}
.reply-thread.is-linked > .tweet::before { top: 48px; }
.reply-thread.is-linked > .more-replies::before { top: 14px; }


/* ---- footer (ink block, always) ---- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 48px;
  padding: 28px 24px 24px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* paints over the fixed arc layer */
}

.footer-inner { max-width: 1240px; margin: 0 auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-small {
  font-size: 14px;
  color: rgba(255, 255, 255, .56);
}

.footer-link {
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 450;
  padding: 12px 0;
}
.footer-link:hover {
  color: var(--orange-light);
  text-decoration: none;
}
.footer-link .ext {
  display: inline-flex;
  align-items: center;
  margin-left: .15em;
  opacity: .7;
}
.footer-link .ext svg { width: 11px; height: 11px; }

/* the round selector pill (country-selector gesture) */
.footer-pill { position: relative; margin-left: auto; }
.footer-pill summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--r-pill);
  color: var(--footer-text);
  font: inherit;
  font-size: 14px;
  font-weight: 450;
  user-select: none;
  min-height: 44px;
  transition: background .18s, color .18s, border-color .18s;
}
.footer-pill summary::-webkit-details-marker { display: none; }
.footer-pill summary:hover {
  background: var(--footer-text);
  color: var(--footer-bg);
  border-color: var(--footer-text);
}
.footer-pill .chev {
  display: inline-flex;
  align-items: center;
}
.footer-pill .chev svg { width: 12px; height: 12px; transition: transform .18s; }
.footer-pill[open] .chev svg { transform: rotate(180deg); }

.footer-pill-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border-radius: var(--r-btn);
  box-shadow: var(--lift-2);
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 120;
}
.footer-pill-menu a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 450;
  padding: 10px 16px;
  border-radius: var(--r-pill);
}
.footer-pill-menu a:hover {
  background: var(--canvas);
  color: var(--ink);
  text-decoration: none;
}

/* ---- responsive ---- */

.more-replies {
  display: inline-block;
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 0 4px 28px;
}
.more-replies:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .site-header { padding: 8px 8px 0; top: 6px; }
  .nav {
    flex-wrap: wrap;
    padding: 10px 12px 10px 20px;
    border-radius: var(--r-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--white);
  }
  .search { order: 3; min-width: 100%; max-width: none; }
  .container { padding: 16px 12px 32px; gap: 16px; }
  .hero {
    padding: 32px 12px;
    /* nav wraps to two rows on mobile: keep the footer below the fold */
    min-height: calc(100vh - 190px);
  }
  .arc-layer { display: none } /* arcs only work with asymmetric placement */
  .tweet { padding: 20px; }
  .tweet.is-focal { padding: 24px; }
  /* tweet footer: counts on their own line, timestamp at the bottom */
  .tweet-meta { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .tweet-stats { gap: 14px; }
  .reply-thread.is-linked { padding-left: 18px; }
  .reply-thread.is-linked > .tweet:not(:last-child)::after { top: 44px; left: -10px; bottom: -60px; }
  .reply-thread.is-linked > .tweet::before { top: 44px; left: -13px; }
  .reply-thread.is-linked > .more-replies::before { left: -13px; }
  .profile-head { padding: 0 20px 8px; }
  .bio, .profile-facts { padding-left: 20px; padding-right: 20px; }
  .profile-counts { padding: 16px 20px 24px; gap: 16px; flex-wrap: wrap; }
  .about-hero { min-height: calc(100vh - 190px); }
  .error-page { padding: 24px; border-radius: 24px; }
  .about-card { padding: 24px; border-radius: 24px; }
  .site-footer { margin-top: 32px; padding: 20px 20px 20px; border-radius: 24px 24px 0 0; }

  .footer-bottom { gap: 16px; }
}

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