/* wooflords.com v1. Tokens come from the game (Palette.cs, HudLayouts.cs). */
@font-face { font-family: "Jost"; src: url("fonts/jost-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --page: #F6EBD7;
  --panel: #FFF4DF;
  --leather: #6E3B22;
  --leather-dark: #4A2716;
  --stitch: #EDCB8E;
  --ink: #3A2418;
  --ink-soft: #6F513B;
  --gold: #F2B630;
  --gold-dark: #B57C16;
  --cream-soft: #E9D3B4;
  --gutter: 20px;
  --max: 960px;
  --ease-pop: cubic-bezier(.2, .9, .25, 1.15);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Stitched leather: the game's HUD material ---------- */
.leather {
  position: relative;
  background: var(--leather);
  color: var(--panel);
  box-shadow: 0 6px 0 var(--leather-dark);
}
.leather::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--stitch);
  border-radius: inherit;
  opacity: .9;
  pointer-events: none;
}

/* ---------- Hero: drawn wordmark over a scene from the game, HUD-style bar under it ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wordmark {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 0;
  right: 0;
  width: min(calc(100% - 24px), 420px);
  margin: 0 auto;
  animation: drop .8s var(--ease-pop) .1s both;
}
.wordmark img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(58, 36, 24, .18)); }
.hero-art {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: clamp(440px, calc(100svh - 150px), 520px);
  overflow: hidden;
  background: #9EC24E;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
.bar { z-index: 1; }
.bar {
  width: calc(100% - 24px);
  max-width: 860px;
  margin-top: -60px;
  border-radius: 26px;
  padding: 22px 26px 24px;
  text-align: center;
  animation: rise .7s var(--ease-pop) .3s both;
}
.bar::after { border-radius: 18px; }
.tagline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.75rem, 7.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.bar-meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px 14px;
  font-size: 1rem;
  color: var(--cream-soft);
}
.soon { color: var(--gold); }
.bar-meta .dot { display: none; }
@media (min-width: 520px) { .bar-meta .dot { display: block; } .bar-meta { flex-direction: row; } }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--stitch); opacity: .7; }

@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes drop { from { transform: translateY(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sections ---------- */
section { padding: 64px 0 0; }
h2 {
  margin: 0 0 16px;
  font-weight: 300;
  font-size: clamp(1.875rem, 5.6vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0 0 16px; text-wrap: pretty; }
.lede { max-width: 34em; }

.facts {
  max-width: 34em;
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 2px dashed #D9C3A0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.facts li { display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; color: var(--ink-soft); line-height: 1.3; }
.facts b { font-weight: 300; font-size: 2.5rem; line-height: 1; color: var(--ink); }

.pack ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pack li {
  background: var(--panel);
  border-radius: 24px;
  padding: 4px 16px 18px;
  box-shadow: 0 2px 0 #E6D3B3;
}
.pack img { width: 100%; max-width: 240px; margin: 0 auto; }
.pack h3 { margin: 0 0 2px; font-weight: 400; font-size: 1.1875rem; line-height: 1.3; }
.pack p { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--ink-soft); }
.pack li:hover img { animation: hop .45s var(--ease-pop); }
@keyframes hop { 40% { transform: translateY(-8px); } }

/* ---------- Gallery ---------- */
.gallery-head p { color: var(--ink-soft); max-width: 30em; }
.shots {
  list-style: none;
  margin: 8px calc(-1 * var(--gutter)) 0;
  padding: 8px var(--gutter) 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 280px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.frame {
  margin: 0;
}
.frame .screen {
  border: 7px solid var(--leather);
  border-radius: 34px;
  overflow: hidden;
  background: var(--leather);
  box-shadow: 0 18px 36px rgba(74, 39, 22, .18), 0 2px 0 var(--leather-dark);
  aspect-ratio: 375 / 667;
}
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.frame figcaption { margin: 14px 4px 0; font-size: 1.0625rem; line-height: 1.35; }
.frame figcaption span { display: block; color: var(--ink-soft); font-size: .9375rem; margin-top: 2px; }

/* ---------- Say hello ---------- */
.hello {
  margin-top: 36px;
  border-radius: 28px;
  padding: 40px 30px 42px;
}
.hello::after { border-radius: 20px; }
.hello h2 { color: var(--panel); }
.hello p { color: var(--cream-soft); max-width: 32em; }
.hello .mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: clamp(1.375rem, 5.6vw, 1.875rem);
  font-weight: 300;
  color: var(--panel);
  text-decoration-color: var(--stitch);
  overflow-wrap: anywhere;
}
.hello .mail:hover { text-decoration-color: var(--gold); }
.hello :focus-visible { outline-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 48px; padding-bottom: 40px; font-size: .9375rem; color: var(--ink-soft); }
.site-footer p { margin: 0 0 8px; max-width: 46em; }
.site-footer .owner { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.site-footer nav a, .site-footer nav span { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Inner pages (privacy, 404) ---------- */
.page-top { padding-top: 24px; }
.mini-mark { display: inline-block; padding: 4px 0; }
.mini-mark img { width: 200px; height: auto; }
.doc { padding: 48px 0 0; max-width: 40em; }
.doc h1 { margin: 0 0 8px; font-weight: 300; font-size: clamp(2.25rem, 8vw, 3.25rem); line-height: 1.1; letter-spacing: -.01em; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; font-weight: 400; letter-spacing: 0; }
.doc .updated { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.lost { padding: 56px 0 8px; text-align: center; }
.lost img { width: 180px; margin: 0 auto 8px; }
.lost h1 { text-wrap: balance; margin: 0 0 10px; font-weight: 300; font-size: clamp(2.25rem, 8vw, 3.25rem); line-height: 1.1; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; margin-top: 8px;
  background: var(--leather); color: var(--panel); text-decoration: none;
  border-radius: 999px; box-shadow: 0 4px 0 var(--leather-dark);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.button:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--leather-dark); }
.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--leather-dark); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.1875rem; }
  .hero { padding: 24px var(--gutter) 0; }
  .hero-art { width: 100%; max-width: 960px; height: auto; aspect-ratio: 8 / 5; border-radius: 32px; }
  .hero-art img { object-position: 50% 50%; }
  .wordmark { top: 44px; width: min(calc(100% - 120px), 600px); }
  .bar { margin-top: -64px; }
  .bar-meta { font-size: 1.0625rem; }
  section { padding-top: 96px; }
  .shots { margin: 8px 0 0; padding: 8px 0 24px; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 24px; }
  .shots .frame { max-width: 280px; }
  .pack ul { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pack li { padding: 8px 22px 24px; }
}
@media (min-width: 960px) {
  .about h2, .about .lede { max-width: 30em; }
  .hello-section { padding-top: 64px; }
  .shots { gap: 40px; }
  .gallery { display: grid; grid-template-columns: 1fr; }
  .hello { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 48px; padding: 52px 56px; }
  .hello p { margin: 0; }
  .site-footer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
