@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #4d5b68;
  --border: #c9d2db;
  --link: #2d5da8;
  --focus: #2d5da8;
  --until: #f2a93b;
  --ridgewood: #2d5da8;
  --stackline: #1f6b4a;
  --poolboard: #b8432f;
  --wealth-manager: #0f4c5c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c;
    --surface: #18212a;
    --text: #e6ecf1;
    --muted: #a3b0bc;
    --border: #2e3b47;
    --link: #8fb4ec;
    --focus: #8fb4ec;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 1rem 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h2 {
  margin: 3.5rem 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.profile {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  height: 100%;
  padding: 0.75rem 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.app:hover {
  border-color: var(--tile);
}

.app--until {
  --tile: var(--until);
}

.app--ridgewood {
  --tile: var(--ridgewood);
}

.app--stackline {
  --tile: var(--stackline);
}

.app--poolboard {
  --tile: var(--poolboard);
}

.app--wealth-manager {
  --tile: var(--wealth-manager);
}

.app-art {
  display: block;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: var(--tile);
}

.app-art img {
  display: block;
  width: 100%;
  height: auto;
}

.app-name,
.app-description,
.app-access {
  padding-inline: 0.5rem;
}

.app-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-description {
  color: var(--muted);
}

.app-access {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}
