:root {
  --bg: #fbf8f1;
  --ink: #1f2a1c;
  --muted: #5f6b5a;
  --green: #2e7d32;
  --green-soft: #e3f1e0;
  --orange: #ef6c00;
  --card: #ffffff;
  --line: #e7e1d3;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
}

a { color: inherit; }

.top {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--green); }
.tag { margin: 0; color: var(--muted); }

main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; }

.hero { padding: clamp(2rem, 6vw, 4rem) 0 2rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.4; margin: 0 0 0.5rem; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 60ch; color: var(--muted); margin: 0 0 0.5rem; }
.stats { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; }

.shops-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shops-head h2 { margin: 0; }
.search input {
  font: inherit; width: min(320px, 80vw); padding: 0.55rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.search input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.shops {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shop a {
  display: grid; gap: 0.25rem; height: 100%;
  padding: 1.1rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.shop a:hover, .shop a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgb(46 125 50 / 0.12);
  outline: none;
}
.emoji { font-size: 2.4rem; line-height: 1.2; }
.name { font-size: 1.1rem; }
.desc { color: var(--muted); font-size: 0.9rem; min-height: 1.5em; }
.owner { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.owner.free { color: var(--orange); }
.slug { justify-self: start; direction: ltr; font-size: 0.8rem; color: var(--muted); background: var(--bg); padding: 0.05rem 0.5rem; border-radius: 6px; }

.bottom { text-align: center; color: var(--muted); padding: 2rem 1rem; border-top: 1px solid var(--line); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .shop a { transition: none; }
  .shop a:hover { transform: none; }
}
