/* Carpet Cup — the home screen's green, the app's two voices (Futura caps, a bold serif). */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@500;600&display=swap");

:root {
  --top: #d6fcaa;
  --mid: #b2de8c;
  --low: #8cbe6c;             /* the app ends at #669a4d; lifted so footer type passes 4.5:1 */
  --shade: 31, 61, 14;            /* CarpetTable.shade #1F3D0E: shadows AND type */
  --ink: rgba(var(--shade), 0.92);
  --ink-soft: rgba(var(--shade), 0.70);
  --paper: #fbfdf6;
  --caps: Futura, "Futura PT", Jost, "Trebuchet MS", sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; }

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--top) 0%, var(--mid) 40%, var(--low) 100%);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.caps {
  font-family: var(--caps);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12.5px;
}

/* Home — the app's home screen: hole-name caps, the wordmark, the PUTT / DRIVE line */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 0 16px;
  text-align: center;
}
.meta {                          /* the hole name: Futura Medium 12.5, tracking 4.2, shade at 0.70 */
  padding-top: 56px;
  font-size: 12.5px;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}
.home main { align-self: center; width: 100%; max-width: 440px; }
.wordmark { width: 100%; height: auto; display: block; }
.way {                           /* PUTT / DRIVE: Futura Bold 20, tracking 4.8, shade at 0.82 */
  margin-top: 44px;
  font-family: var(--caps);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(var(--shade), 0.82);
}

footer.caps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: rgba(var(--shade), 0.9);   /* 4.65:1 on the bottom green */
}
footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
footer a:hover { color: rgb(var(--shade)); text-decoration: underline; text-underline-offset: 4px; }

/* Text pages — the play screen: back button top-left, the name in hole caps, words on the green */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 40px;
}
.back {                          /* the app's round back button */
  position: absolute;
  left: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: rgba(var(--shade), 0.85);
}
.back:hover { background: rgba(255, 255, 255, 0.55); }
.bar .meta { padding: 0; }
.lead {                          /* the answer, said once, like a verdict */
  margin-top: 56px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: rgb(var(--shade));
  text-wrap: balance;
}
.body { margin-top: 36px; }
.body section + section { margin-top: 30px; }
.body h2 {                       /* labels in the hole-name caps */
  font-family: var(--caps);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--shade), 0.72);
}
.body p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(var(--shade), 0.92);
}
.body a { text-underline-offset: 3px; }
.stamp { margin-top: 40px; font-size: 11.5px; letter-spacing: 0.24em; color: rgba(var(--shade), 0.6); }
.page footer { margin-top: auto; padding-top: 48px; }
