@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #14201b;
  --muted: #56645c;
  --green: #1f5a43;
  --green-soft: #e4efe8;
  --sun: #f2b632;
  --line: #e2ddd1;
  --card: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
.brand span,
.app-name {
  font-family: 'Bricolage', 'Figtree', system-ui, sans-serif;
  letter-spacing: -0.025em;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand span {
  font-size: 1.4rem;
  font-weight: 800;
}
.brand .badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.8rem/1.2 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.lang {
  font: 600 0.95rem/1 'Figtree', system-ui, sans-serif;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.intro {
  padding: 36px 0 8px;
}
h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
}
.lead {
  max-width: 34rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.app-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0 0 56px;
  display: grid;
  gap: 14px;
}
.app-list li {
  display: flex;
}
.app {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s;
}
.app:hover {
  transform: translateY(-2px);
  border-color: #c9d8cf;
  box-shadow: 0 14px 30px -18px rgb(20 32 27 / 0.35);
}
.app img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.app-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.app-name {
  font-size: 1.3rem;
  font-weight: 800;
}
.app-desc {
  color: var(--muted);
}
.app-url {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--green);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (min-width: 760px) {
  .intro {
    padding-top: 56px;
  }
  .app-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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