@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-400.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600.woff2") format("woff2");
}

:root {
  --bg: #090b10;
  --bg-raise: #12151c;
  --line: rgba(244, 239, 230, 0.12);
  --text: #f4efe6;
  --muted: #a39c90;
  --accent: #e4b07a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

.glow {
  position: fixed;
  inset: -20vh auto auto 50%;
  width: 80vw;
  height: 50vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(78, 110, 180, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0.4rem;
}

.wordmark {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header-mail,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.header-mail:hover,
.site-footer a:hover,
.app-link:hover {
  color: var(--accent);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.7rem, 6.4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lede {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.catalog-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0.8rem;
}

.filter[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #14120e;
}

.filter:focus-visible,
.wordmark:focus-visible,
.app-link:focus-visible,
.header-mail:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-list {
  display: flex;
  flex-direction: column;
}

.app {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.7rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.app-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: transparent;
}

.app-icon.squircle {
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.app-name {
  margin: 0.15rem 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platforms li + li::before {
  content: "·";
  margin-right: 0.4rem;
  color: var(--muted);
}

.summary {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: #d9d3c8;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.app-link:hover {
  border-color: var(--accent);
  background: rgba(228, 176, 122, 0.08);
}

.empty {
  color: var(--muted);
  padding: 2rem 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .header-mail {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .catalog-bar {
    align-items: start;
    flex-direction: column;
  }

  .app {
    grid-template-columns: 72px 1fr;
    gap: 1rem;
  }

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

  .links {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
