:root {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: #19191b;
  background: #f7f7f5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --ink: #19191b;
  --muted: #56565d;
  --line: #e5e5e2;
  --blue: #244bdf;
  --yellow: #ffed48;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.masthead { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 850; letter-spacing: .075em; }
.wordmark-accent { color: var(--blue); }
.wordmark-icon { width: 23px; height: 23px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; flex: none; transform: rotate(-9deg); }
.wordmark-icon i { border-radius: 2px; background: var(--ink); }
.wordmark-icon i:nth-child(2) { background: var(--yellow); border: 1px solid var(--ink); }
.header-link { display: grid; place-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: .825rem; font-weight: 680; }
.header-link:hover { background: #ececea; }

.intro { min-height: 286px; padding: 40px clamp(4px, 4vw, 55px) 39px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.intro h1 { font-size: clamp(4.2rem, 9vw, 7.4rem); font-weight: 900; line-height: .99; letter-spacing: -.089em; }
.intro h1 span { color: var(--blue); margin-left: .07em; }
.intro p { margin-top: 20px; color: var(--muted); font-size: 1rem; line-height: 1.55; font-weight: 540; }
.intro-art { position: relative; width: clamp(120px, 19vw, 207px); flex: none; aspect-ratio: 1.13; display: grid; place-items: center; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 76%; aspect-ratio: 1; transform: rotate(-12deg); }
.art-grid i { display: block; border: 1px solid #dededa; background: #ececea; border-radius: 12%; }
.art-grid i:nth-child(3) { background: #e3e9ff; border-color: #c7d4fc; }
.art-grid i:nth-child(4) { background: var(--blue); border-color: var(--blue); }
.art-grid i:nth-child(8) { background: #fff; }
.art-tile { position: absolute; width: 31%; aspect-ratio: 1; left: 42%; top: 22%; background: var(--yellow); border: 1px solid var(--ink); border-radius: 13%; box-shadow: 3px 4px 0 var(--ink); transform: rotate(14deg); }

.directory { border-top: 1px solid var(--line); padding: 24px 0 60px; scroll-margin-top: 16px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.directory-heading h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.035em; }
.directory-heading > span { color: var(--muted); font-size: .82rem; font-weight: 620; }
.app-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.app-list > li:only-child { grid-column: 1 / -1; }
.app-card { min-height: 234px; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .63fr); gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 2px 1px #19191b04, 0 10px 32px #19191b04; transition: border-color .18s, box-shadow .18s; }
.app-card:hover { border-color: #a9b8fb; box-shadow: 0 8px 25px #244bdf0e; }
.app-copy { padding: 13px 10px 11px 15px; display: flex; flex-direction: column; align-items: flex-start; }
.app-category { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 720; letter-spacing: .04em; color: var(--blue); }
.app-category::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-12deg); }
.app-copy h3 { margin-top: 9px; font-size: clamp(1.6rem, 3.1vw, 2.6rem); font-weight: 850; line-height: 1.1; letter-spacing: -.055em; }
.app-description { margin-top: 9px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.app-details { margin: 9px 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px 12px; color: #595961; font-size: .78rem; font-weight: 620; }
.app-details li + li::before { content: "·"; margin-right: 12px; color: #8c8c90; }
.launch { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 9px; background: var(--yellow); font-size: .86rem; font-weight: 760; transition: background-color .16s, transform .16s; }
.launch span { color: var(--ink); font-size: 1.075rem; line-height: 1; }
.app-card:hover .launch { transform: translateX(2px); background: #ffe12d; }
.app-cover { display: grid; place-items: center; min-width: 0; overflow: hidden; border: 1px solid #e9e9e5; border-radius: 13px; background-color: #efefec; background-image: linear-gradient(#19191b0d 1px, transparent 1px), linear-gradient(90deg, #19191b0d 1px, transparent 1px); background-size: 18px 18px; }
.app-cover img { display: block; max-width: 88%; width: 214px; height: auto; max-height: 216px; object-fit: contain; transition: transform .22s cubic-bezier(.2,.75,.3,1.1); }
.app-card:hover .app-cover img { transform: translateY(-3px) rotate(2deg); }
.app-list > li:only-child .app-card { grid-template-columns: minmax(0, 1fr) minmax(230px, .61fr); }

@media (max-width: 700px) {
  .shell { width: calc(100% - 34px); }
  .masthead { min-height: 62px; }
  .intro { min-height: 198px; padding-block: 30px; gap: 5px; }
  .intro h1 { font-size: clamp(3.3rem, 11vw, 5rem); }
  .intro p { margin-top: 13px; font-size: .9rem; }
  .intro-art { width: clamp(70px, 21vw, 130px); }
  .app-list > li:only-child .app-card { grid-template-columns: minmax(0, 1fr) minmax(117px, .64fr); }
}

@media (max-width: 440px) {
  .intro { min-height: 171px; }
  .intro p { font-size: .84rem; }
  .directory { padding-top: 18px; }
  .app-card { min-height: 229px; gap: 5px; padding: 7px; border-radius: 15px; }
  .app-copy { padding: 12px 4px 8px 8px; }
  .app-description { font-size: .85rem; }
  .app-copy h3 { font-size: 1.54rem; }
  .app-details { font-size: .72rem; gap: 3px 7px; }
  .app-details li + li::before { margin-right: 7px; }
  .app-cover { border-radius: 10px; }
  .app-cover img { max-width: 99%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
