:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #17202a;
  --muted: #566573;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --border: #d5dbe1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --card: #1b232c;
    --text: #edf1f5;
    --muted: #a9b5c0;
    --accent: #6cb2f5;
    --accent-text: #0b1520;
    --border: #33404c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.brand { margin: 0; color: var(--accent); font-weight: 700; }
h1 { margin: 0.25rem 0 0.5rem; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; }
header p:last-child { max-width: 42rem; color: var(--muted); }

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.offer[hidden] { display: none; }
.offer h2 { margin: 0; font-size: 1.2rem; }
.offer p { margin: 0.2rem 0; }
.price { font-size: 1.5rem; font-weight: 700; }
.age { color: var(--muted); font-size: 0.875rem; }

.button {
  display: block;
  margin-top: auto;
  padding: 0.6rem;
  background: var(--accent);
  border-radius: 0.375rem;
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.age + .button { margin-top: 0.75rem; }
.button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.notice { padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; }
footer { color: var(--muted); font-size: 0.875rem; }
