/* Sawmill Siege - the website. Same fonts, palette and ink as the game. */
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap;
  src: url(fonts/lilita-one-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap;
  src: url(fonts/lilita-one-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0c140c;
  --forest: #142414;
  --moss: #1d331b;
  --wood: #6b4423;
  --wood-dark: #3c2414;
  --wood-light: #9a6534;
  --gold: #ffd24a;
  --gold-deep: #7a4a00;
  --cyan: #7df3ff;
  --cream: #f3e6c8;
  --muted: #c3b79c;
  --ink: #2a160a;
  --radius: 18px;
  --display: 'Lilita One', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* the game's title lettering */
.logo {
  font-family: var(--display); color: var(--gold); letter-spacing: 2px; line-height: 0.95; margin: 0;
  text-shadow: 0 4px 0 var(--gold-deep), 0 10px 28px rgba(0, 0, 0, 0.75);
}
h2 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; line-height: 1.05; margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px); color: var(--gold); text-shadow: 0 3px 0 var(--gold-deep); }
h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.6px; margin: 0 0 6px; font-size: 22px; color: var(--cream); }
.kicker { font: 800 13px/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 18px; max-width: 620px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 400 19px/1 var(--display); letter-spacing: 0.6px; padding: 15px 24px; border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-play { background: linear-gradient(180deg, #59e07a, #2fb352); color: #0b2a12;
  box-shadow: 0 5px 0 #1d7a35, 0 12px 26px rgba(0, 0, 0, 0.45); }
.btn-play:hover { box-shadow: 0 7px 0 #1d7a35, 0 16px 30px rgba(0, 0, 0, 0.5); }
.btn-play svg { width: 22px; height: 22px; }
.btn-ghost { color: var(--cream); background: rgba(12, 20, 12, 0.55); border: 2px solid rgba(243, 230, 200, 0.35);
  backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* top bar */
.topbar { position: absolute; inset: 0 0 auto; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream);
  font: 400 20px/1 var(--display); letter-spacing: 1px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 800; font-size: 15px; opacity: 0.85;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.nav a:hover { opacity: 1; color: var(--gold); }

/* hero: the key art, title in its sky */
.hero {
  position: relative; min-height: min(100svh, 62vw); display: flex; align-items: flex-start;
  background: var(--night) url(assets/hero-bg.jpg) center 30% / cover no-repeat; isolation: isolate; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.72) 0%, rgba(8, 12, 22, 0.18) 34%, rgba(12, 20, 12, 0) 60%, var(--night) 100%); }
.hero-copy { position: relative; text-align: center; padding: clamp(96px, 12vw, 140px) 0 64px; margin-inline: auto; width: min(900px, 100% - 32px); }
/* a soft pool of shade so the copy reads over the busy art */
.hero-copy::before { content: ''; position: absolute; inset: 18% -12% 4%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 12, 22, 0.66), rgba(8, 12, 22, 0.38) 60%, rgba(8, 12, 22, 0)); }
.hero .logo { font-size: clamp(54px, 9vw, 112px); }
.tagline { font: 400 clamp(20px, 2.6vw, 30px)/1.2 var(--display); color: var(--cyan); letter-spacing: 1.5px;
  margin: 14px 0 10px; text-shadow: 0 3px 0 #0a4c60, 0 0 18px rgba(125, 243, 255, 0.35); }
.hero .lede { margin: 0 auto 26px; color: var(--cream); font-weight: 600; text-shadow: 0 1px 2px #000, 0 2px 10px rgba(0, 0, 0, 0.9); }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

/* trailer, in a timber frame */
.trailer { padding-top: 24px; padding-bottom: clamp(32px, 4vw, 56px); }
.frame {
  position: relative; border-radius: 22px; padding: 12px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood)); border: 3px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.frame::before, .frame::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #d9d9d9; box-shadow: 0 0 0 2px var(--ink); transform: translateY(-50%); }
.frame::before { left: -1px; } .frame::after { right: -1px; }
.frame video, .frame img { width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.trailer-head { text-align: center; margin-bottom: 28px; }
.trailer-head .lede { margin-inline: auto; }

/* day / night split */
.cycle { background: linear-gradient(180deg, var(--night), var(--forest)); }
.cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.half { position: relative; overflow: hidden; border-radius: var(--radius); padding: 34px 32px 0; min-height: 360px;
  border: 2px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; }
.half.day { background: radial-gradient(120% 90% at 80% 0%, #3c6a2a 0%, #1f3a18 55%, #152a12 100%); }
.half.night { background: radial-gradient(120% 90% at 20% 0%, #2a3560 0%, #171d3a 55%, #10142a 100%); }
.half p { color: var(--muted); max-width: 380px; margin: 0; }
.half ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.half li { font-weight: 800; color: var(--cream); padding-left: 18px; position: relative; }
.half li::before { content: '•'; color: var(--gold); position: absolute; left: 2px; }
.half .stage { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; padding-top: 22px; }
.half .stage img { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.day .stage img:first-child { height: 150px; }
.day .stage img:last-child { height: 120px; }
.night .stage { justify-content: flex-end; }
.night .stage img { height: 118px; }
.night .stage img.big { height: 150px; }

/* what you build */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.card {
  background: linear-gradient(180deg, rgba(154, 101, 52, 0.22), rgba(107, 68, 35, 0.12));
  border: 2px solid rgba(154, 101, 52, 0.45); border-radius: var(--radius); padding: 18px 18px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card img { height: 128px; width: auto; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* the raiders, walking up a road */
.raiders { background: linear-gradient(180deg, var(--forest), #10142a 70%, var(--night)); overflow: hidden; }
.road { position: relative; margin-top: 40px; padding: 0 0 26px; }
.road::before { content: ''; position: absolute; left: calc(50% - 50vw - 40px); right: calc(50% - 50vw - 40px); bottom: 0; height: 120px; z-index: 0;
  background: linear-gradient(180deg, #8a6a40, #6e5230); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: skewY(-2deg); transform-origin: left; opacity: 0.9; }
.lineup { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.raider { text-align: center; }
.raider img { height: 150px; width: auto; margin: 0 auto -10px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.55)); animation: bob 2.6s ease-in-out infinite; }
.raider:nth-child(2) img { animation-delay: -0.5s; } .raider:nth-child(3) img { animation-delay: -1s; }
.raider:nth-child(4) img { animation-delay: -1.5s; } .raider:nth-child(5) img { animation-delay: -2s; }
.raider.boss img { height: 190px; }
.raider .tag { position: relative; margin-top: 18px; background: rgba(12, 20, 12, 0.88); border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 10px 10px 12px; }
.raider h3 { font-size: 19px; margin: 0; }
.raider p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.shot { position: relative; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); cursor: zoom-in;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); background: #000; padding: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 12px; bottom: 12px; font: 400 17px/1 var(--display); letter-spacing: 0.6px;
  background: rgba(12, 20, 12, 0.82); color: var(--cream); padding: 8px 12px; border-radius: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px;
  background: rgba(4, 6, 4, 0.92); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 12px; border: 3px solid var(--ink); }

/* closing call */
.final { text-align: center; padding-bottom: 90px; }
.final .stage { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.final .stage img { height: 120px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.final .stage img.hero-sprite { height: 150px; }
.final .lede { margin: 0 auto 26px; }

/* footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 28px 0 36px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--gold); }

/* plain pages (privacy, 404) */
.page { padding: 120px 0 80px; }
.page .wrap { width: min(760px, 100% - 32px); }
.page h1 { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: clamp(34px, 5vw, 48px);
  margin: 0 0 4px; text-shadow: 0 3px 0 var(--gold-deep); letter-spacing: 1px; }
.page h2 { font-size: 24px; margin-top: 34px; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--cream); }
.page .date { color: var(--cyan); font-weight: 800; margin: 0 0 24px; }
.topbar.solid { position: static; background: var(--forest); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.topbar.solid .wrap { padding: 14px 0; }
.page-lost { text-align: center; padding: 140px 0 120px; }
.page-lost img { height: 170px; margin: 0 auto 18px; animation: bob 2.6s ease-in-out infinite; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  /* the raiders file past on the road: swipe along it */
  .lineup { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 14px 16px 4px; scroll-padding-inline: 16px; }
  .lineup::-webkit-scrollbar { display: none; }
  .raider { flex: 0 0 30%; scroll-snap-align: start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { background-image: url(assets/hero-bg-tall.jpg); background-position: center top; min-height: 100svh; }
  .hero-copy { padding-top: 92px; }
  .cycle-grid { grid-template-columns: 1fr; }
  .half { min-height: 0; padding: 26px 22px 0; }
  .shots { grid-template-columns: 1fr; }
  .raider { flex-basis: 44%; }
  .raider img { height: 120px; } .raider.boss img { height: 150px; }
  .btn { font-size: 17px; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
