:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1b1d27;
  --muted: #5b6070;
  --border: #e2e4ec;
  --accent: #34449a;
  --accent-soft: #eef0fa;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* The navy is the app icon's sky. */
    --bg: #090c1b;
    --surface: #11152b;
    --text: #e8eaf2;
    --muted: #a0a6bb;
    --border: #252a45;
    --accent: #a9b8ff;
    --accent-soft: #1a2044;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* Content */

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3125rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

.meta {
  font-size: 0.9375rem;
  color: var(--muted);
}

.callout {
  background: var(--accent-soft);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.email {
  font-size: 1.1875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* App identity block and cards */

.app-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-hero h1 {
  margin: 0;
}

.app-hero p {
  margin: 0.25rem 0 0;
}

.app-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.app-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.app-card .app-icon {
  width: 64px;
  height: 64px;
}

.app-card h3 {
  margin: 0;
  font-size: 1.1875rem;
}

.app-card p {
  margin: 0.25rem 0 0.5rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.25rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.75rem;
  }

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