:root {
  color-scheme: light dark;

  --bg: #FAF7F2;
  --ink: #1F2A2E;
  --muted: #5B6569;
  --magenta: #D1236E;
  --green: #3E7A5E;
  --rule: rgb(31 42 46 / 0.12);
  --chip: rgb(62 122 94 / 0.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: max(16px, 5vw);
}

/* Dark mode: a deeper ink ground, off-white text, and lighter accent tints
   so text keeps WCAG AA contrast. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161E21;
    --ink: #FAF7F2;
    --muted: #A9B2B5;
    --magenta: #EE5E97;
    --green: #6FB08F;
    --rule: rgb(250 247 242 / 0.14);
    --chip: rgb(111 176 143 / 0.14);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--magenta);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The wordmark: the hummingbird mark beside "alacrity". Each page's
   <picture> swaps in the light mark for dark mode. The text is ink, so the
   magenta head stays the one accent. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  display: block;
  width: auto;
  height: 0.95em;
}

/* Home */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 18vh 12vh;
}

.hero .wordmark {
  font-size: clamp(3.5rem, 16vw, 7.5rem);
  margin: 0;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 26em;
  font-size: clamp(1.1875rem, 3.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 2rem;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  background: var(--chip);
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

/* Inner pages */
.masthead {
  padding-block: 2rem 0;
}

.masthead .wordmark {
  font-size: 1.75rem;
}

main.page {
  flex: 1;
  padding-block: 3rem 4rem;
}

.page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.page ul {
  padding-left: 1.25rem;
}

.page li + li {
  margin-top: 0.35rem;
}

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

.callout {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--chip);
  border-radius: 0 8px 8px 0;
  font-size: 1.125rem;
}

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

.email {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* App pages */
.app-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.app-hero .icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgb(22 16 26 / 0.22);
}

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

.app-hero .subtitle {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}

/* An app's screenshots: a row that scrolls sideways when it's wider than the page. */
.shots {
  display: flex;
  gap: 0.875rem;
  margin: 2rem 0;
  padding: 0 0 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.shots li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 180px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgb(22 16 26 / 0.22);
}

.features {
  list-style: none;
  padding-left: 0;
}

.features li {
  position: relative;
  padding-left: 1.4em;
}

.features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--magenta);
  font-size: 0.8em;
}

/* The apps on the home page */
.apps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.app-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.app-card strong {
  display: block;
  font-size: 1.125rem;
}

.app-card span {
  color: var(--muted);
}

.app-card:hover strong {
  color: var(--magenta);
}

/* Footer */
.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

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

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