/* One screen: a golf ball rises from the bottom edge like a horizon, drawn on a canvas that covers the page
   (teaser.js); a header, one line of type and a footer sit over it. Light and dark follow the device unless
   the visitor picks one with the button in the header (data-theme on <html>, set by theme.js). */
:root {
  --bg: #f5f5f7; --fg: #1d1d1f; --dim: #6e6e73; --line: rgba(0, 0, 0, 0.14); --chip: rgba(255, 255, 255, 0.6);
  --accent: #1e7a46;
  --grad: linear-gradient(90deg, #1e7a46, #0b8f5a 50%, #9a6a00);
  --sun: none; --moon: block;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --fg: #f5f5f7; --dim: #9a9aa0; --line: rgba(255, 255, 255, 0.18); --chip: rgba(20, 22, 21, 0.55);
    --accent: #4fbf7a;
    --grad: linear-gradient(90deg, #9df5b6, #4fbf7a 45%, #e8bb2e);
    --sun: block; --moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --fg: #f5f5f7; --dim: #9a9aa0; --line: rgba(255, 255, 255, 0.18); --chip: rgba(20, 22, 21, 0.55);
  --accent: #4fbf7a;
  --grad: linear-gradient(90deg, #9df5b6, #4fbf7a 45%, #e8bb2e);
  --sun: block; --moon: none;
  color-scheme: dark;
}

html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased;
}
/* Only once the visitor has pressed the button, so the first paint never fades in from the wrong colour. */
:root.switched body { transition: background-color 0.8s ease, color 0.8s ease; }

.wrap {
  width: 100%; max-width: 1120px; margin-inline: auto; box-sizing: border-box;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stage { position: relative; min-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.top { position: relative; z-index: 2; padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.brand span { color: var(--dim); font-weight: 600; }
.theme {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--fg);
  border: 1px solid var(--line); border-radius: 50%; background: var(--chip);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.theme .sun { display: var(--sun); }
.theme .moon { display: var(--moon); }

.hero { position: relative; z-index: 1; flex: 1 0 auto; min-height: 500px; display: grid; place-items: center; text-align: center; }
/* --ballh is how much of the ball shows, set by teaser.js, so the type always sits above it. */
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 28px calc(var(--ballh, 240px) * 0.92); }
h1 {
  margin: 0; font-size: clamp(42px, min(8.6vw, 13vh), 108px); line-height: 1.03; font-weight: 700;
  letter-spacing: -0.035em; text-wrap: balance;
}
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.soon {
  margin: 12px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--chip);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 600; font-size: 16px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.rise { animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise:nth-child(1) { animation-delay: 0.5s; }
.rise:nth-child(2) { animation-delay: 1.6s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}

.foot { position: relative; z-index: 2; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 16px 20px; font-size: 13px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .rise, .dot { animation: none; }
}
