:root {
  --paper: #f2ede1;
  --ink: #2b2620;
  --navy: #24344d;
  --red: #a3312a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.5;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.site-nav, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-nav .brand {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav .links, .site-footer .links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a:hover, .site-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(43,38,32,0.7);
}

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.hero p.tagline {
  font-size: 1.25rem;
  color: rgba(43,38,32,0.85);
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

.app-store {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
}

/* Apple guidelines: use the artwork unmodified, keep clear space around it
   (>= 1/10 of the badge height), don't distort or recolor it. */
.app-store-badge {
  display: inline-block;
  padding: 6px;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: 180px;
  height: 60px;
}

.app-store-badge:hover {
  opacity: 0.85;
}

.app-store p {
  font-size: 0.95rem;
  color: rgba(43,38,32,0.75);
  max-width: 36ch;
  margin: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.5rem auto;
  max-width: 640px;
}

@media (max-width: 560px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

.screenshot-grid img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-list {
  max-width: 50ch;
  margin: 2rem auto;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.story {
  max-width: 65ch;
  margin: 3rem auto;
}

.story h2 {
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.25rem;
}

.story p {
  margin-bottom: 1rem;
}

.story a {
  color: var(--red);
}

.policy {
  max-width: 65ch;
  margin: 0 auto;
}

.policy h1 {
  color: var(--navy);
}

.policy h2 {
  color: var(--navy);
  margin-top: 2rem;
}

.policy .updated {
  font-style: italic;
  color: rgba(43,38,32,0.6);
  margin-bottom: 2rem;
}
