:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-accent: #1c1c1c;
  --panel: rgba(28, 28, 28, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f6f1e8;
  --muted: #cbbda6;
  --accent: #f2a65a;
  --accent-2: #7bd389;
  --shadow: rgba(0, 0, 0, 0.28);
  --font-body: "Trebuchet MS", "Gill Sans", "Avenir Next", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 166, 90, 0.26), transparent 30%),
    radial-gradient(circle at top right, rgba(123, 211, 137, 0.22), transparent 28%),
    linear-gradient(180deg, #201c18 0%, #111111 55%, #0b0b0b 100%);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.toolbar {
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 48px var(--shadow);
}

.hero {
  padding: 1.5rem 2rem;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  color: var(--accent);
}

.intro {
  max-width: 42rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.suffix-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--accent-2);
  opacity: 0.7;
}

.toolbar {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
}

.search {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 24rem;
}

.search span {
  font-size: 0.85rem;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 0.75rem 0.95rem;
  font: inherit;
}

.search input:focus {
  outline: 2px solid rgba(242, 166, 90, 0.5);
  outline-offset: 2px;
}

.grid-shell {
  margin-top: 1rem;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-section.hidden {
  display: none;
}

.section-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.5rem;
}

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

a.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 48px var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

a.card:active {
  transform: translateY(0);
}

a.card.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.card.hidden {
  display: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  color: #161616;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.badge.media {
  background: linear-gradient(135deg, #f2a65a, #f58549);
}

.badge.download {
  background: linear-gradient(135deg, #7bd389, #49a078);
}

.badge.utility {
  background: linear-gradient(135deg, #9cc5a1, #dce1de);
}

.title-group h2 {
  margin: 0;
  font-size: 1.1rem;
}

.title-group p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.description {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.card-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skeleton {
  min-height: 180px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(28, 28, 28, 0.88);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--panel-border);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .hero,
  .toolbar,
  a.card {
    border-radius: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
