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

html, body { height: 100%; }
html { overflow-x: hidden; scroll-behavior: smooth; }

:root {
  --site-width: clamp(1500px, 78.125vw, 1995px);
  --page-pad: clamp(18px, .9375vw, 24px);
  --font-main: clamp(27px, 1.40625vw, 36px);
  --header-height: clamp(75px, 3.90625vw, 100px);
  --logo-width: clamp(390px, 20.3125vw, 519px);
  --logo-height: clamp(72px, 3.75vw, 96px);
  --nav-gap: clamp(15px, .78125vw, 20px);
  --left-width: clamp(960px, 50vw, 1277px);
  --side-width: clamp(450px, 23.4375vw, 599px);
  --side-top: clamp(345px, 17.96875vw, 459px);
  --video-width: clamp(945px, 49.21875vw, 1257px);
  --button-width: clamp(318px, 16.5625vw, 423px);
  --button-height: clamp(121px, 6.3125vw, 161px);
}

body {
  margin: 0;
  font: var(--font-main) / 1.4 "Helvetica Neue", Arial, sans-serif;
  color: #e0d0d0;
  background: #111 url("images/bg_main.png") repeat;
}

#wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: var(--page-pad) var(--page-pad) calc(var(--page-pad) * 2);
  flex: 1;
}

#main::after { content: ""; display: block; clear: both; }

header {
  height: var(--header-height);
  background: #211710 url("images/bg_top.png") no-repeat center top;
  background-size: 100% auto;
}

#header_container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  position: relative;
}

#logo {
  float: left;
  width: var(--logo-width);
  height: var(--logo-height);
  background: url("images/logo.png") no-repeat center center;
  background-size: contain;
  overflow: hidden;
  text-indent: -9999px;
}

#menu_toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 6px 12px;
  font-weight: bold;
}

#menu {
  float: left;
  margin-left: 0;
}

#menu li { float: left; margin-left: var(--nav-gap); position: relative; }

#menu li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-shadow:
    0 0 3px #000,
    0 0 3px #000,
    0 0 3px #000,
    0 0 3px #000;
}

#menu li::marker { content: ""; }

#userbox {
  float: right;
  padding: 21px 0;
  color: #fff;
}

section.left { float: left; width: var(--left-width); }

aside {
  float: right;
  width: var(--side-width);
  text-align: center;
  padding-top: var(--side-top);
  background: url("images/animals.png") no-repeat top center;
  background-size: var(--side-width) auto;
  image-rendering: pixelated;
}

.video { margin-bottom: clamp(24px, 1.25vw, 32px); }

.embed {
  position: relative;
  width: 100%;
  max-width: var(--video-width);
  aspect-ratio: 18 / 10;
  background: #000;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  color: #fff4c7;
  font-size: clamp(48px, 2.5vw, 64px);
  line-height: 1.05;
  margin-bottom: clamp(12px, .625vw, 16px);
  text-shadow: 0 4px 0 #5b2518, 0 0 10px #000;
}

h2 {
  color: #fff;
  font-size: clamp(30px, 1.5625vw, 40px);
  margin-bottom: .75em;
  text-shadow: 0 0 5px #000;
}

h3 {
  color: #fff4c7;
  font-size: clamp(24px, 1.25vw, 32px);
  margin-bottom: .4em;
  text-shadow: 0 0 5px #000;
}

a { color: #aaf; }
a:hover { color: #fff; }

.button_buy_now {
  display: inline-block;
  width: var(--button-width);
  height: var(--button-height);
  background: url("images/buy_now.png") no-repeat center center;
  background-size: contain;
  image-rendering: pixelated;
  text-indent: -9999px;
  overflow: hidden;
}

.side_links {
  font-size: var(--font-main);
  line-height: 1.4;
  text-shadow: 0 0 5px #000;
}

.small { font-size: clamp(17px, .885vw, 23px); }

@media (max-width: 1440px) {
  :root {
    --site-width: 1500px;
  }

  section.left,
  aside {
    float: none;
    width: 100%;
    margin: 1.5em 0 0 0;
  }

  .embed { max-width: 100%; }

  #menu_toggle { display: inline-block; }

  #menu {
    float: none;
    clear: both;
    margin: 0;
    padding: 12px 0 0;
    display: none;
  }

  #menu.open { display: block; }

  #menu li { float: none; margin: 0; }

  #userbox { float: none; padding: 12px 0 18px; }
}

@media (min-width: 1441px) and (min-height: 850px) {
  body {
    overflow: hidden;
  }
}
