/* Cow Pie Games: one daylight look on purpose (a farm in the sun), so every color is set explicitly.
   Layout: a farm-sign header, a deep-pasture hero with the game on an iPad, a fence line, then open-sky sections. */
:root {
  --sky: #eef7fb;
  --card: #ffffff;
  --field: #3f7f27;
  --field-deep: #2f6420;
  --grass: #6fb24a;
  --barn: #b5372d;
  --barn-deep: #8e2a22;
  --straw: #f2c14e;
  --rail: #8a6440;
  --post: #6b4a2c;
  --tag: #5a3a26;
  --ink: #2b2725;
  --ink-soft: #57504a;
  --cream: #fbf7ee;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Baloo 2", "Avenir Next Rounded", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.7rem, 1.2rem + 2.2vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.4rem + 4vw, 3.7rem);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--body); font-weight: 500; font-size: var(--step-0); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--barn); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--barn-deep); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header: like a painted farm sign */
.top { background: var(--barn); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 48px; height: 48px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.45rem; line-height: 1; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* hero */
.hero { background: var(--field); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2.5px), radial-gradient(rgba(0, 0, 0, 0.06) 3px, transparent 3.5px); background-size: 34px 30px, 52px 44px; background-position: 0 0, 17px 15px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; padding-block: 56px 64px; }
.eyebrow { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--straw); margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 18px; font-size: 1.25rem; max-width: 34ch; color: #fff; }
.nos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.nos li { background: var(--straw); color: var(--ink); font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: 1.02rem; }
.soon { margin-top: 26px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; background: var(--cream); color: var(--ink); border-radius: 14px; padding: 10px 16px; font-weight: 600; }
.soon b { font-family: var(--display); font-weight: 400; color: var(--barn); white-space: nowrap; }
.ipad { background: #1f1d1c; border-radius: 30px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #3a3532; transform: rotate(1.2deg); }
.ipad img { border-radius: 14px; width: 100%; aspect-ratio: 1400 / 973; object-fit: cover; }

/* fence line between the field and the sky */
.fence { height: 46px; background:
  linear-gradient(var(--rail), var(--rail)) 0 14px / 100% 7px no-repeat,
  linear-gradient(var(--rail), var(--rail)) 0 28px / 100% 7px no-repeat,
  repeating-linear-gradient(90deg, transparent 0 56px, var(--post) 56px 66px) 0 4px / 100% 42px no-repeat,
  linear-gradient(var(--grass), var(--grass)) 0 40px / 100% 6px no-repeat; }

section { padding-block: 64px; }
.section-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; }

/* the game */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 14px 18px 14px 12px; }
.features img { width: 76px; height: 76px; }
.features h3 { font-size: 1.15rem; }
.features p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; margin-top: 2px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 36px; }
.shots figure { margin: 0; display: grid; gap: 10px; }
.shots img { border-radius: 16px; border: 6px solid #1f1d1c; aspect-ratio: 1400 / 973; object-fit: cover; width: 100%; }
.shots figcaption { color: var(--ink-soft); font-size: 1rem; }

/* the promise: drawn like the price pads in the game */
.promise { background: var(--grass); }
.promise h2 { color: var(--ink); }
.promise .section-head p { color: var(--ink); }
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px 20px; padding: 0; margin: 0; list-style: none; }
.pads li { position: relative; border: 4px dashed rgba(255, 255, 255, 0.95); border-radius: 22px; background: rgba(255, 255, 255, 0.28); padding: 30px 20px 20px; display: grid; gap: 6px; align-content: start; }
.pads .tag { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); background: var(--tag); color: var(--cream); font-family: var(--display); font-size: 1rem; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.pads h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.pads p { color: var(--ink); font-size: 1.02rem; line-height: 1.45; }

/* about */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about .wrap { grid-template-columns: minmax(0, 1fr) auto; }
.about-text { display: grid; gap: 14px; }
.about p { font-size: 1.2rem; max-width: 60ch; }
.about-cow { width: clamp(120px, 18vw, 200px); height: auto; justify-self: center; transform: rotate(-6deg); }

/* inner pages */
.page { padding-block: 48px 72px; }
.doc { max-width: 70ch; display: grid; gap: 14px; }
.doc .meta { color: var(--ink-soft); font-size: 1rem; }
.doc h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.8rem); margin-top: 26px; }
.doc h3 { margin-top: 18px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.card { background: var(--card); border-radius: 18px; padding: 20px 22px; }
.mail { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 0.9rem + 1.3vw, 1.6rem); overflow-wrap: anywhere; }
.qa { display: grid; gap: 4px; }
.qa p { color: var(--ink-soft); }

/* footer */
.foot { background: var(--barn-deep); color: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
.foot a { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 820px) {
  .hero .wrap, .about .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .wrap { padding-block: 40px 48px; }
  .ipad { transform: none; border-radius: 22px; padding: 10px; }
  section { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
