:root {
  --bg: #2F2F2F;
  --surface: #F5F5F5;
  --surface-bright: #FFFFFF;
  --ink: #212121;
  --ink-invert: #FFFFFF;
  --line: #BDBDBD;
  --line-dark: #444444;
  --accent: #FF6D00;
  --ok: #4CAF50;
  --error: #F44336;
  --info: #2196F3;
  --progress: #00BCD4;
  --zone-1: #E64A19;
  --zone-2: #FFB300;
  --zone-3: #3F51B5;
  --zone-4: #009688;
  --zone-5: #9C27B0;
  --zone-6: #E91E63;
  --glass-bg: rgba(245, 245, 245, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --font-display: "Arial Black", "Impact", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --maxw: 1280px;
  --radius: 4px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  --space: clamp(1rem, 2vw, 1.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-invert);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

main {
  display: block;
}

#main-content {
  display: block;
  min-height: 60vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #FFA040;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--ink-invert);
}

.container {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--info));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: relative;
  background: #242424;
  border-bottom: 1px solid var(--line-dark);
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--zone-1) 0 16.6%,
    var(--zone-2) 0 33.3%,
    var(--zone-3) 0 50%,
    var(--zone-4) 0 66.6%,
    var(--zone-5) 0 83.3%,
    var(--zone-6) 0 100%
  );
}

.masthead {
  text-align: center;
  padding: clamp(1.6rem, 4vw, 2.75rem) 0 1.25rem;
}

.masthead-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #BDBDBD;
  margin: 0 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.kicker-dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.kicker-dot--z1 {
  background: var(--zone-1);
}

.kicker-dot--z2 {
  background: var(--zone-2);
}

.kicker-dot--z3 {
  background: var(--zone-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex-wrap: wrap;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1;
  border-radius: 2px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  align-self: flex-end;
  margin-bottom: 0.35rem;
}

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #BDBDBD;
  margin: 0.35rem 0 0;
}

.nav-bar {
  position: relative;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.8rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.15rem;
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.nav-link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
  background: linear-gradient(to top, rgba(255, 109, 0, 0.24), transparent 70%);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 3rem;
  height: 3rem;
  margin: 0.25rem 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #666;
  border-radius: 2px;
  color: #fff;
  line-height: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(135deg, var(--zone-3) 0%, #283593 48%, var(--zone-4) 100%);
  color: #fff;
  border-top: 6px solid #1A1A1A;
}

.footer-colorbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 8px;
  background: #fff;
}

.color-cell {
  display: block;
}

.color-z1 {
  background: var(--zone-1);
}

.color-z2 {
  background: var(--zone-2);
}

.color-z3 {
  background: var(--zone-3);
}

.color-z4 {
  background: var(--zone-4);
}

.color-z5 {
  background: var(--zone-5);
}

.color-z6 {
  background: var(--zone-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand .brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.35rem;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  letter-spacing: 0.08em;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 0.7rem;
}

.footer-links ul {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.footer-links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-contact p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: #fff;
}

.contact-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-bottom p {
  margin: 0;
}

.section {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  scroll-margin-top: 2rem;
}

.section-band {
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band--ink {
  background: var(--bg);
  color: #fff;
  border-color: #111;
}

.section-band--indigo {
  background: var(--zone-3);
  color: #fff;
  border-color: #212121;
}

.section-band--teal {
  background: var(--zone-4);
  color: #fff;
  border-color: #212121;
}

.section-band--ink .section-head,
.section-band--indigo .section-head,
.section-band--teal .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
}

.section-head .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.section-head .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
}

.section-head .section-link {
  font-weight: 700;
  white-space: nowrap;
}

.panel {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb li {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #BDBDBD;
}

.breadcrumb a {
  color: #E0E0E0;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--surface-bright);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #E85E00;
  border-color: #E85E00;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  border-color: #9E9E9E;
}

.card--hot {
  border-top-color: var(--error);
}

.card--cool {
  border-top-color: var(--info);
}

.card--ok {
  border-top-color: var(--ok);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #757575;
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.9rem;
  color: #424242;
  flex: 1;
  margin: 0 0 1rem;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.tile {
  position: relative;
  display: grid;
  gap: 0.4rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem;
  min-height: 128px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile::after {
  content: "→";
  position: absolute;
  right: 0.8rem;
  bottom: 0.4rem;
  font-weight: 900;
  color: inherit;
  opacity: 0.55;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
}

.tile-count {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.tile-label {
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 90%;
}

.tile--z1 {
  background: var(--zone-1);
  color: #fff;
  border-color: transparent;
}

.tile--z2 {
  background: var(--zone-2);
  color: var(--ink);
  border-color: transparent;
}

.tile--z3 {
  background: var(--zone-3);
  color: #fff;
  border-color: transparent;
}

.tile--z4 {
  background: var(--zone-4);
  color: #fff;
  border-color: transparent;
}

.tile--z5 {
  background: var(--zone-5);
  color: #fff;
  border-color: transparent;
}

.tile--z6 {
  background: var(--zone-6);
  color: #fff;
  border-color: transparent;
}

.entry-list {
  display: grid;
  gap: 0.7rem;
}

.entry-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 2px;
  padding: 0.8rem 1rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.entry-row:hover {
  background: var(--surface-bright);
  border-left-color: var(--accent);
}

.entry-row-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.entry-row-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.entry-row-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: #757575;
  margin: 0 0 0.75rem;
}

.meta-list strong {
  color: var(--ink);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: #ECEFF1;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 0.22rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.tag:hover {
  background: var(--accent);
  color: #fff;
}

.tag--red {
  background: rgba(244, 67, 54, 0.14);
  color: #C62828;
  border-left-color: var(--error);
}

.tag--blue {
  background: rgba(33, 150, 243, 0.14);
  color: #0D47A1;
  border-left-color: var(--info);
}

.tag--green {
  background: rgba(76, 175, 80, 0.18);
  color: #1B5E20;
  border-left-color: var(--ok);
}

.tag--orange {
  background: rgba(255, 109, 0, 0.16);
  color: #E65100;
  border-left-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.badge--ok {
  color: #1B5E20;
  background: #E8F5E9;
  border-color: var(--ok);
}

.badge--expired {
  color: #B71C1C;
  background: #FFEBEE;
  border-color: var(--error);
}

.badge--new {
  color: #0D47A1;
  background: #E3F2FD;
  border-color: var(--info);
}

.badge--updating {
  color: #006064;
  background: #E0F7FA;
  border-color: var(--progress);
}

.index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.index-cell {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: 0.3rem 0.5rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.index-cell[aria-current="true"],
.index-cell:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.metric {
  display: grid;
  gap: 0.4rem;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.metric-value {
  font-family: var(--font-mono);
  color: var(--accent);
}

.metric-bar {
  display: block;
  height: 6px;
  background: #E0E0E0;
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--accent);
  border-radius: 3px;
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 0.8rem;
}

.rail > * {
  flex: 0 0 auto;
  min-width: min(280px, 80vw);
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: var(--bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--surface-bright);
}

.table--compare th:first-child,
.table--compare td:first-child {
  width: 9rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}

.sort-options,
.view-toggle,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.view-toggle {
  gap: 0;
}

.option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.option:hover {
  background: var(--surface-bright);
  color: var(--ink);
  border-color: #9E9E9E;
}

.option[aria-current="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.view-toggle .option + .option {
  border-left: 0;
  border-radius: 0 2px 2px 0;
}

.view-toggle .option:first-child {
  border-radius: 2px 0 0 2px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 188, 212, 0.18), rgba(63, 81, 181, 0.14)),
    var(--surface);
  border: 1px dashed var(--line);
  color: #757575;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

.media--ink {
  background:
    linear-gradient(135deg, rgba(255, 109, 0, 0.16), rgba(33, 150, 243, 0.12)),
    #242424;
  border-color: var(--line-dark);
  color: #BDBDBD;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-bar-inner {
    justify-content: flex-end;
    min-height: 3.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--surface);
    color: var(--ink);
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }

  .nav-link:hover {
    color: var(--accent);
    border-bottom-color: var(--line);
  }

  .nav-link[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--line);
    background: transparent;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand-block {
    grid-column: auto;
  }

  .entry-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .entry-row-meta {
    justify-content: flex-start;
    grid-column: 2;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-options,
  .view-toggle,
  .filter-tabs {
    justify-content: flex-start;
  }
}

@supports not (aspect-ratio: 16 / 9) {
  .media {
    min-height: 180px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
