/* Colours are the app's own (BlindPutt/UI/Theme.swift). */
:root {
  --grass: #3f9a22;
  --cream: #f6f1dc;
  --cream-lip: #c9c2a0;
  --gold: #ffd166;
  --gold-lip: #d99a1b;
  --ink: #2e1c10;
  --round: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--grass); }

body {
  margin: 0;
  color: var(--ink);
  font: 600 17px/1.5 var(--round);
  -webkit-font-smoothing: antialiased;
}

/* The whole painting, behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--grass) url(assets/background.jpg) center / cover no-repeat;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Home: one centered column. Wordmark and pitch in the sky, the phone standing on the grass. */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 4vh, 48px) 24px 0;
  text-align: center;
}

h1 { margin: 0; }
.home h1 img { display: block; width: min(72vw, 400px); height: auto; }

.pitch {
  color: #fff;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(13, 52, 110, 0.7);
}

.pitch { margin: 14px 0 22px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  white-space: nowrap;
  border-radius: 14px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 5px 0 var(--gold-lip);
  text-decoration: none;
  font-weight: 800;
}

.store-button svg { width: 20px; height: 20px; }
a.store-button:hover { background: #ffdc85; }

.phone {
  display: block;
  width: min(78vw, 330px);
  height: auto;
  aspect-ratio: 540 / 1174;
  margin-top: 40px;
  border: 10px solid var(--ink);
  border-radius: 46px;
  background: #3d8b2c;
  box-shadow: 0 10px 0 rgba(46, 28, 16, 0.3);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  padding: 40px 24px 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 0 var(--ink), 0 0 10px rgba(20, 70, 10, 0.9);
}

footer a { color: inherit; text-decoration: none; }

@media (max-width: 760px) {
  /* Narrow screens get the app's own portrait painting. */
  body::before { background-image: url(assets/background-portrait.jpg); background-position: center top; }
}

/* Privacy: a cream sheet on the grass. */
.doc { max-width: 688px; margin: 0 auto; padding: 24px 16px 64px; }
.doc header img { display: block; width: 150px; height: auto; margin: 0 auto 16px; }
.sheet {
  padding: 28px 24px 20px;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 6px 0 var(--cream-lip);
  font-weight: 500;
}
.sheet h1 { font-size: 28px; font-weight: 800; line-height: 1.1; margin: 0 0 6px; }
.sheet h2 { font-size: 17px; font-weight: 800; margin: 28px 0 6px; }
.sheet p { margin: 0 0 12px; }
.sheet .meta { opacity: 0.65; }
