:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #101215;
  --muted: #656a70;
  --line: #d9d8d0;
  --surface: #ffffff;
  --accent: #2d68ff;
  --accent-soft: #e3ecff;
  --focus: #0c57e8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 44%),
    var(--bg);
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 40px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  align-content: space-between;
  gap: 72px;
}

.intro {
  display: grid;
  gap: 92px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button[aria-current="page"] {
  color: var(--accent);
}

.nav-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 4px;
}

.intro-copy {
  max-width: 640px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 14vw, 8.75rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-copy p {
  max-width: 520px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.35rem);
  line-height: 1.45;
}

.apps {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

.apps-page {
  align-content: start;
}

.apps-intro {
  gap: 88px;
}

.apps-intro h1 {
  max-width: none;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: right;
}

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

.app-link {
  min-height: 74px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.app-link:hover,
.app-link:focus-visible {
  color: var(--accent);
}

.app-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent);
  outline-offset: 6px;
  border-radius: 8px;
}

.app-name {
  min-width: 0;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 720;
  line-height: 1.05;
}

.app-path {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: right;
  transition: color 160ms ease;
}

.app-link:hover .app-path,
.app-link:focus-visible .app-path {
  color: var(--accent);
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 760px);
    padding: 26px 0 34px;
    gap: 56px;
  }

  .intro {
    gap: 72px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .topbar {
    gap: 14px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-button {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.6rem);
  }

  .intro-copy p {
    margin-top: 22px;
  }

  .section-heading,
  .app-link {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 8px;
  }

  .section-heading p,
  .app-path {
    text-align: left;
  }

  .app-link {
    gap: 8px;
  }

  .apps-intro {
    gap: 72px;
  }

  .apps-intro h1 {
    font-size: clamp(4rem, 21vw, 5.6rem);
  }
}
