/* Grizzly Moose Games — inked field sketchbook
   Layout: paper ground, black ink outlines and flat spot colours printed slightly
   off-register, taken from the hand-drawn moose logo. One look, light only. */

:root {
  color-scheme: light;
  --paper: #f0eee6;
  --paper-seen: #edeae2; /* paper as it reads under the grain; matches browser chrome to the page */
  --paper-2: #e5e2d4;
  --ink: #1c1a16;
  --ink-soft: #46423a;
  --spruce: #2e5a3c;
  --spruce-light: #7fa67a;
  --mountain: #a9bdb8;
  --snow: #fbfaf4;
  --antler: #d9bf93;
  --rust: #a4572a;

  --display: "Londrina Solid", "Arial Black", Impact, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --scene: clamp(220px, 32vw, 400px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper-seen); }

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Paper grain. Not position: fixed, or iOS Safari tints its bars from this transparent layer */
body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

.defs { position: absolute; width: 0; height: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--rust) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 0.95; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(3.4rem, 10vw, 7.2rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 400; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

/* Spot colour printed a hair off the black, like the logo */
.misprint { text-shadow: 0.05em 0.045em 0 var(--antler); }

/* Hand-drawn squiggle under section headings */
.squiggle::after {
  content: ""; display: block; width: 64px; height: 6px; margin-top: 16px;
  background: var(--rust); border-radius: 3px; transform: rotate(-1.5deg);
}

/* Hand-inked outline: the border lives on a pseudo-element run through the wobble filter */
.ink { position: relative; }
.ink::before {
  content: ""; position: absolute; inset: -2px; pointer-events: none; z-index: 2;
  border: 2.5px solid var(--ink); border-radius: 5px 9px 6px 10px;
  filter: url(#wobble);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.brand:hover { color: var(--ink); }

.nav { display: flex; gap: 22px; }
.nav a { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--rust); }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--rust); }

/* ---------- Home hero: the moose peeks out of the treeline ---------- */
.hero { position: relative; isolation: isolate; padding-block: 36px var(--scene); }
.hero .wrap { position: relative; z-index: 3; }
.scene-back { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: url(#wobble-soft); }
.scene-front { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(var(--scene) * 0.62); z-index: 2; filter: url(#wobble-soft); }
.hero h1 { max-width: 12ch; }
.hero-copy { margin-top: 28px; font-size: 1.15rem; max-width: 56ch; color: var(--ink); }

.kicker { font-style: italic; color: var(--rust); margin-bottom: 14px; }
.spotlight { display: block; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Sub-page heroes ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: 40px 190px; }
.page-hero .lede { margin-top: 24px; font-size: 1.15rem; color: var(--ink); }
.strip { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; filter: url(#wobble-soft); }

/* ---------- Buttons & forms ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.3rem; line-height: 1;
  color: var(--paper); background: none; border: 0;
  padding: 15px 26px 13px; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--spruce); border: 2.5px solid var(--ink); border-radius: 6px 10px 7px 9px;
  filter: url(#wobble) drop-shadow(3px 3px 0 var(--ink));
}
.btn:hover { color: var(--paper); transform: translate(-1px, -2px) rotate(-0.6deg); }
.btn:active { transform: translate(1px, 1px); }
.btn-paper { color: var(--ink); }
.btn-paper::before { background: var(--snow); }
.btn-paper:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(70px, 10vw, 120px); }
.section-head { margin-bottom: 48px; max-width: 700px; }
.section-head p { margin-top: 22px; font-size: 1.08rem; }

/* Services: three columns split by hand-ruled lines */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.services--4 { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
.svc { position: relative; padding: 4px 30px 8px; min-width: 0; }
.svc + .svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-left: 2px solid var(--ink); filter: url(#wobble);
}
.services > .svc:first-child, .services--4 > .svc:nth-child(odd) { padding-left: 0; }
.services--4 > .svc:nth-child(odd)::before { display: none; }
@media (max-width: 900px) {
  .services, .services--4 { grid-template-columns: 1fr; row-gap: 0; }
  .svc, .services--4 > .svc:nth-child(n) { padding: 32px 0; }
  .svc + .svc::before, .services--4 > .svc:nth-child(odd)::before { display: block; top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 2px solid var(--ink); }
  .services > .svc:first-child { padding-top: 0; }
}
.svc-icon {
  width: 68px; height: 68px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--antler);
}
.svc-icon svg { width: 42px; height: 42px; color: var(--ink); filter: url(#wobble); }
.svc h3 { margin-bottom: 10px; }
.svc .more { display: inline-block; margin-top: 12px; font-style: italic; }

.after-note { margin-top: 56px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.after-note p { min-width: 0; }

/* Spruce band with a hand-drawn top edge */
.band { position: relative; background: var(--spruce); color: var(--paper); margin-top: 40px; }
.band-edge { position: absolute; left: 0; right: 0; top: -26px; width: 100%; height: 28px; display: block; filter: url(#wobble); }
.band h2, .band p { color: var(--paper); }
.band p { opacity: 0.92; }
.band a { color: var(--paper); text-decoration-color: var(--antler); }
.band a:hover { color: var(--antler); }
.band .svc + .svc::before { border-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.crew { display: flex; justify-content: center; flex-wrap: wrap; padding-left: 18px; }
.crew img {
  width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); margin-left: -18px;
  border-radius: 50%; object-fit: cover; border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Games ---------- */
.games { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 104px); }
.game { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.game > * { min-width: 0; }
.game:nth-child(even) .game-media { order: 2; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } .game:nth-child(even) .game-media { order: 0; } }
.game-media { position: relative; display: block; }
.game-media > img, .art-stack > img:first-child { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.art-stack { position: relative; }
.art-logo { position: absolute; left: 6%; bottom: 8%; width: 48%; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6)); }
.game h3 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 900; margin-bottom: 6px; }
.game .status { font-style: italic; color: var(--rust); margin-bottom: 16px; }
.game .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.values > div { min-width: 0; position: relative; padding-top: 22px; }
.values h3 { margin-bottom: 10px; }
.values > div::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 12px; background: var(--antler); border-radius: 3px; transform: rotate(-2deg); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 48px 32px; }
.member { display: flex; flex-direction: column; min-width: 0; }
.member-photo { margin-bottom: 20px; }
.member-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 6px; }
.member h3 { font-weight: 900; margin-bottom: 2px; }
.member .role { font-style: italic; color: var(--rust); margin-bottom: 12px; }
.member p { font-size: 0.97rem; }
.member .socials { margin-top: auto; padding-top: 16px; }

.join-box { padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--snow); }
.join-box > * { min-width: 0; }
.join-box h2 { margin-bottom: 18px; }
@media (max-width: 760px) { .join-box { grid-template-columns: 1fr; } }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.socials a::before { border-radius: 50%; }
.socials a:hover { color: var(--rust); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact p { max-width: 60ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0; }
.contact-email { font-size: 1.1rem; overflow-wrap: anywhere; }
.legal { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 0.95rem; }

/* ---------- Footer: treeline on a paper ground ---------- */
.site-footer { position: relative; isolation: isolate; padding-top: 120px; }
.site-footer .strip { top: 0; bottom: auto; }
.footer-base { color: var(--ink); padding-block: 18px calc(36px + env(safe-area-inset-bottom)); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-base small { font-size: 0.9rem; font-style: italic; opacity: 0.75; }
.band a.btn-paper, .band a.btn-paper:hover { color: var(--ink); }

/* ---------- Studio lockup ---------- */
.brand .lockup { width: auto; height: 62px; }
.site-header.is-home .brand { visibility: hidden; }
.footer-base .brand .lockup { height: 54px; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 44px); justify-items: center; }
.hero-grid > * { min-width: 0; }
.hero .hero-title { margin: 0; max-width: none; }
.hero-title img { width: 100%; max-width: 280px; }
.feature { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; margin-bottom: clamp(8px, 3vw, 40px); }
.feature > * { min-width: 0; }
.hero-text .hero-copy { margin-top: 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .hero-title img { max-width: 220px; }
}
