/* The app's palette (Theme.swift): warm paper, deep ink, madder-rose accent. The ground is the
   app's card surface rather than its ground, so the accent passes 4.5:1 as link text. */
:root {
  --ground: #fffbf8;
  --ink: #26201f;
  --muted: #6f625f;
  --accent: #b84a5a;
  --border: #e8ddd6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1c1719;
    --ink: #f1eaec;
    --muted: #a99ea2;
    --accent: #e48896;
    --border: #3a3135;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 40rem; margin: 0 auto; padding: 2.5rem 16px 4rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.4rem; }
h2 { font-size: 1.15rem; margin: 2.2rem 0 0.5rem; }
p, li { margin: 0 0 0.8rem; }
ul { padding-left: 1.2rem; }
a { color: var(--accent); }
.crumb { margin-bottom: 1.5rem; }
.crumb a { text-decoration: none; font-weight: 600; }
.date { color: var(--muted); margin-bottom: 1.6rem; }
.links { list-style: none; padding: 0; margin-top: 1.5rem; }

/* The home page. Headings are in the serif the app uses for headwords (New York on Apple devices);
   the name is set as in the app, Athelas Bold in the accent. */
.home main { max-width: 60rem; }
.lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 2.5rem; }
.wordmark {
  font: 700 34px/1 Athelas, "Iowan Old Style", ui-serif, Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.home h1, .home h2 { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; }
.home h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.1; max-width: 20ch; margin-bottom: 1rem; }
.home h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.8rem; }
.home main > h2 { margin-top: 3rem; }
.home main > p { max-width: 38rem; }
.lede { font-size: 1.25rem; }
.store { color: var(--muted); margin-top: 1.5rem; }
.store a { display: inline-block; padding: 12px 0; }
.store img { display: block; height: 48px; width: auto; }
.store p { margin: 0; }
.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}
.intro .screen { width: 280px; }
.feature {
  display: grid;
  /* One column wide enough for two screens, so every section's text starts at the same place. */
  grid-template-columns: 436px 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
}
.feature ul, .feature p { max-width: 30rem; }
.feature > .screen { justify-self: center; }
.screens { display: flex; gap: 1rem; }
.screen {
  display: block;
  width: 260px;
  height: auto;
  border-radius: 32px;
  border: 1px solid var(--border);
}
.screens .screen { width: 210px; border-radius: 26px; }
.home footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.home footer .links { display: flex; gap: 1.5rem; margin: 0 0 0.8rem; }
@media (max-width: 960px) {
  .feature { grid-template-columns: auto 1fr; }
}
@media (max-width: 720px) {
  .lockup { margin-bottom: 1.8rem; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro .screen { width: min(260px, 72vw); }
  .feature { grid-template-columns: 1fr; gap: 1.5rem; margin: 3rem 0; }
  .screen { width: min(260px, 72vw); margin: 0 auto; }
  .screens { justify-content: center; }
  .screens .screen { width: calc(50% - 0.5rem); max-width: 210px; margin: 0; border-radius: 20px; }
}
