:root {
  --stone-1: #fcfaf9;
  --stone-2: #f7f4f2;
  --stone-4: #e7e2e0;
  --stone-6: #d2cbc7;
  --stone-10: #6e6663;
  --stone-11: #504947;
  --stone-12: #2a2624;

  /* ui-serif is New York on Apple devices, the same face the app's display text uses */
  --font-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--stone-1);
  color: var(--stone-11);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2 {
  color: var(--stone-12);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--stone-12);
  text-decoration-color: var(--stone-6);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.site-header {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--stone-12);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.wordmark img {
  width: 28px;
  height: 28px;
}

.hero {
  padding: 18vh 0 4rem;
}

.hero .mark {
  width: 64px;
  height: 64px;
}

.hero h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}

.hero p {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.15rem;
}

/* Apple's badge must be shown unmodified, at least 40px tall, with clear space of a quarter of its height */
.app-store-badge {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.75rem 0;
}

.app-store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.prose {
  padding: 3rem 0 4rem;
}

.prose h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.prose .updated {
  margin: 0.75rem 0 2.5rem;
  color: var(--stone-10);
  font-size: 0.9rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose strong {
  color: var(--stone-12);
  font-weight: 600;
}

.not-found {
  padding: 22vh 0 4rem;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.site-footer {
  border-top: 1px solid var(--stone-4);
  background: var(--stone-2);
}

.site-footer .inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

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

.site-footer nav a:hover {
  color: var(--stone-12);
}

.site-footer small {
  color: var(--stone-10);
  font-size: 0.85rem;
}
