/* ==========================================================================
   V0.0.1 — Public experience
   ========================================================================== */

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
[data-mode="contrast"] .site-header { background: #000; border-bottom: 2px solid #fff; backdrop-filter: none; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--brand-600);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-control);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.35rem; margin-left: auto; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn .fa-solid, .icon-btn .fa-regular, .icon-btn .fa-brands { font-size: 1.05rem; }
.locale-select {
  min-height: 2.4rem;
  padding: 0.3rem 1.9rem 0.3rem 0.6rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.header-divider { width: 1px; height: 1.7rem; background: var(--border); margin-inline: 0.3rem; }
.auth-links { display: flex; align-items: center; gap: 0.4rem; }
.auth-links .btn { min-height: 2.5rem; padding: 0.4rem 0.85rem; font-size: 0.88rem; }
.mobile-toggle { display: none; }
.user-menu { position: relative; }
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  cursor: pointer;
  font-weight: 700;
}
.user-menu-toggle .avatar { --avatar-size: 2rem; border: 0; box-shadow: none; }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  z-index: 950;
}
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; padding: 0.6rem 0.7rem; border: 0; background: none;
  color: var(--text); text-decoration: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); }
.user-dropdown .dropdown-head { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem; }
.user-dropdown .dropdown-head strong { display: block; }
.user-dropdown .dropdown-head span { font-size: 0.78rem; color: var(--muted); }
.notification-count {
  position: absolute; top: 0.15rem; right: 0.1rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.2rem;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 800; display: grid; place-items: center;
}
.notification-bell { position: relative; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .site-header.is-open .main-nav {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 0;
    padding: 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .site-header.is-open .main-nav ul { flex-direction: column; align-items: stretch; }
  .site-header.is-open .main-nav a { min-height: 2.9rem; }
  .header-actions .locale-select { display: none; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .header-divider { display: none; }
  .header-actions .btn span.label { display: none; }
  .header-actions .btn { padding-inline: 0.65rem; }
  .user-menu-toggle span.user-name { display: none; }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.65rem, 5.6vw, 5.1rem); line-height: 0.98; letter-spacing: -0.045em; margin: 0.6rem 0 1.2rem; }
.hero-title .accent { color: var(--accent); position: relative; white-space: nowrap; }
.hero-title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.12em;
  background: var(--accent-gradient); border-radius: 999px; opacity: 0.35;
}
.hero-subtitle { max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.hero-stat strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero-stat span { display: block; margin-top: 0.35rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.hero-visual { position: relative; min-height: 30rem; display: grid; place-items: center; }
.hero-ring {
  position: absolute; inset: 6% 4%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  animation: spin-slow 44s linear infinite;
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute; width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft);
}
.hero-ring::before { top: 8%; left: 14%; }
.hero-ring::after { bottom: 10%; right: 12%; background: hsl(var(--brand-secondary-h) var(--brand-s) 55%); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-poster {
  position: relative;
  width: min(100%, 27rem);
  border-radius: calc(var(--radius-card) + 8px);
  padding: 0.8rem;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(-2.5deg);
  transition: transform 400ms ease;
}
.hero-poster:hover { transform: rotate(0deg) translateY(-4px); }
.hero-poster-media { position: relative; aspect-ratio: 4 / 3.15; border-radius: var(--radius-card); overflow: hidden; background: var(--surface-2); }
.hero-poster-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(8 6 4 / 0.82)); }
.hero-poster-content { position: absolute; inset: auto 1rem 1rem; color: #fff; z-index: 1; }
.hero-poster-content h3 { color: #fff; font-size: 1.5rem; margin: 0.4rem 0 0.5rem; }
.hero-poster-content p { color: rgb(255 255 255 / 0.82); font-size: 0.85rem; margin: 0; }
.hero-poster .tag { background: rgb(255 255 255 / 0.16); color: #fff; backdrop-filter: blur(5px); }
.float-badge {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.5rem 0.85rem;
  box-shadow: var(--shadow-md); font-weight: 800; font-size: 0.82rem;
  animation: float-y 6s ease-in-out infinite;
}
.float-badge .fa-solid { color: var(--accent); }
.float-badge--score { top: 8%; right: -1.2rem; }
.float-badge--comments { bottom: 14%; left: -1.4rem; animation-delay: -2s; }
.float-badge--authors { top: 44%; left: -2.2rem; animation-delay: -4s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 22rem; }
  .hero-poster { width: min(100%, 24rem); transform: none; }
  .hero-ring { inset: 0 12%; }
  .float-badge--score { right: 0; }
  .float-badge--comments { left: 0; }
  .float-badge--authors { display: none; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 19rem; }
  .hero-poster { width: 100%; padding: 0.5rem; }
  .hero-poster-content h3 { font-size: 1.15rem; }
  .float-badge { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
}

/* Section heads ----------------------------------------------------------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { margin: 0 0 0.35rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 44rem; }
.section-link { white-space: nowrap; font-weight: 800; font-size: 0.9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.section-link:hover { text-decoration: underline; }
@media (max-width: 620px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* Post cards -------------------------------------------------------------- */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-width: 0;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: auto;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.post-card:focus-within { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.post-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.post-card:hover .post-cover img { transform: scale(1.035); }
.post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(10 7 5 / 0.45)); pointer-events: none; }
.post-cover-badge { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.post-cover-badge .tag { background: rgb(10 7 5 / 0.55); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 0.18); }
.post-cover-score {
  position: absolute; bottom: 0.8rem; right: 0.8rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgb(10 7 5 / 0.6); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 999px;
  padding: 0.3rem 0.6rem; font-size: 0.75rem; font-weight: 800;
}
.post-body { display: flex; flex-direction: column; gap: 0.7rem; padding: clamp(1rem, 2vw, 1.4rem); flex: 1; min-width: 0; }
.post-kicker { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.post-title { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; margin: 0; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--link); }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.post-card > * { position: relative; z-index: 1; }
.post-excerpt { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; min-width: 0; }
.post-meta .avatar-stack { margin-right: auto; }
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.post-meta .fa-solid, .post-meta .fa-regular { color: var(--faint); }
.post-author { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; min-width: 0; max-width: 100%; flex: 1 1 auto; position: relative; z-index: 2; }
.post-author-link { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; max-width: 100%; flex: 1 1 auto; color: var(--text); font-weight: 700; }
.post-author-link:hover { color: var(--accent); }
.post-author-name { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.post-author-more { color: var(--muted); font-size: 0.72rem; flex: none; }
.post-meta-stats { display: inline-flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; min-width: 0; position: relative; z-index: 2; }
.post-card-share { flex: none; width: 2.25rem; height: 2.25rem; position: relative; z-index: 3; }
.avatar-xs { --avatar-size: 1.85rem; }
.post-author .avatar {
  --avatar-size: 3.5rem;
  margin-left: -2.1rem;
  border: 3px solid var(--surface);
  box-shadow: 0 0.45rem 1rem rgb(0 0 0 / 0.16);
  flex: none;
}
@media (max-width: 560px) {
  .post-author .avatar { --avatar-size: 3rem; margin-left: -1.55rem; }
}
.post-card--featured .post-cover { aspect-ratio: 4 / 3; }
.post-card--featured .post-title { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.post-card--horizontal { display: grid; grid-template-columns: 12rem minmax(0, 1fr); }
.post-card--horizontal .post-cover { aspect-ratio: auto; height: 100%; }
.post-card--horizontal .post-body { padding: 1rem 1.25rem; }
.post-card--mini { flex-direction: row; align-items: center; gap: 0.8rem; padding: 0.7rem; }
.post-card--mini .post-cover { width: 5.5rem; aspect-ratio: 1; border-radius: var(--radius-sm); flex: none; }
.post-card--mini .post-body { padding: 0; gap: 0.2rem; }
.post-card--mini .post-title { font-size: 0.95rem; }
.post-card--mini .post-meta { border: 0; padding: 0; font-size: 0.72rem; }
@media (max-width: 760px) { .post-card--horizontal { grid-template-columns: 1fr; } .post-card--horizontal .post-cover { aspect-ratio: 16/9; } }

/* Rotation ---------------------------------------------------------------- */
.rotation-section { position: relative; }
.rotation-shell { position: relative; }
.rotation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); transition: opacity 250ms ease, transform 250ms ease; }
.rotation-grid.is-swapping { opacity: 0; transform: translateY(6px); }
.rotation-toolbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.rotation-hint { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.rotation-dots { display: flex; align-items: center; gap: 0; }
.rotation-dot {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.rotation-dot::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border-strong); transition: width var(--transition), background var(--transition); }
.rotation-dot:hover::before { background: var(--text); }
.rotation-dot.is-active::before { background: var(--accent); width: 1.4rem; border-radius: 999px; }
@media (max-width: 980px) { .rotation-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .rotation-grid { grid-template-columns: 1fr; } }

/* Tag cloud / authors ----------------------------------------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.author-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.author-card-head { display: flex; align-items: center; gap: 0.7rem; }
.author-card h3 { font-size: 1rem; margin: 0; }
.author-card h3 a { color: var(--text); text-decoration: none; }
.author-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-card .author-stats { display: flex; gap: 0.9rem; font-size: 0.75rem; color: var(--muted); margin-top: auto; }
.author-card .author-stats strong { color: var(--text); }

/* Join band --------------------------------------------------------------- */
.join-band {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius-card) + 6px);
  background: var(--accent-gradient);
  color: #fff; padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-glow);
}
.join-band::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 28rem; height: 28rem;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25);
}
.join-band::after {
  content: ""; position: absolute; inset: auto auto -40% -10%; width: 24rem; height: 24rem;
  border-radius: 50%; background: rgb(255 255 255 / 0.1);
}
.join-band > * { position: relative; z-index: 1; }
.join-band h2 { color: #fff; max-width: 24ch; }
.join-band p { color: rgb(255 255 255 / 0.88); max-width: 48ch; }
.join-band .btn-primary { --btn-bg: #fff; --btn-color: #181411; --btn-border: transparent; }
.join-band .btn-ghost, .join-band .join-ghost { --btn-color: #fff; --btn-bg: transparent; --btn-border: rgb(255 255 255 / 0.55); }
.join-band .btn-ghost:hover, .join-band .join-ghost:hover { --btn-bg: rgb(255 255 255 / 0.14); --btn-color: #fff; }
[data-mode="contrast"] .join-band { background: #000; border: 2px solid #fff; box-shadow: none; }
[data-mode="contrast"] .join-band h2, [data-mode="contrast"] .join-band p { color: #fff; }

/* Blog list --------------------------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.5rem; }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--muted); max-width: 48rem; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end;
  padding: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--card-shadow); margin-block: 1.5rem 2.5rem;
}
.filter-bar .field { margin: 0; flex: 1 1 12rem; }
.filter-bar .search-field { flex: 2 1 20rem; }
.filter-bar .btn { margin-bottom: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.empty-state { text-align: center; padding: clamp(2rem, 5vw, 4rem); border: 1px dashed var(--border-strong); border-radius: var(--radius-card); background: var(--surface); }
.empty-state .fa-solid { font-size: 2.2rem; color: var(--accent); margin-bottom: 0.75rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.35rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center;
  border-radius: var(--radius-control); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700;
}
.pagination a:hover { background: var(--surface-2); }
.pagination .is-current { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pagination .is-disabled { opacity: 0.5; pointer-events: none; }

/* Article ----------------------------------------------------------------- */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 1500; height: 3px; width: 0; background: var(--accent-gradient); box-shadow: 0 0 12px var(--brand-500); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { color: var(--faint); }
.breadcrumbs-wrap { padding-top: 1.25rem; }
.post-hero { padding-block: clamp(2rem, 4vw, 3.5rem) 1.5rem; }
.post-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.1rem); max-width: 18ch; margin-bottom: 1rem; }
.post-hero .lead { max-width: 52rem; }
.post-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.post-meta-line .avatar { --avatar-size: 2rem; }
.post-meta-line .meta-group { display: inline-flex; align-items: center; gap: 0.45rem; }
.post-hero-cover { margin-top: 2rem; aspect-ratio: 21 / 9; border-radius: calc(var(--radius-card) + 6px); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.post-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem) 4rem; }
.article-body { min-width: 0; }
.article-section { scroll-margin-top: calc(var(--header-h) + 2rem); padding-block: 1.5rem 2.5rem; border-bottom: 1px solid var(--border); }
.article-section:last-child { border-bottom: 0; }
.article-section-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 1.2rem; }
.section-number { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 800; color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 999px; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; flex: none; background: var(--accent-soft); }
.article-section h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.article-section .prose { font-size: 1.02rem; }
.article-section .gallery { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.article-section .gallery figure { margin: 0; }
.article-section .gallery img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 16/10; object-fit: cover; cursor: zoom-in; transition: transform var(--transition), box-shadow var(--transition); }
.article-section .gallery img:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-section .gallery figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.1rem; box-shadow: var(--card-shadow); }
.aside-card h2, .aside-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; counter-reset: toc; }
.toc a { display: flex; gap: 0.5rem; padding: 0.45rem 0.5rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 0.85rem; line-height: 1.35; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: 0.72rem; }
.toc a:hover, .toc a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.vote-panel { display: grid; gap: 0.6rem; }
.vote-actions { display: flex; gap: 0.5rem; }
.vote-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  flex: 1; min-height: 2.8rem; padding: 0.45rem 0.7rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-control);
  background: var(--surface); color: var(--text); font-weight: 800; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.vote-button:hover { background: var(--surface-2); transform: translateY(-1px); }
.vote-button.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vote-button .count { font-variant-numeric: tabular-nums; }
.vote-help { font-size: 0.75rem; color: var(--muted); text-align: center; }
.share-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.post-note { font-size: 0.78rem; color: var(--muted); padding: 0.75rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.post-footer-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2rem; }
.contributors-box { display: grid; gap: 0.8rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.contributor-row { display: flex; align-items: center; gap: 0.7rem; }
.contributor-row .avatar { --avatar-size: 2.6rem; }
.contributor-row strong { display: block; font-size: 0.92rem; }
.contributor-row span { display: block; font-size: 0.78rem; color: var(--muted); }
.related-section { padding-block: 2rem 4rem; border-top: 1px solid var(--border); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; grid-template-columns: 1fr 1fr; }
  .article-aside .toc-card { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .post-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .post-hero-cover { aspect-ratio: 4/3; }
  .article-aside { grid-template-columns: 1fr; }
  .article-section .gallery { grid-template-columns: 1fr; }
}

/* Comments ---------------------------------------------------------------- */
.comments { padding-block: 3rem 4rem; border-top: 1px solid var(--border); }
.comments-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.comments-head h2 { margin: 0; }
.comment-form-card { margin-bottom: 2rem; }
.comment-form-card textarea { min-height: 8rem; }
.comment-list { display: grid; gap: 1.1rem; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; }
.comment-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.comment-head strong { color: var(--text); font-size: 0.9rem; }
.comment-body { font-size: 0.94rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.7rem; font-size: 0.8rem; }
.comment-actions .vote-mini { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 700; padding: 0.2rem 0.3rem; border-radius: 4px; }
.comment-actions .vote-mini:hover { background: var(--surface-2); color: var(--text); }
.comment-actions .vote-mini.is-active { color: var(--accent); }
.comment-replies { margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--border); display: grid; gap: 0.9rem; }
.comment-reply { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; }
.comment-reply .avatar { --avatar-size: 2rem; }
.comment-reply .comment-main { padding: 0.8rem 0.9rem; }
.comment-login { padding: 1.25rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); text-align: center; }
.comment-policy { font-size: 0.78rem; color: var(--muted); }
.comments-empty { color: var(--muted); padding: 1.5rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-md); }
@media (max-width: 560px) { .comment, .comment-reply { grid-template-columns: 1fr; } .comment > .avatar, .comment-reply > .avatar { display: none; } .comment-replies { padding-left: 0.4rem; } }

/* Author page ------------------------------------------------------------- */
.author-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.author-hero .avatar { --avatar-size: 7.5rem; }
.author-hero h1 { margin: 0 0 0.35rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.author-hero p { color: var(--muted); max-width: 50rem; margin: 0.4rem 0 0; }
.author-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }
.author-stats strong { color: var(--text); font-size: 1.2rem; display: block; }
@media (max-width: 700px) { .author-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Static pages ------------------------------------------------------------ */
.page-article { max-width: 52rem; margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem) 5rem; }
.page-article h1 { margin-bottom: 1rem; }
.page-article .meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 2rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; padding-block: 2rem 5rem; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; box-shadow: var(--card-shadow); }
.about-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.about-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.about-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.about-card .fa-solid, .about-card .fa-brands { color: var(--accent); width: 1.1rem; margin-top: 0.2rem; }
.maintenance-card { max-width: 34rem; margin: 12vh auto; text-align: center; }
.maintenance-card .fa-solid { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 26rem; }
.footer-col h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.78rem; color: var(--muted); }
.footer-bottom .cluster { gap: 0.9rem; }
.social-links { display: flex; gap: 0.4rem; }
.social-links a { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text); }
.social-links a:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Auth -------------------------------------------------------------------- */
.page-auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.auth-brand-panel {
  position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem);
  background: var(--accent-gradient); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh;
}
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.22); }
.auth-brand-panel::before { width: 34rem; height: 34rem; right: -12rem; top: -10rem; }
.auth-brand-panel::after { width: 24rem; height: 24rem; left: -8rem; bottom: -10rem; background: rgb(255 255 255 / 0.08); }
.auth-brand-panel > * { position: relative; z-index: 1; }
.auth-brand-panel .brand { color: #fff; }
.auth-brand-panel .brand-text span { color: rgb(255 255 255 / 0.8); }
.auth-brand-panel .brand-mark { background: rgb(255 255 255 / 0.15); backdrop-filter: blur(8px); }
.auth-quote { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 20ch; }
.auth-quote small { display: block; margin-top: 1rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: rgb(255 255 255 / 0.78); }
.auth-panel { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 4rem); }
.auth-card { width: min(28rem, 100%); }
.auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 0.5rem; }
.auth-card .lead { font-size: 1rem; margin-bottom: 1.5rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-card .btn { width: 100%; }
.auth-alt { margin-top: 1.5rem; text-align: center; font-size: 0.88rem; color: var(--muted); }
.auth-alt a { font-weight: 800; }
.auth-note { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1rem; }
.auth-back { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.82rem; font-weight: 700; margin-bottom: 1.5rem; text-decoration: none; }
@media (max-width: 900px) { .page-auth-body { grid-template-columns: 1fr; } .auth-brand-panel { min-height: auto; padding-block: 2rem; } .auth-quote { font-size: 1.5rem; } .auth-brand-panel .auth-quote small { display: none; } }

/* Dialogs / preferences -------------------------------------------------- */
.dialog { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; }
.dialog[hidden] { display: none; }
.dialog-backdrop { position: absolute; inset: 0; background: rgb(8 6 4 / 0.55); backdrop-filter: blur(6px); }
.dialog-panel {
  position: relative; width: min(64rem, 100%); max-height: min(90vh, 54rem); overflow: auto;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: calc(var(--radius-card) + 4px);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(24px) saturate(140%);
  padding: clamp(1.1rem, 2.5vw, 2rem);
  animation: dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dialog-panel--narrow { width: min(32rem, 100%); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.dialog-head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }
.dialog-close { border: 0; background: var(--surface-2); color: var(--text); width: 2.5rem; height: 2.5rem; border-radius: var(--radius-control); display: grid; place-items: center; cursor: pointer; flex: none; }
.dialog-close:hover { background: var(--surface-3); }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: flex-end; align-items: center; border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1rem; }
.prefs-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.75rem; align-items: start; }
.prefs-section { margin-bottom: 1.5rem; }
.prefs-section h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.7rem; }
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.theme-swatch { position: relative; aspect-ratio: 1; border-radius: var(--radius-control); border: 2px solid transparent; cursor: pointer; padding: 0; overflow: hidden; background: var(--surface-2); }
.theme-swatch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b)); }
.theme-swatch::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: var(--swatch-surface); }
.theme-swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.theme-swatch .swatch-label { position: absolute; inset: auto 0 0; z-index: 1; padding: 0.25rem; font-size: 0.58rem; font-weight: 800; text-align: center; background: rgb(255 255 255 / 0.86); color: #181411; }
[data-mode="dark"] .theme-swatch .swatch-label, [data-mode="contrast"] .theme-swatch .swatch-label { background: rgb(0 0 0 / 0.78); color: #fff; }
.theme-swatch--fox { --swatch-a: #d97706; --swatch-b: #be123c; --swatch-surface: #fff7ed; }
.theme-swatch--ocean { --swatch-a: #0284c7; --swatch-b: #0d9488; --swatch-surface: #ecfeff; }
.theme-swatch--forest { --swatch-a: #15803d; --swatch-b: #65a30d; --swatch-surface: #f0fdf4; }
.theme-swatch--lavender { --swatch-a: #7c3aed; --swatch-b: #db2777; --swatch-surface: #faf5ff; }
.theme-swatch--sunset { --swatch-a: #ea580c; --swatch-b: #f59e0b; --swatch-surface: #fff7ed; }
.theme-swatch--cherry { --swatch-a: #e11d48; --swatch-b: #f97316; --swatch-surface: #fff1f2; }
.theme-swatch--mint { --swatch-a: #0d9488; --swatch-b: #0284c7; --swatch-surface: #f0fdfa; }
.theme-swatch--sand { --swatch-a: #a16207; --swatch-b: #92400e; --swatch-surface: #fefce8; }
.theme-swatch--slate { --swatch-a: #475569; --swatch-b: #1e293b; --swatch-surface: #f8fafc; }
.theme-swatch--neon { --swatch-a: #8b5cf6; --swatch-b: #06b6d4; --swatch-surface: #f5f3ff; }
.theme-swatch--mono { --swatch-a: #111111; --swatch-b: #666666; --swatch-surface: #f5f5f5; }
.theme-swatch--royal { --swatch-a: #4f46e5; --swatch-b: #9333ea; --swatch-surface: #eef2ff; }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.mode-option { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.mode-option:hover { background: var(--surface-2); }
.mode-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.geometry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.geometry-option { border: 1.5px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0.55rem 0.35rem; cursor: pointer; font-size: 0.68rem; font-weight: 700; text-align: center; display: grid; gap: 0.3rem; }
.geometry-option:hover { background: var(--surface-2); }
.geometry-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.geometry-shape { width: 100%; height: 1.45rem; background: var(--accent-gradient); margin-inline: auto; }
.geometry-option[data-value="sharp"] .geometry-shape { border-radius: 0; }
.geometry-option[data-value="subtle"] .geometry-shape { border-radius: 4px; }
.geometry-option[data-value="soft"] .geometry-shape { border-radius: 8px; }
.geometry-option[data-value="rounded"] .geometry-shape { border-radius: 12px; }
.geometry-option[data-value="pill"] .geometry-shape { border-radius: 999px; }
.geometry-option[data-value="cut"] .geometry-shape { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.geometry-option[data-value="organic"] .geometry-shape { border-radius: 14px 4px 16px 6px; }
.geometry-option[data-value="framed"] .geometry-shape { border-radius: 4px; border: 2px solid var(--text); }
.geometry-option[data-value="elevated"] .geometry-shape { border-radius: 10px; box-shadow: 0 8px 12px -6px var(--brand-600); }
.geometry-option[data-value="flat"] .geometry-shape { border-radius: 8px; }
.geometry-option[data-value="brutal"] .geometry-shape { border-radius: 0; box-shadow: 3px 3px 0 var(--text); }
.geometry-option[data-value="glass"] .geometry-shape { border-radius: 10px; opacity: 0.65; }
.font-options { display: grid; gap: 0.4rem; }
.font-option { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--border); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; text-align: left; }
.font-option:hover { background: var(--surface-2); }
.font-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.font-option .sample { font-size: 1.05rem; font-weight: 700; }
.font-option small { color: var(--muted); font-size: 0.7rem; }
.font-option[data-value="nunito"] .sample { font-family: "Nunito", system-ui, sans-serif; }
.font-option[data-value="inter"] .sample { font-family: "Inter", system-ui, sans-serif; }
.font-option[data-value="lora"] .sample { font-family: "Lora", Georgia, serif; }
.font-option[data-value="mono"] .sample { font-family: "JetBrains Mono", ui-monospace, monospace; }
.font-option[data-value="atkinson"] .sample { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; }
.bg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.bg-option { border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-control); padding: 0.4rem; cursor: pointer; font-size: 0.68rem; font-weight: 700; display: grid; gap: 0.3rem; }
.bg-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.bg-preview { height: 1.6rem; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.bg-preview[data-bg="mesh"] { background: radial-gradient(circle at 20% 20%, var(--brand-400), transparent 60%), radial-gradient(circle at 80% 80%, hsl(var(--brand-secondary-h) var(--brand-s) 55%), transparent 60%), var(--surface-2); }
.bg-preview[data-bg="grid"] { background: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px), var(--surface-2); background-size: 8px 8px; }
.bg-preview[data-bg="dots"] { background: radial-gradient(var(--border-strong) 1px, transparent 1px), var(--surface-2); background-size: 6px 6px; }
.bg-preview[data-bg="aurora"] { background: linear-gradient(120deg, var(--brand-300), hsl(var(--brand-secondary-h) var(--brand-s) 65%), #67e8f9); }
.bg-preview[data-bg="paper"] { background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.06) 0 1px, transparent 1px 3px), var(--surface-2); }
.prefs-preview { position: sticky; top: 0; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; background: var(--surface); }
.prefs-preview h3 { font-size: 1.1rem; }
.prefs-preview .preview-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem; background: var(--surface-2); }
.prefs-preview .preview-btn { display: inline-flex; padding: 0.5rem 0.8rem; border-radius: var(--radius-control); background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.8rem; }
.prefs-preview .preview-input { border: 1.5px solid var(--border-strong); border-radius: var(--radius-control); padding: 0.4rem 0.6rem; background: var(--surface); font-size: 0.8rem; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; }
.range-value { font-size: 0.75rem; font-weight: 800; color: var(--muted); min-width: 3rem; text-align: right; }
@media (max-width: 820px) { .prefs-grid { grid-template-columns: 1fr; } .prefs-preview { position: static; } .theme-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .dialog { padding: 0; } .dialog-panel { max-height: 100dvh; border-radius: 0; width: 100%; min-height: 100dvh; } .theme-grid { grid-template-columns: repeat(3, 1fr); } .geometry-grid { grid-template-columns: repeat(3, 1fr); } .bg-options { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox ---------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.82); backdrop-filter: blur(6px); }
.lightbox figure { position: relative; z-index: 1; margin: 0; max-width: min(92vw, 80rem); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius-md); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 0.75rem; font-size: 0.85rem; }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 2; background: #fff; color: #000; border: 0; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }

/* Scroll to top ----------------------------------------------------------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 800;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Share dialog ----------------------------------------------------------- */
.share-preview { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem; align-items: center; }
.share-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.share-preview-copy { display: grid; gap: 0.35rem; }
.share-preview-copy strong { font-size: 1.05rem; line-height: 1.35; }
.share-preview-copy p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.share-copy-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.share-copy-row .input { min-width: 0; }
.share-network-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.share-network { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.82rem; }
.share-network:hover { background: var(--surface-2); border-color: var(--border-strong); }
@media (max-width: 620px) { .share-preview { grid-template-columns: 1fr; } .share-copy-row { flex-direction: column; } }

/* API keys and manual ---------------------------------------------------- */
.api-summary { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.api-policy-box { padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 1rem; }
.api-policy-box p { margin: 0.15rem 0; }
.api-keys-table-wrap { overflow-x: auto; }
.api-keys-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.api-keys-table caption { text-align: left; }
.api-keys-table th, .api-keys-table td { padding: 0.65rem 0.55rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.api-keys-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.api-key-meta { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.api-status { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; border: 1px solid var(--border); }
.api-status--active { color: var(--success, #1f7a4d); border-color: currentColor; }
.api-status--expired, .api-status--revoked { color: var(--danger, #a42121); border-color: currentColor; }
.api-expiration { padding: 0.7rem 0.85rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.85rem; }
.api-token-field { font-family: var(--font-mono, monospace); font-size: 0.78rem; line-height: 1.5; word-break: break-all; }
.api-manual-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.api-manual-meta > div { display: grid; gap: 0.2rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.api-manual-meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.api-manual-meta code { word-break: break-all; }
.api-scopes { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 1rem; font-size: 0.8rem; }
.api-scopes code { padding: 0.15rem 0.4rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 0.72rem; }
.api-manual-group { margin-top: 1.35rem; }
.api-manual-group h3 { margin-bottom: 0.35rem; }
.api-endpoints-wrap { overflow-x: auto; }
.api-endpoints { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.api-endpoints th, .api-endpoints td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.api-endpoints th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.api-method { display: inline-block; min-width: 3.4rem; padding: 0.12rem 0.35rem; border-radius: 0.35rem; font-size: 0.68rem; font-weight: 800; text-align: center; background: var(--surface-3); }
.api-method--get { color: #1c6b45; }
.api-method--post { color: #8a4b00; }
.api-method--patch, .api-method--put { color: #4c3f9e; }
.api-method--delete { color: #a42121; }
.api-endpoint-summary { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 0.2rem; }
.api-example { margin-top: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.api-example-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.65rem; border-bottom: 1px solid var(--border); }
.api-example pre { margin: 0; padding: 0.75rem; overflow-x: auto; font-size: 0.76rem; line-height: 1.55; }
.api-example code { white-space: pre; }
.empty-state--compact { padding: 1.5rem 1rem; }
@media (max-width: 620px) { .api-keys-table th:nth-child(2), .api-keys-table td:nth-child(2), .api-keys-table th:nth-child(3), .api-keys-table td:nth-child(3) { display: none; } }

/* Header notifications and dropdowns ------------------------------------- */
.notification-wrap { position: relative; }
.notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(26rem, 70vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}
.notification-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.85rem;
}
.notification-list { display: grid; }
.notification-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
}
.notification-item:last-child { border-bottom: 0; }
.notification-item.is-unread { background: var(--accent-soft); }
.notification-item .icon-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  flex: none;
}
.notification-item strong { display: block; }
.notification-item time { font-size: 0.7rem; color: var(--muted); }
.notification-empty { padding: 1rem; margin: 0; font-size: 0.82rem; }
.user-dropdown { max-width: calc(100vw - 1rem); }
.user-dropdown .dropdown-head strong { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .notification-panel {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    top: calc(var(--header-h) + 0.5rem);
    width: auto;
    max-height: calc(100vh - var(--header-h) - 1rem);
  }
}

/* Blog explore and filters ----------------------------------------------- */
.page-hero--compact { padding-block: clamp(1.8rem, 3vw, 3rem) 0.5rem; }
.hero-actions--inline { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; }
.blog-explore-hero {
  padding-block: clamp(2.2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}
.blog-explore-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.blog-explore-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0.35rem 0 0.8rem; }
.blog-explore-hero .lead { max-width: 44rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.explore-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--card-shadow);
  max-width: 42rem;
}
.explore-search > .fa-solid { color: var(--muted); }
.explore-search .input { border: 0; background: transparent; box-shadow: none; padding-inline: 0.25rem; min-width: 0; }
.explore-search .input:focus { outline: none; box-shadow: none; }
.explore-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.explore-search .btn { border-radius: var(--radius-pill); flex: none; }
.blog-explore-aside {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 0.9rem;
}
.tag-cloud--compact { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-cloud--compact .chip { font-size: 0.78rem; padding: 0.35rem 0.65rem; }
.explore-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  box-shadow: var(--card-shadow);
}
.explore-cta h2 { margin: 0.2rem 0 0.4rem; }
.explore-cta p { margin: 0; color: var(--muted); max-width: 46rem; }
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.results-count { margin: 0; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.results-count .fa-solid { color: var(--accent); }
.results-toolbar .active-filters { margin: 0; }
.chip-reset { border-style: dashed; }
.blog-results { position: relative; transition: opacity 180ms ease; }
.blog-results.is-loading { opacity: 0.5; pointer-events: none; }
.blog-results.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: blog-loading 1.1s linear infinite;
}
@keyframes blog-loading { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.filter-status { flex: 1 1 100%; min-height: 1.1rem; font-size: 0.82rem; }
.filter-status.is-error { color: var(--danger); }
.blog-shelf .section-head { margin-bottom: 1.25rem; }
.blog-shelf + .blog-shelf { padding-top: 0; }
@media (max-width: 900px) {
  .blog-explore-hero-grid { grid-template-columns: 1fr; }
  .blog-explore-aside { max-width: 38rem; }
}
@media (max-width: 620px) {
  .explore-cta { flex-direction: column; align-items: flex-start; }
  .explore-search { border-radius: var(--radius-md); flex-wrap: wrap; padding: 0.6rem; }
  .explore-search .input { flex: 1 1 10rem; }
  .explore-search .btn { width: 100%; }
}

/* Profile dialog ---------------------------------------------------------- */
.profile-dialog .prefs-grid { grid-template-columns: minmax(0, 1fr); }
.profile-column { display: grid; gap: 1rem; min-width: 0; }
.profile-dialog .prefs-section:first-child { margin-top: 0; }

.btn-block { width: 100%; }

/* Home post fan ----------------------------------------------------------- */
.home-fan-section { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.home-fan-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.home-fan-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 36rem;
  padding-block: 1rem 1.5rem;
  perspective: 1400px;
}
.home-fan {
  position: relative;
  width: min(64rem, 100%);
  height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.fan-card {
  --fan-x: 0px;
  --fan-y: 0px;
  --fan-rotate: 0deg;
  --fan-z: 1;
  position: absolute;
  width: clamp(15rem, 24vw, 20rem);
  transform: translateX(var(--fan-x)) translateY(var(--fan-y)) rotate(var(--fan-rotate));
  transform-origin: 50% 92%;
  z-index: var(--fan-z);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 520ms ease, filter 520ms ease;
  will-change: transform;
}
.fan-card--left { --fan-x: -12rem; --fan-y: 1.6rem; --fan-rotate: -10deg; --fan-z: 1; }
.fan-card--center { --fan-x: 0px; --fan-y: 0px; --fan-rotate: 0deg; --fan-z: 3; }
.fan-card--right { --fan-x: 12rem; --fan-y: 1.6rem; --fan-rotate: 10deg; --fan-z: 2; }
.fan-card:hover,
.fan-card:focus-within {
  transform: translateX(var(--fan-x)) translateY(-1rem) rotate(0deg) scale(1.035);
  z-index: 10;
}
.fan-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 30rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-card) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.fan-card-link:hover { color: var(--text); text-decoration: none; }
.fan-card-link:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.fan-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  flex: none;
  overflow: hidden;
  border-radius: calc(var(--radius-card) + 3px) calc(var(--radius-card) + 3px) 0 0;
  background: var(--surface-2);
}
.fan-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms ease; }
.fan-card:hover .fan-card-media img,
.fan-card:focus-within .fan-card-media img { transform: scale(1.045); }
.fan-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgb(10 7 5 / 0.62));
  pointer-events: none;
}
.fan-card-rank,
.fan-card-score {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgb(10 7 5 / 0.58);
  border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fan-card-rank { top: 0.9rem; left: 0.9rem; }
.fan-card-score { right: 0.9rem; bottom: 0.9rem; color: var(--accent); }
.fan-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
  padding: 1.15rem;
}
.fan-card-kicker { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fan-card-kicker .tag { font-size: 0.72rem; }
.fan-card-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fan-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fan-card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
  padding-top: 0.7rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.fan-card-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.fan-card-author .avatar {
  --avatar-size: 3.2rem;
  margin-left: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 0.35rem 0.8rem rgb(0 0 0 / 0.16);
  flex: none;
}
.fan-card-author-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 0.86rem;
}
.fan-card-time { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); font-size: 0.74rem; flex: none; }
.fan-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: var(--on-accent);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 0.5rem 1.2rem -0.7rem var(--brand-600);
  transition: transform 250ms ease, filter 250ms ease;
  flex: none;
}
.fan-card:hover .fan-card-cta,
.fan-card:focus-within .fan-card-cta { transform: translateY(-1px); filter: brightness(1.05); }
.fan-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.fan-hint .fa-solid { color: var(--accent); }

@media (max-width: 1100px) {
  .home-fan-stage { min-height: 33rem; }
  .home-fan { height: 29rem; }
  .fan-card { width: clamp(14rem, 26vw, 17.5rem); }
  .fan-card--left { --fan-x: -8rem; --fan-y: 1.4rem; --fan-rotate: -8deg; }
  .fan-card--right { --fan-x: 8rem; --fan-y: 1.4rem; --fan-rotate: 8deg; }
  .fan-card-link { min-height: 27.5rem; }
}
@media (max-width: 760px) {
  .home-fan-stage { min-height: 31rem; perspective: 1000px; }
  .home-fan { height: 28rem; }
  .fan-card { width: min(16rem, 72vw); }
  .fan-card--left { --fan-x: -6.5rem; --fan-y: 1.4rem; --fan-rotate: -7deg; }
  .fan-card--right { --fan-x: 6.5rem; --fan-y: 1.4rem; --fan-rotate: 7deg; }
  .fan-card-link { min-height: 26.5rem; }
  .fan-card-title { font-size: 1.12rem; }
  .fan-card-excerpt { -webkit-line-clamp: 2; }
  .fan-card-author .avatar { --avatar-size: 2.9rem; margin-left: 0; }
  .fan-card-body { padding: 1rem; }
}
@media (max-width: 430px) {
  .home-fan-stage { min-height: 28rem; padding-inline: 0.5rem; }
  .home-fan { height: 25.5rem; }
  .fan-card { width: min(11rem, 70vw); }
  .fan-card--left { --fan-x: -4.5rem; --fan-y: 1.4rem; --fan-rotate: -5deg; }
  .fan-card--right { --fan-x: 4.5rem; --fan-y: 1.4rem; --fan-rotate: 5deg; }
  .fan-card-link { min-height: 24.5rem; }
  .fan-card-body { padding: 0.8rem; gap: 0.5rem; }
  .fan-card-excerpt { display: none; }
  .fan-card-author .avatar { --avatar-size: 2.6rem; margin-left: 0; }
  .fan-card-meta { gap: 0.4rem; }
  .fan-card-time { font-size: 0.7rem; }
  .fan-hint { font-size: 0.74rem; }
}
@media (max-width: 370px) {
  .fan-card { width: min(10rem, 70vw); }
  .fan-card--left { --fan-x: -4.5rem; --fan-rotate: -5deg; }
  .fan-card--right { --fan-x: 4.5rem; --fan-rotate: 5deg; }
  .fan-card-link { min-height: 24rem; }
  .fan-card-body { padding: 0.75rem; }
}
@media (max-width: 340px) {
  .fan-card { width: min(9rem, 70vw); }
  .fan-card--left { --fan-x: -4rem; --fan-rotate: -4deg; }
  .fan-card--right { --fan-x: 4rem; --fan-rotate: 4deg; }
  .fan-card-body { padding: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card,
  .fan-card-link,
  .fan-card-media img,
  .fan-card-cta { transition: none !important; }
  .fan-card:hover,
  .fan-card:focus-within { transform: translateX(var(--fan-x)) translateY(var(--fan-y)) rotate(var(--fan-rotate)); }
}
