:root {
  color-scheme: light;
  --ink: #211e1a;
  --paper: #f5f0e5;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(#8a8171 .55px, transparent .55px);
  background-size: 5px 5px;
}

.page {
  position: relative;
  width: min(100%, 620px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.07em;
  text-decoration: none;
}

.brand span { color: #ee4931; font-size: 23px; letter-spacing: 0; }

.apps { margin-top: 39px; }

.apps h2 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 11px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.apps h2 span { color: #716a60; }

.app-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  margin-top: 12px;
  padding: 15px;
  color: var(--ink);
  background: #fffdfa;
  border: 2px solid var(--ink);
  border-radius: 17px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease;
}

.app-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.app-card:focus-visible, a:focus-visible { outline: 3px solid #ee4931; outline-offset: 4px; }

.app-icon {
  display: block;
  width: 80px;
  height: 80px;
  flex: none;
  object-fit: cover;
  border-radius: 19px;
  background: #e8e3da;
}

.app-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 9px; }

.app-info strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.platform { display: flex; align-items: center; gap: 5px; color: #615b54; font-size: 12px; font-weight: 700; }
.play-icon { width: 16px; height: 16px; flex: none; }

.arrow {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: #dfff43;
  font-size: 17px;
  font-weight: 800;
}

.app-card--rain .arrow { background: #a9d8ff; }
.app-card--dream .arrow { background: #ffabc6; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 42px;
  color: #696359;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

footer a { color: var(--ink); text-align: right; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (hover: hover) {
  .app-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .brand:hover, footer a:hover { color: #ee4931; }
}

@media (max-width: 370px) {
  .page { padding-inline: 16px; }
  .app-card { gap: 11px; padding: 12px; min-height: 96px; }
  .app-icon { width: 66px; height: 66px; border-radius: 15px; }
  .arrow { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
}
