/* oddbolt studio site. Brand inputs: arena-gdd art/studio-name/oddbolt_brand.md (Palette). */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-extrabold-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #1C1F24;
  --panel: #2B2F36;
  --text: #EDE8DF;   /* cream */
  --muted: #A39E96;  /* secondary text */
  --brass: #C9A04A;  /* heading accents, links, focus */
  /* Violet #7A4FD6 is the logo chip only: never text or links. */

  --heading: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  /* Hero lock-up width. Brand clear space is half the nut's height on every side; the nut is
     ~0.3x the stacked lock-up's width, so 75vw keeps >= 0.15x width free at the sides. */
  --logo-w: min(400px, 75vw);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.15; margin: 0; }

a { color: var(--brass); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--panel);
  color: var(--text);
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header: nut only while the hero lock-up is on screen. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1rem var(--gutter);
}
.header-mark { display: block; padding: 8px; margin: -8px; border-radius: 4px; }
.header-mark img { width: 32px; height: 32px; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { color: var(--text); font-size: 0.9375rem; padding: 0.5rem 0; display: inline-block; }
.site-header nav a:hover { color: var(--brass); }

main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero { text-align: center; padding-bottom: clamp(2.5rem, 8vw, 4.5rem); }
.hero-logo {
  width: var(--logo-w);
  margin: calc(var(--logo-w) * 0.15) auto;
}
.hero-logo img { width: 100%; }
.tagline {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  line-height: 1.2;
  margin: 0 auto 1rem;
  max-width: 22ch;
  text-wrap: balance;
}
.subline { color: var(--muted); max-width: 36rem; margin: 0 auto; text-wrap: pretty; }

.panel {
  --pad: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--panel);
  border-radius: 14px;
  padding: var(--pad);
  overflow: hidden;
}
/* Game art runs edge to edge across the top of the panel. */
.game-art {
  position: relative;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad);
}
.game-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-art figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--page);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.4;
}
h2 { color: var(--brass); font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem); margin-bottom: 0.75rem; }
.game-name { font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem); margin-bottom: 0.75rem; }
.panel p { margin: 0 0 1rem; }
.panel p:last-child { margin-bottom: 0; }
.status { color: var(--muted); }

.contact { padding-block: clamp(2.5rem, 8vw, 4.5rem); }
.contact p { margin: 0 0 0.75rem; }
.email { font-size: 1.125rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--panel);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-logo { width: 172px; height: 28px; margin: 14px 0; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
