:root {
  --ink: #14181f;
  --ink-soft: #2a3340;
  --paper: #f3f0e7;
  --paper-2: #e7e2d4;
  --moss: #1f6b57;
  --moss-deep: #0f3d33;
  --amber: #c9852a;
  --line: rgba(20, 24, 31, 0.12);
  --shadow: 0 18px 50px rgba(15, 20, 28, 0.08);
  --display: "Fraunces", "Songti SC", serif;
  --body: "DM Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 87, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 133, 42, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--moss-deep);
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero,
.coop {
  padding: 4.5rem 0 2.25rem;
  animation: rise 0.7s ease both;
}

.coop {
  border: 1px solid rgba(31, 107, 87, 0.28);
  background:
    linear-gradient(135deg, rgba(31, 107, 87, 0.12), rgba(201, 133, 42, 0.1)),
    rgba(255, 255, 255, 0.55);
  padding: 2rem 1.4rem 1.6rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.coop-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-deep);
  font-weight: 650;
}

.coop-title {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
}

.coop-mail {
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
}

.coop-mail a {
  color: var(--moss-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.tagline {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.meta-bar {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.pill strong {
  color: var(--moss-deep);
  font-weight: 650;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0.5rem;
  animation: rise 0.8s ease both;
  animation-delay: 0.08s;
}

.toolbar button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.toolbar button:hover {
  border-color: rgba(31, 107, 87, 0.45);
  transform: translateY(-1px);
}

.toolbar button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.toolbar input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.toolbar input:focus,
.toolbar button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.list {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 0 4rem;
}

.row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: rise 0.55s ease both;
}

.row:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 87, 0.35);
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(145deg, var(--moss), var(--moss-deep));
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.4rem;
}

.icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
}

.name {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.summary {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.body {
  min-width: 0;
}

.listings {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.listings.dual {
  gap: 0.75rem;
}

.listing {
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.listing.ios {
  border-color: rgba(201, 133, 42, 0.35);
}

.listing.harmony {
  border-color: rgba(31, 107, 87, 0.35);
}

.source-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--moss-deep);
}

.listing-desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-desc.muted {
  opacity: 0.7;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  background: rgba(243, 240, 231, 0.8);
}

.badge.ios {
  border-color: rgba(201, 133, 42, 0.45);
}

.badge.harmony {
  border-color: rgba(31, 107, 87, 0.45);
}

.badge.warn {
  border-color: rgba(201, 133, 42, 0.55);
  background: rgba(201, 133, 42, 0.12);
  color: #7a4a0d;
}

.shots {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.shots a {
  flex: 0 0 auto;
  line-height: 0;
}

.shots img {
  height: 140px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  min-width: 9.5rem;
}

.updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.links a {
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.links a.primary {
  background: var(--moss);
  border-color: var(--moss);
  color: #f7faf8;
}

.links a.primary:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: #f7faf8;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 56px 1fr;
  }

  .side {
    grid-column: 1 / -1;
    align-items: flex-start;
    min-width: 0;
  }

  .links {
    justify-content: flex-start;
  }

  .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
}

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