* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #f9f7f1;
  --white: #fffcf6;
  --ink: #222036;
  --muted: #5f596d;
  --violet: #4936b3;
  --line: #ded7e1;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; font-size: 1.36rem; letter-spacing: -.04em; }
.nav-link, .site-footer a { font-size: .84rem; font-weight: 750; text-decoration: none; }
.nav-link span, .site-footer a span { margin-inline-start: 8px; color: var(--violet); }
.nav-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 32px; padding-block: 56px 54px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--violet);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .15em;
}
.eyebrow span { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--violet); border-radius: 50%; }
h1 { margin: 16px 0 15px; font-size: clamp(2.5rem, 5.1vw, 4.1rem); font-weight: 850; line-height: 1.23; letter-spacing: -.065em; }
h1 em { color: var(--violet); font-style: normal; }
.intro { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.9; }
.primary-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-block-start: 22px;
  padding: 12px 15px 12px 17px;
  border-radius: 9px;
  background: var(--violet);
  color: white;
  font-size: .87rem;
  font-weight: 800;
  text-decoration: none;
}
.primary-link:hover { background: #362588; }
.primary-link span { font-size: 1.03rem; }
.hero-art { overflow: hidden; border: 1px solid #c6b6ee; border-radius: 19px; background: #ebe5fc; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 620 / 430; }
.art-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #c6b6ee;
  padding: 10px 14px;
  color: #53428c;
  font: 700 .69rem ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: .09em;
}
.catalog { scroll-margin-top: 24px; border-top: 1px solid var(--line); padding-block: 29px 53px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { margin: 5px 0 0; font-size: clamp(1.56rem, 3.2vw, 2.14rem); letter-spacing: -.04em; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.filters button { min-height: 38px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 750; }
.filters button:hover { border-color: var(--violet); color: var(--violet); }
.filters button[aria-pressed="true"] { border-color: var(--violet); background: #eae4fa; color: var(--violet); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; padding: 0; margin: 0; list-style: none; }
.app-card { min-width: 0; }
.app-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.app-link[href]:hover { border-color: #aa9be1; box-shadow: 0 8px 20px #34216712; }
.cover { width: 100%; height: auto; aspect-ratio: 560 / 206; object-fit: cover; }
.card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 19px 22px 17px; }
.tag { border-radius: 999px; margin: 0; padding: 4px 10px; font-size: .7rem; font-weight: 800; }
.game-tag { background: #e5ecd8; color: #34563e; }
.study-tag { background: #ebe2fa; color: #503685; }
h3 { margin: 10px 0 4px; font-size: clamp(1.16rem, 2.35vw, 1.49rem); letter-spacing: -.03em; }
.card-description { margin: 0 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.card-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; align-self: stretch; margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; color: var(--violet); font-size: .85rem; font-weight: 850; }
.card-cta span { font-size: 1.05rem; }
.card-cta-pending { color: var(--muted); }
.app-link[href] .card-cta-pending,
.app-link:not([href]) .card-cta-active { display: none; }
.app-link[href]:hover .card-cta { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 67px; color: var(--muted); }
.footer-inner > span { font-size: .92rem; font-weight: 850; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 770px) {
  .wrap { width: calc(100% - 44px); }
  .hero { gap: 24px; padding-block: 37px; }
  .wide-only { display: none; }
  .hero-art { border-radius: 15px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .hero-art img { aspect-ratio: 1.72; object-fit: cover; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .apps { grid-template-columns: 1fr; gap: 15px; }
  .card-content { padding: 16px 17px; }
  .catalog { padding-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
