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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Soft colour behind the glass; fixed so it does not scroll or repaint with the page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 0% 0%, rgb(16 185 129 / 0.22), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, rgb(56 189 248 / 0.18), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgb(167 139 250 / 0.16), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-600);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--container));
  margin-inline: auto;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-3xl);
  background: var(--glass-bg);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  color: var(--white);
}

.skip-link:focus {
  left: 0.5rem;
}

/* The Chrome extension is desktop only; touch devices get the installable web app instead. */
@media (pointer: coarse) {
  .only-desktop {
    display: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
