/* bogeybuddies.golf: the game's own Sunday-strip look (ink outlines, flat colour, one hard shadow, chunky press
   buttons), with its own typeface, Grandstander (OFL, self-hosted). Colours are the game's tokens (prototype-swipe index.html). */
@font-face { font-family: "Grandstander"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/assets/fonts/grandstander-latin.woff2") format("woff2"); }

:root {
  --ink: #2a1a10; --paper: #fbf0d6; --cream: #fff6dc; --sun: #f6c638; --hot: #e8542f; --cool: #3b7fc4; --go: #62d06a;
  --sky1: #5f9ed4; --sky2: #cfe5ea; --grass: #5f9636; --grass2: #7fae56; --dash: #3f7436; --dusk: #2d2350;
  --font: "Grandstander", "Trebuchet MS", sans-serif;
  --shadow: 0 5px 0 var(--ink);
  --outline: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 1.5px 1.5px 0 var(--ink),
    -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink), 0 4px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.5 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 900; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); padding: 8px 12px; border: 3px solid var(--ink); z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--cream); border-bottom: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 20px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.top nav { display: flex; gap: 18px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 16px; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--hot); }
@media (max-width: 720px) { .top nav { display: none; } }

/* buttons that press */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; font: 900 18px/1 var(--font);
  text-decoration: none; border: 3px solid var(--ink); border-radius: 14px 11px 15px 12px; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-cool { background: var(--cool); color: var(--cream); text-shadow: 0 2px 0 var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2) 78%); padding: 32px 0 0; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; display: block; width: 160px; height: 46px; background: #fff; border-radius: 40px; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; left: 24px; top: -34px; }
.cloud::after { width: 54px; height: 54px; left: 78px; top: -24px; }
.c1 { left: 6%; top: 60px; } .c2 { right: 8%; top: 120px; transform: scale(.8); } .c3 { left: 44%; top: 30px; transform: scale(.6); }
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 40s linear infinite alternate; } .c2 { animation-duration: 55s; } .c3 { animation-duration: 70s; }
  @keyframes drift { to { translate: 60px 0; } }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: end; }
.lockup { width: min(380px, 80%); filter: drop-shadow(0 6px 0 rgba(27,16,48,.3)); margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); color: var(--cream); text-shadow: var(--outline); letter-spacing: .005em; margin-bottom: 18px; }
.lede { font-size: 19px; max-width: 34em; margin: 0 0 22px; background: var(--cream); border: 3px solid var(--ink); border-radius: 6px 10px 8px 12px;
  box-shadow: 4px 4px 0 var(--ink); padding: 12px 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.turf { position: relative; height: 56px; background: repeating-linear-gradient(90deg, var(--grass) 0 80px, var(--grass2) 80px 160px); border-top: 4px solid var(--ink); margin-top: -28px; }

/* store block: hidden until stores.js has a URL */
.stores[hidden] { display: none !important; }
.stores { margin: -18px 0 40px; }
.stores-label { margin: 0 0 8px; font-weight: 900; color: var(--cream); text-shadow: var(--outline); font-size: 18px; }
.stores-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores-row a { display: block; }
.stores-row img { width: auto; }
.stores-row .b-apple img { height: 52px; }
.stores-row .b-google img { height: 76px; margin: -12px -10px; }

/* phones */
.phone { margin: 0; border: 4px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: 6px 8px 0 rgba(42,26,16,.85); }
.phone img { width: 100%; }
.phone-hero { position: relative; z-index: 2; width: min(330px, 100%); justify-self: center; margin-bottom: -20px; transform: rotate(2deg); }
.phones { display: grid; gap: 24px; margin-top: 32px; }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-left: auto; margin-right: auto; }
.phones.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-left: auto; margin-right: auto; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(2deg); margin-top: 28px; }

/* bands */
.band { padding: 72px 0; border-top: 4px solid var(--ink); }
.band-paper { background: var(--paper); }
.band-grass { background: var(--grass); color: var(--cream); }
.band-dusk { background: var(--dusk); color: var(--cream); }
.band-sun { background: var(--sun); }
.kicker { display: inline-block; margin: 0 0 12px; padding: 4px 12px 5px; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--hot); color: var(--cream); border: 3px solid var(--ink); border-radius: 4px 8px 5px 9px; transform: rotate(-1.5deg); }
.band h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; }
.band-grass h2, .band-dusk h2 { color: var(--cream); text-shadow: var(--outline); }
.sub { max-width: 44em; font-size: 18px; margin: 0 0 8px; }
.sub.small { font-size: 16px; margin-top: 20px; }
.fine { font-size: 15px; margin: 36px 0 0; opacity: .85; text-align: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split .phones { margin-top: 0; }
.split-rev { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.split-rev .phone { max-width: 320px; justify-self: center; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 70px; background: var(--cream); border: 3px solid var(--ink); border-radius: 10px 6px 12px 8px; box-shadow: 4px 4px 0 var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 42px; height: 42px; display: grid; place-items: center;
  font: 900 24px/1 var(--font); background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; }
.steps b { display: block; font-size: 20px; font-weight: 900; }

.note-card { margin-top: 40px; padding: 20px 22px; background: var(--go); border: 3px solid var(--ink); border-radius: 12px 8px 14px 10px; box-shadow: 5px 5px 0 var(--ink); max-width: 760px; }
.note-card h3 { font-size: 26px; margin-bottom: 6px; }
.note-card p { margin: 0; }

.courses { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.courses li { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px 12px 9px 11px; box-shadow: 3px 3px 0 var(--ink); padding: 10px 12px; }
.courses b { display: block; font-size: 18px; font-weight: 900; }
.courses span { font-size: 14px; }

.modes { display: grid; gap: 14px; margin: 8px 0 18px; }
.mode { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--sun); padding: 14px 16px; }
.mode h3 { font-size: 22px; margin-bottom: 4px; }
.mode p { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--cream); border: 3px solid var(--ink); border-radius: 10px 7px 12px 9px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; }
.card:nth-child(3n+1) { border-top: 10px solid var(--cool); }
.card:nth-child(3n+2) { border-top: 10px solid var(--hot); }
.card:nth-child(3n) { border-top: 10px solid var(--go); }
.card h3 { font-size: 22px; margin-bottom: 4px; }
.card p { margin: 0; font-size: 16px; }

.cast { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.cast li { text-align: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 4px 10px; box-shadow: 3px 3px 0 var(--ink); }
.cast img { width: 100%; max-width: 110px; aspect-ratio: 228 / 282; object-fit: contain; margin: 0 auto 4px; }
.cast b { display: block; font-size: 15px; font-weight: 900; line-height: 1.15; }
.cast span { display: block; font-size: 13px; line-height: 1.2; }

.foot { background: var(--ink); color: var(--cream); padding: 32px 0 40px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-grid > div { display: flex; align-items: center; gap: 12px; }
.foot-grid img { width: 40px; height: 40px; object-fit: contain; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--sun); }

@media (max-width: 900px) {
  .hero-grid, .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .phone-hero { width: min(280px, 78%); }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .band { padding: 52px 0; }
  .lede { font-size: 17px; }
  .phones.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phones.three .phone, .phones.two .phone { border-width: 3px; border-radius: 18px; box-shadow: 3px 4px 0 rgba(42,26,16,.85); }
  .phones.two { gap: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-left: 64px; }
  .btn { flex: 1 1 auto; }
}
