:root {
  --bg:      #f7f5f0;
  --surface: #fffefb;
  --ink:     #1c1d1a;
  --muted:   #7a7a72;
  --line:    #e5e2d9;
  --accent:  #1f6b52;
  --radius: 13px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(31,107,82,0.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
  padding: clamp(2.2rem, 6vw, 4.5rem) 1.5rem 3rem;
  display: flex;
  justify-content: center;
}

.wrap { width: 100%; max-width: 880px; }

/* ---------- header ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.monogram {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 11px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
}
.wordmark { font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; }
.wordmark .dim { color: var(--muted); }

/* ---------- sections ---------- */
section { margin-top: 2.4rem; }
section:first-child { margin-top: 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.05rem;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

/* ---------- cards ---------- */
.card {
  --brand: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(28,29,26,0.03);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: var(--delay, 0ms);
}
.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--brand) 70%, transparent);
  outline: none;
}
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.mark {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 11px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.card:hover .mark {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}
.mark img { width: 25px; height: 25px; object-fit: contain; display: block; }

.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }
.card__url {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 0.16s ease, color 0.16s ease;
}
.card:hover .card__arrow { color: var(--brand); transform: translate(2px, -2px); }

/* ---------- footer ---------- */
footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; }
}
