:root {
  color-scheme: light dark;
  --background: #f6f5f1;
  --surface: #fff;
  --text: #202b35;
  --muted: #52616d;
  --accent: #155e63;
  --border: #d7dfdf;
  --button: #edf5f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.intro, main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.intro { padding-block: 32px 20px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.04em; margin-block: 0; }
main { padding-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}

h3 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.stores a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--accent);
  background: var(--button);
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none;
}
.stores a:hover { text-decoration: underline; border-color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .intro { padding-block: 36px 24px; }
  article { padding: 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111a20;
    --surface: #1b272e;
    --text: #edf2f3;
    --muted: #b5c4cb;
    --accent: #91ddd1;
    --border: #3b5059;
    --button: #20383b;
  }
}
