:root {
  color-scheme: light;
  --background: #ffffff;
  --ink: #000000;
  --graphite: #2e2e30;
  --smoke: #6b6b70;
  --line: #dedee1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--background);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 36px;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.masthead.compact {
  gap: 18px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
}

.compact .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

h1,
h2,
dt,
.links a,
.platforms {
  letter-spacing: 0.015em;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  line-height: 1.04;
}

h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
}

p,
li,
dd {
  font-size: 1rem;
  line-height: 1.62;
}

.platforms {
  margin: 10px 0 0;
  color: var(--smoke);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

section p:last-child,
section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 12px;
}

dl {
  margin: 0;
}

dt {
  margin-top: 22px;
  font-weight: 800;
}

dd {
  margin: 6px 0 0;
  color: var(--graphite);
}

.links {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.links a {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 30px;
  color: var(--smoke);
}

footer p {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 28px, 760px);
    padding-top: 34px;
  }

  .masthead {
    align-items: flex-start;
    gap: 16px;
  }

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

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