:root {
  --paper: #f7f4ee;
  --paper-raised: #fffdf9;
  --ink: #2c2f2b;
  --ink-soft: #5b615a;
  --rule: #d9d3c7;
  --accent: #6f7d6a;
  --accent-deep: #4f5c4b;
  --radius: 14px;
  --wrap: 62rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(111, 125, 106, 0.16) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand img { border-radius: 8px; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent-deep); }

/* Hero */
.hero {
  max-width: 56rem;
  padding-top: 3.4rem;
  padding-bottom: 2.4rem;
}
.hero-copy { text-align: center; }
.eyebrow {
  margin: 1.5rem 0 0.55rem;
  color: var(--accent-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.1rem); margin: 0 0 0.35rem; }
.tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--accent-deep);
  margin: 0 0 1.2rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
.lede { max-width: 42rem; margin: 0 auto 1.75rem; color: var(--ink-soft); font-size: 1.08rem; }
.cta { margin: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(79, 92, 75, 0.25);
}
.button:hover { background: var(--accent-deep); }
.button-quiet {
  background: transparent;
  color: var(--accent-deep);
  box-shadow: none;
  border: 1px dashed var(--accent);
}

/* App tour */
.app-tour { max-width: 56rem; padding-bottom: 3rem; }
.section-heading { margin-bottom: 1.4rem; }
.section-heading .eyebrow { margin-top: 0; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.screenshots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 0.9rem; }
.screenshot-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0.55rem 0.55rem 0.8rem;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(44, 47, 43, 0.07);
}
.screenshot-card img {
  display: block;
  width: auto;
  height: 440px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 7px;
  background: #f8f5e9;
}
.screenshot-card figcaption { padding: 0.65rem 0.2rem 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.screenshot-card strong { color: var(--ink); }

/* Features */
.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding-bottom: 2rem;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Devices band */
.devices {
  text-align: center;
  padding: 3rem 1.25rem 4rem;
}
.devices h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 0.6rem; }
.devices p { max-width: 40rem; margin: 0 auto; color: var(--ink-soft); }

/* Prose pages */
.prose { max-width: 44rem; padding: 3rem 1.25rem 4rem; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-top: 0; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}
.site-footer p { margin: 0; }

@media (max-width: 34rem) {
  .hero { padding-top: 2.5rem; padding-bottom: 2rem; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { margin-top: 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .lede { margin-left: auto; margin-right: auto; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; margin: 0 auto; gap: 0.7rem; }
  .screenshot-card img { height: 380px; }
}

@media (min-width: 35rem) and (max-width: 58rem) {
  .screenshots { gap: 0.7rem; }
  .screenshot-card img { height: 390px; }
}
