/* Vector Frog Studios. On a wide screen the logo, email and links sit in a left column that stays in view while
   the headline and the three sections scroll beside it; on a phone everything stacks, logo first. */

:root {
  --bg: #f5f4f0;
  --ink: #162f47;        /* the logo's navy */
  --body: #2c3a48;
  --muted: #5d6877;
  --rule: rgba(22, 47, 71, 0.15);
  --link: #1b6ca8;
  --accent: #4f9a2c;     /* the frog's green, darkened to read as text */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --top: clamp(1.5rem, 5vh, 3.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 0.25rem; }

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--top) var(--gutter);
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* The left column. Sticky gives it its own layer, so it carries the page colour for the logo to blend into. */
.side { position: sticky; top: var(--top); display: flex; flex-direction: column; gap: 2rem; background: var(--bg); }
.logo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;  /* the image's white ground takes the page colour */
}

.reach { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.email svg { flex: none; width: 1.125rem; height: 1.125rem; }
.socials { display: flex; flex-direction: column; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0; font-weight: 600; text-decoration: none; }
.socials a:hover { color: var(--link); }
.ico {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ico-steam { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.0.0/icons/steam.svg"); }
.ico-youtube { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.0.0/icons/youtube.svg"); }
.ico-discord { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.0.0/icons/discord.svg"); }
.ico-instagram { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@13.0.0/icons/instagram.svg"); }

/* The headline and the three sections */
h1 {
  margin: 0 0 clamp(2rem, 5vh, 3rem);
  max-width: 22ch;
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section { padding: 2rem 0; border-top: 1px solid var(--rule); }
.section:first-child { border-top: 2px solid var(--ink); }
.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .num { color: var(--accent); }
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
}
.section p { margin: 0 0 1em; color: var(--body); }
.section p:last-child { margin-bottom: 0; }

footer { padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }

/* Tablet and phone: one column, logo first */
@media (max-width: 48em) {
  .page { display: flex; flex-direction: column; gap: 0; }
  .side, .main { display: contents; }
  .logo { order: 1; width: min(11rem, 45%); }
  h1 { order: 2; margin: 1.5rem 0 0; }
  .reach { order: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.25rem; padding-top: 0; border-top: 0; }
  .socials { flex-direction: row; flex-wrap: wrap; }
  .sections { order: 4; margin-top: 2rem; }
  footer { order: 5; }
}

/* The not-found page */
.lost { max-width: 34rem; margin: 0 auto; padding: var(--top) var(--gutter); }
.lost .logo { display: block; width: 9rem; margin-bottom: 2rem; }
.lost h1 { margin-bottom: 1rem; }
.lost p { color: var(--body); }
.lost p a { color: var(--link); font-weight: 600; }
