:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --bg-tint: #e3ecfb;
  --text: #11151c;
  --text-secondary: #5b6472;
  --accent: #1f6fe5;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --rule: rgba(17, 21, 28, 0.1);
  --shadow:
    0 1px 2px rgba(17, 21, 28, 0.04), 0 8px 32px rgba(31, 111, 229, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090d;
    --bg-tint: #0d1a33;
    --text: #eef1f6;
    --text-secondary: #97a0ae;
    --accent: #5aa0ff;
    --card: rgba(28, 32, 40, 0.66);
    --card-border: rgba(255, 255, 255, 0.08);
    --rule: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--bg-tint), transparent),
    var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    system-ui,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

header.site a.home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

header.site a.home:hover {
  text-decoration: none;
}

header.site img {
  width: 28px;
  height: 28px;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 12px 28px rgba(31, 111, 229, 0.25));
}

.hero h1 {
  margin: 24px 0 8px;
  font:
    700 44px/1.1 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 30em;
  color: var(--text-secondary);
  font-size: 20px;
}

.card {
  margin: 0 0 24px;
  padding: 28px 28px 20px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

article h1 {
  margin: 32px 0 4px;
  font:
    700 34px/1.15 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    system-ui,
    sans-serif;
  letter-spacing: -0.015em;
}

article .updated {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
}

article h2 {
  margin: 28px 0 6px;
  font-size: 19px;
  font-weight: 600;
}

article .card > h2:first-child {
  margin-top: 0;
}

article p,
article li {
  margin: 0 0 12px;
}

article ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

footer.site {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 14px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

footer.site a {
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .card {
    padding: 22px 20px 14px;
    border-radius: 20px;
  }
}

/*
 * The follow button is the app's drawn Liquid Glass capsule
 * (modules/blueglass-glass-card, rendered by its GlassCardRenderer for a
 * 64pt-tall capsule with 48pt of room around it) laid as a nine-slice under
 * the label, so it stretches to any width.
 */
:root {
  --glass-pill: url('/glass-pill-light.png');
  --glass-pill-shadow: 0 14px 32px -10px rgba(20, 45, 100, 0.28);
  --glass-press: rgba(110, 150, 230, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-pill: url('/glass-pill-dark.png');
    --glass-pill-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
    --glass-press: rgba(255, 255, 255, 0.12);
  }
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-top: 36px;
  padding: 0 36px;
  border-radius: 32px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--glass-pill-shadow);
  transition:
    transform 0.45s cubic-bezier(0.25, 1.6, 0.4, 1),
    box-shadow 0.3s ease;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.button::before,
.button::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.button::before {
  inset: -48px;
  border-image: var(--glass-pill) 240 fill / 80px / 0 stretch;
}

.button::after {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 140% at 50% 0%,
    var(--glass-press),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: scale(1.06);
  transition-duration: 0.15s;
  box-shadow: 0 20px 40px -12px rgba(20, 45, 100, 0.34);
}

.button:active::after {
  opacity: 1;
  transition-duration: 0.1s;
}

@media (prefers-color-scheme: dark) {
  .button:active {
    box-shadow: 0 22px 44px -12px rgba(0, 0, 0, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button:active {
    transform: none;
  }
}
