/* Piggies: the site's three pages. Built for the Mac's full screen; the shots run the full width. */
:root {
  --navy: #161f39;
  --navy-deep: #10172b;
  --cream: #f5f5f7;
  --cream-muted: #f5f5f7cc;
  --cream-faint: #f5f5f799;
  --line: #f5f5f724;
  --orange: #ff4d00;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --gutter: clamp(32px, 4.5vw, 88px);
  --bar: 68px;
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
p, h1, h2, h3, ul, figure { margin: 0; }

/* The bar along the top */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--bar);
  display: flex; align-items: center; gap: 36px;
  padding-inline: var(--gutter);
  background: rgb(22 31 57 / 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.bar__name { font-weight: 700; font-size: 24px; letter-spacing: 0.04em; text-decoration: none; margin-right: auto; }
.bar__link { font-size: 17px; font-weight: 500; color: var(--cream-muted); text-decoration: none; }
.bar__link:hover, .bar__link[aria-current="page"] { color: var(--cream); }
.bar__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.buy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 17px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.buy:hover { background: #ffffff; }
.buy__price { font-weight: 500; opacity: 0.7; }
.buy--big { padding: 18px 36px; font-size: 22px; }
.more { font-size: 20px; font-weight: 500; color: var(--cream-muted); text-decoration: none; }
.more:hover { color: var(--cream); }

/* Page 1: the hero, full screen */
.hero { position: relative; margin-top: var(--bar); height: calc(100vh - var(--bar)); min-height: 600px; isolation: isolate; overflow: hidden; }
/* the shot has a black band 44 of its 2000 px across its top edge: it sits above the hero, out of sight */
.hero__img { position: absolute; left: 0; top: -2.2vw; width: 100%; height: calc(100% + 2.2vw); object-fit: cover; object-position: center top; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 0% 100%, rgb(22 31 57 / 0.82) 0%, rgb(22 31 57 / 0.35) 55%, transparent 100%),
    linear-gradient(to bottom, transparent 70%, rgb(22 31 57 / 0.6) 100%);
}
.hero__copy { position: absolute; left: var(--gutter); bottom: clamp(48px, 9vh, 110px); display: grid; gap: 18px; justify-items: start; }
.hero__title { font-weight: 700; font-size: clamp(80px, 7.6vw, 150px); line-height: 0.88; letter-spacing: 0.01em; }
.hero__tag { font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; color: var(--cream-muted); max-width: 34vw; text-wrap: balance; }
.hero__actions { display: flex; align-items: center; gap: 32px; margin-top: 10px; }

.story { padding: clamp(120px, 16vh, 200px) var(--gutter); display: grid; justify-items: center; gap: 0.55em; text-align: center; font-size: clamp(26px, 2.3vw, 40px); font-weight: 500; line-height: 1.35; }
.story p { max-width: 28em; text-wrap: balance; }
.story p:last-child { margin-top: 0.7em; font-style: italic; color: var(--cream); }
.story p:not(:last-child) { color: var(--cream-muted); }

.cta { display: grid; justify-items: center; gap: 26px; padding: 0 var(--gutter) clamp(120px, 15vh, 180px); text-align: center; }
.cta__line { font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; color: var(--cream-muted); }
.cta__actions { display: flex; align-items: center; gap: 32px; }

/* Pages 2 and 3: the page head */
.head { padding: calc(var(--bar) + clamp(72px, 10vh, 130px)) var(--gutter) clamp(56px, 8vh, 96px); display: grid; gap: 18px; }
.head__title { font-weight: 700; font-size: clamp(64px, 6.5vw, 120px); line-height: 0.95; }
.head__line { font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; color: var(--cream-muted); max-width: 34em; }

/* Page 2: the levels */
.level { padding-bottom: clamp(80px, 12vh, 160px); }
.level__intro { padding: clamp(48px, 7vh, 88px) var(--gutter) clamp(36px, 5vh, 56px); display: grid; gap: 12px; border-top: 1px solid var(--line); }
.level__num { font-size: 17px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }
.level__name { font-weight: 700; font-size: clamp(64px, 7vw, 128px); line-height: 0.95; }
.level__pitch { font-size: clamp(24px, 2vw, 36px); font-weight: 500; color: var(--cream-muted); }
.shot { width: 100%; height: auto; background: var(--navy-deep); }
.shots { display: grid; gap: 12px; }
.level__info {
  display: grid; grid-template-columns: 1.15fr 1fr 0.85fr; gap: clamp(40px, 5vw, 96px); align-items: start;
  padding: clamp(56px, 7vh, 88px) var(--gutter);
}

.feats { list-style: none; padding: 0; display: grid; gap: 14px; font-size: clamp(20px, 1.45vw, 26px); }
.feats li { display: flex; align-items: center; gap: 16px; }
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--cream-muted); }

.quotes { display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-start; max-width: 92%; display: grid; gap: 2px; padding: 12px 20px 14px; border-radius: 22px 22px 22px 6px; background: rgb(245 245 247 / 0.1); font-size: clamp(20px, 1.4vw, 25px); font-weight: 500; }
.bubble__who { font-size: 14px; font-weight: 500; color: var(--cream-faint); }
.bubble--wolf { align-self: flex-end; background: var(--cream); color: var(--navy); border-radius: 22px 22px 6px 22px; }
.bubble--wolf .bubble__who { color: rgb(22 31 57 / 0.6); }

.goal { display: grid; gap: 10px; padding: 22px 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: rgb(245 245 247 / 0.04); }
.goal__label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); }
.goal__label .ico { width: 20px; height: 20px; color: var(--orange); }
.goal__text { font-size: clamp(20px, 1.4vw, 25px); font-weight: 500; }

/* Page 3: Hamlet Watch, three panels, one per level */
.watch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.5vw, 64px); align-items: start; padding: 0 var(--gutter) clamp(96px, 13vh, 160px); }
.watch__level { display: grid; gap: 18px; justify-items: center; min-width: 0; width: 100%; max-width: 480px; justify-self: center; container-type: inline-size; }
.watch__name { font-size: clamp(24px, 1.9vw, 34px); font-weight: 700; }

/* The panel, built as the game draws it (GameHud.BuildWatch); --u is one of its 350 design px, so it fills its column */
.hw { --u: calc(100cqw / 350); width: 100%; padding: calc(var(--u) * 13); text-align: left; background: #140f0d; color: #fff2d9; border-radius: calc(var(--u) * 13); font-family: "Liberation Sans", Arimo, Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); }
.hw__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--u) * 36); border-bottom: 1px solid rgb(255 242 217 / 0.15); }
.hw__clock { font-size: calc(var(--u) * 30); font-weight: 700; line-height: 1; }
.hw__pips { display: flex; gap: calc(var(--u) * 6); margin-right: 2px; }
.hw__pip { width: calc(var(--u) * 15); height: calc(var(--u) * 15); border-radius: 50%; border: calc(var(--u) * 2) solid rgb(255 242 217 / 0.35); }
.hw__pip--now { border-color: #fff2d9; }
.hw__pip--pigs { border: 0; background: #ff99ad; }
.hw__msg { display: grid; grid-template-columns: calc(var(--u) * 32) minmax(0, 1fr); gap: calc(var(--u) * 9); padding-top: calc(var(--u) * 7); font-size: calc(var(--u) * 23.3); line-height: 1.15; }
.hw__msg:first-of-type { padding-top: calc(var(--u) * 9); }
.hw__head { width: calc(var(--u) * 32); height: calc(var(--u) * 32); }

/* Page 3: details, then buying */
.details { list-style: none; margin: 0 var(--gutter); padding: 0; display: flex; border: 1px solid var(--line); border-radius: 22px; }
.details li { flex: 1 1 auto; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 18px; text-align: center; font-size: clamp(18px, 1.3vw, 22px); font-weight: 500; }
.details li + li { border-left: 1px solid var(--line); }
.getit { display: grid; justify-items: center; gap: 20px; padding: clamp(96px, 13vh, 160px) var(--gutter) clamp(120px, 15vh, 180px); text-align: center; }
.getit__name { font-weight: 700; font-size: clamp(72px, 7vw, 128px); line-height: 0.9; }
.getit__price { font-size: clamp(30px, 2.4vw, 44px); font-weight: 600; }
.getit .buy { margin-top: 12px; }

/* The footer, on every page */
.foot { display: flex; align-items: baseline; gap: 40px; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: 16px; color: var(--cream-faint); background: var(--navy-deep); }
.foot__name { font-weight: 700; letter-spacing: 0.04em; color: var(--cream); }
.foot__refund { margin-right: auto; max-width: 46em; }
.foot a { color: var(--cream-muted); }

