/*
  Firstfruits website stylesheet.
  Plain CSS, no build step, no external requests. Colour tokens follow the
  app's own design system: warm gold accent, off-white parchment ground,
  a system serif for display type. Wheat, not laurel.
*/

:root {
  --parchment: #F8F2E6;
  --surface: #FFFBF2;
  --wheat: #C08A2E;
  --wheat-text: #8F5D18; /* darker gold, used for body-sized text/links so it clears 4.5:1 on parchment */
  --wheat-ink: #2A241D;  /* text colour to place on top of a wheat-filled button */
  --ink: #2A241D;
  --soft-ink: #6E6255;
  --border: rgba(42, 36, 29, 0.14);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --parchment: #141109;
    --surface: #1F1A12;
    --wheat: #D9A544;
    --wheat-text: #D9A544; /* the given dark-mode wheat already clears 4.5:1 on both dark surfaces */
    --wheat-ink: #141109;
    --ink: #F3EBDA;
    --soft-ink: #A79A88;
    --border: rgba(243, 235, 218, 0.16);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--wheat-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--ink);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus {
  color: var(--wheat-text);
}

.wheat-mark {
  color: var(--wheat);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--soft-ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--wheat-text);
  text-decoration: underline;
}

/* Main content rhythm */

main {
  padding: 48px 0 64px;
}

main .wrap > * + * {
  margin-top: 40px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 0 0 16px;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

.lede {
  font-size: 1.1rem;
  color: var(--soft-ink);
}

section + section {
  padding-top: 8px;
}

/* Hero */

.hero {
  text-align: left;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wheat-text);
  margin-bottom: 10px;
}

/* App Store button */

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 22px;
  background: var(--wheat);
  color: var(--wheat-ink);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
}

.store-button:hover,
.store-button:focus {
  color: var(--wheat-ink);
  text-decoration: underline;
}

.store-button .store-button-sub {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Screenshots */

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.shot-frame {
  margin: 0;
  aspect-ratio: 750 / 1630;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Promise list */

.promises {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.promises ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.promises li {
  padding-left: 30px;
  position: relative;
}

.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--wheat);
  border-radius: 50%;
}

/* FAQ */

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  margin-top: 0;
}

/* Callout box, used on the privacy page */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--wheat);
  border-radius: 8px;
  padding: 18px 22px;
}

.meta {
  color: var(--soft-ink);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--soft-ink);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--wheat-text);
}

/* Small screens down to 360px */

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .promises {
    padding: 20px;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
