:root {
  color-scheme: light dark;
  --page: #dff7ff;
  --surface: #ffffff;
  --text: #20242b;
  --muted: #667180;
  --line: #d8dee8;
  --yellow: #ffd600;
  --yellow-border: #bf9f00;
  --link: #075e8f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: var(--link); }

.seo-header,
main,
footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.seo-header {
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
}

.brand {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  text-decoration: none;
}

.live-note,
.set-card p,
footer { color: var(--muted); }

.topic-nav,
.more-pages nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.topic-nav a,
.more-pages a {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.topic-nav a[aria-current="page"] { border-color: var(--yellow-border); background: #fff8cf; }

.intro {
  width: 100%;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.eyebrow { margin: 0 0 0.35rem; color: var(--muted); font-weight: 700; }
h1 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.08;
}
.lead { max-width: 760px; margin: 1rem auto; font-size: 1.15rem; }
.feature-list {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 0.2rem;
  margin: 0.75rem auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  list-style: none;
  text-align: left;
}
.feature-list li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: baseline;
}
.feature-list li::before {
  color: #16813a;
  content: "✓";
  font-weight: 900;
  text-align: center;
}
.primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 36rem);
  min-height: 4.35rem;
  margin: 1rem auto 0;
  padding: 1rem 1.75rem;
  border: 1px solid var(--yellow-border);
  border-radius: 8px;
  background: var(--yellow);
  color: #181818;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}
.live-note { max-width: 760px; margin: 1rem auto 0; font-size: 0.9rem; }
h2 { margin: 0 0 1rem; font-size: 1.55rem; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 0.8rem;
}

.set-card {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.set-card-link {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.set-card-link:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }

.set-card img {
  display: block;
  width: 100%;
  height: 43%;
  flex: 0 0 43%;
  object-fit: contain;
  background: #fff;
}
.set-card-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0.7rem;
}
.set-number { color: var(--muted); font: 600 0.8rem ui-monospace, monospace; }
.set-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.2rem 0;
  font-size: 1rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.set-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.set-card .translated-name {
  margin-bottom: 0.2rem;
  font-size: 0.74rem;
  -webkit-line-clamp: 3;
}
.set-card .set-details { -webkit-line-clamp: 1; }

.themes,
.marketplaces,
.search-intent,
.more-pages { padding-block: 2.75rem 0; }
.search-intent {
  max-width: 820px;
}
.search-intent p {
  margin: 0;
  color: var(--muted);
}
.themes ul,
.marketplaces ul { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; list-style: none; }
.themes li,
.marketplaces li { padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.themes li a,
.marketplaces li a { color: inherit; text-decoration: none; }
.themes li a:hover,
.marketplaces li a:hover { text-decoration: underline; }
footer { padding-block: 3rem 1.5rem; font-size: 0.85rem; }

@media (max-width: 560px) {
  .seo-header { align-items: flex-start; flex-direction: column; }
  .topic-nav { justify-content: flex-start; }
  .intro { padding-top: 2rem; }
  .primary-cta { min-height: 4rem; font-size: 1.15rem; }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .set-card-body { padding: 0.5rem; }
  .set-number { font-size: 0.7rem; }
  .set-card h3 { font-size: 0.85rem; -webkit-line-clamp: 2; }
  .set-card p { font-size: 0.68rem; -webkit-line-clamp: 1; }
  .set-card .translated-name { font-size: 0.64rem; -webkit-line-clamp: 2; }
}

@media (prefers-color-scheme: dark) {
  :root { --page: #16130e; --surface: #292d33; --text: #f5f6f7; --muted: #c0c6ce; --line: #54514a; --link: #8fd4ff; }
  .topic-nav a[aria-current="page"] { background: #4b4220; }
}
