:root {
  --amber: #e8a33d;
  --amber-deep: #9c6a1e;
  --ink: #2e2a26;
  --slate: #57504a;
  --cream: #f5e6cc;
  --page: #fffdf9;
  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }

img { max-width: 100%; height: auto; }

/* <picture> is inline by default; as a grid item in .feature it must
   behave like the <img> it wraps or the two-column layout collapses. */
picture { display: block; }

p { max-width: var(--measure); }

a { color: var(--amber-deep); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page);
  border-bottom: 1px solid rgba(46, 42, 38, 0.1);
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--amber-deep);
}

.btn:hover { background: var(--amber-deep); color: var(--cream); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-small { padding: 0.35rem 0.75rem; font-size: 0.9375rem; }
.btn-large { padding: 0.9rem 1.75rem; font-size: 1.125rem; }

/* Layout */
main > section {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  max-width: 72rem;
  margin: 0 auto;
}

.hero { text-align: center; }
.hero p, .hero .lede { margin-inline: auto; }
.lede { font-size: 1.25rem; color: var(--slate); }
.download-meta { color: var(--slate); font-size: 0.9375rem; }

.hero-shot {
  margin-top: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(46, 42, 38, 0.15);
  box-shadow: 0 12px 32px rgba(46, 42, 38, 0.12);
}

/* App grid */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--cream);
  border: 1px solid rgba(156, 106, 30, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
}

.app-card h3 { margin-top: 0; }
.app-meta { color: var(--slate); font-size: 0.9375rem; }

/* Features */
.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature-reversed .feature-text { order: 2; }
}

.feature-shot {
  border-radius: 10px;
  border: 1px solid rgba(46, 42, 38, 0.15);
}

/* Requirements, install, FAQ */
.requirements, .install { background: var(--cream); border-radius: 12px; }
.faq dt { font-weight: 600; margin-top: 1.5rem; }
.faq dd { margin: 0.35rem 0 0; color: var(--slate); max-width: var(--measure); }

/* Download page */
.download { text-align: center; }
.download p, .download .lede { margin-inline: auto; }
.download section, .download .verify { text-align: left; max-width: var(--measure); margin-inline: auto; }

.download-facts {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35rem 1.25rem;
  justify-content: center;
  margin: 2rem 0;
  text-align: left;
}

.download-facts dt { color: var(--slate); }
.download-facts dd { margin: 0; font-weight: 600; }

.verify pre {
  background: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
}

.smartscreen {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid rgba(46, 42, 38, 0.1);
  color: var(--slate);
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.fine-print { font-size: 0.875rem; margin-inline: auto; }
