:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif;
  color: #30231d;
  background: #fffaf4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 12% 2%, #ffe6c7 0 90px, transparent 91px),
    radial-gradient(circle at 94% 18%, #dff6ee 0 70px, transparent 71px),
    #fffaf4;
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 28px;
}

.brand-mark {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid #30231d;
  border-radius: 24px;
  background: #ffb864;
  box-shadow: 5px 5px 0 #30231d;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-3deg);
}

.eyebrow {
  margin: 0 0 4px;
  color: #a54d25;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.lead {
  margin-bottom: 0;
  color: #6d5b52;
  font-size: 14px;
}

.blog-link {
  position: sticky;
  z-index: 10;
  top: max(8px, env(safe-area-inset-top));
  display: grid;
  gap: 4px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 2px solid #30231d;
  border-radius: 20px;
  color: inherit;
  background: #e2f4ee;
  box-shadow: 3px 3px 0 #30231d;
  text-decoration: none;
}

.blog-link span { color: #27745f; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.blog-link strong { font-size: 18px; }
.blog-link small { color: #6d5b52; }

main {
  min-height: 48vh;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

#load-status {
  margin-bottom: 0;
  color: #7f6b60;
  font-size: 12px;
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 15px;
  border: 2px solid #30231d;
  border-radius: 22px;
  color: inherit;
  background: #ffffffd9;
  box-shadow: 3px 3px 0 #30231d;
  text-decoration: none;
}

.app-card:focus-visible {
  outline: 4px solid #29866f;
  outline-offset: 3px;
}

.app-icon-frame,
.app-icon {
  width: 72px;
  height: 72px;
}

.app-icon-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #fff0d7;
}

.app-icon {
  display: block;
  object-fit: cover;
}

.app-copy {
  display: grid;
  gap: 5px;
}

.app-title {
  font-size: 17px;
}

.app-description {
  display: -webkit-box;
  overflow: hidden;
  color: #6d5b52;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-arrow {
  color: #a54d25;
  font-size: 34px;
  line-height: 1;
}

.empty-state {
  padding: 48px 24px;
  border: 2px dashed #c79771;
  border-radius: 28px;
  background: #fffdf9cc;
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 12px;
  color: #e67f3c;
  font-size: 36px;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto;
  color: #6d5b52;
  font-size: 14px;
  line-height: 1.7;
}

footer {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #e5cbb7;
  color: #806e64;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

footer p {
  margin-bottom: 2px;
}

footer a,
.privacy-page a {
  color: #8c3f1f;
}

.privacy-page {
  min-height: auto;
  padding-top: 8px;
}

.privacy-page article {
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #e5cbb7;
  border-radius: 24px;
  background: #fffdf9e8;
}

.privacy-page h1 {
  line-height: 1.2;
}

.privacy-page h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.privacy-page p,
.privacy-page li {
  line-height: 1.8;
}

@media (min-width: 620px) {
  body {
    padding-inline: 36px;
  }

  .hero {
    padding-block: 34px 42px;
  }

  .app-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app-card {
    transition: transform 140ms ease, box-shadow 140ms ease;
  }

  .app-card:hover {
    box-shadow: 5px 5px 0 #30231d;
    transform: translate(-2px, -2px);
  }
}
