/*
 * The developer website's one stylesheet. Warm paper and ink, the logo's violet as the only colour, the system's
 * own font (nothing is loaded from elsewhere: the Caddyfile's Content-Security-Policy allows only this site), and
 * a dark version that follows the visitor's setting.
 */
:root {
  --paper: #f6f3ee;
  --surface: #fffdf9;
  --ink: #161a24;
  --muted: #5d6170;
  --line: #e4dfd6;
  --accent: #6d4ee8;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --glow: rgba(139, 92, 246, 0.14);
  --shadow: 0 1px 2px rgba(22, 26, 36, 0.04), 0 12px 32px -12px rgba(22, 26, 36, 0.14);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11131b;
    --surface: #181b26;
    --ink: #f3f1ec;
    --muted: #a3a6b4;
    --line: #2a2e3d;
    --accent: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.14);
    --glow: rgba(99, 102, 241, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(60rem 32rem at 50% -8rem, var(--glow), transparent 70%), var(--paper);
  color: var(--ink);
  font:
    400 1.0625rem/1.6 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: clamp(72px, 16vh, 160px) 0 48px;
}

.hero {
  margin-bottom: clamp(56px, 10vh, 96px);
}

.wordmark {
  margin: 0 0 28px;
  line-height: 0;
}

.wordmark img {
  width: clamp(200px, 52vw, 320px);
  height: auto;
}

.lead {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.byline {
  margin: 12px 0 0;
  color: var(--muted);
}

.label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.apps {
  margin-bottom: 56px;
}

.app {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.app__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.app__name {
  margin: 2px 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.app__name a {
  text-decoration: none;
}

.app__about {
  margin: 0;
  color: var(--muted);
}

.app__get {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.pill:hover {
  background: var(--accent);
  color: #fff;
}

.pill--quiet {
  background: var(--accent-soft);
  color: var(--ink);
}

.app__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact p {
  margin: 0;
}

.contact a {
  font-weight: 600;
}

.footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .app {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .app__icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }
}
