/* JAYBEE Softworks — site styles. Built from the "Jaybee Softworks Website" design canvas. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #181C20;
  --ink-soft: #3A4046;
  --muted: #4A5056;
  --muted-2: #5B6168;
  --line: #ECEDEF;
  --line-2: #E2E4E7;
  --paper: #FFFFFF;
  --card: #FAFAF8;
  --footer: #F6F6F4;
  --accent: #F2AC08;
  --accent-ink: #8A5A00;
  --display: "Outfit", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 6px;
  font-family: var(--display); font-weight: 600; z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: 0.18em; color: var(--ink); }
.brand__sub { font-weight: 600; font-size: 10px; letter-spacing: 0.34em; color: var(--accent-ink); margin-top: 5px; }
.nav__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  font-family: var(--display); font-weight: 500; font-size: 16px;
}
.nav__links a { padding: 10px 0; }

/* Shared section bits */
.section { border-top: 1px solid var(--line); }
.section__inner { padding-top: 96px; padding-bottom: 96px; }
.label { display: flex; align-items: center; gap: 12px; }
.label__bar { width: 24px; height: 4px; border-radius: 2px; background: var(--accent); }
.label h2 {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.24em; color: var(--muted);
}

/* Hero */
.hero {
  padding-top: 88px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -0.015em;
}
.hero__lead { margin: 0; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero__art { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero__art img { width: 100%; max-width: 320px; }

/* Games */
.games { display: flex; flex-direction: column; gap: 40px; }
.game {
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--card); padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.game__art { flex: 0 0 140px; display: flex; justify-content: center; margin: 0 auto; }
.game__art polygon { fill: var(--paper); stroke: var(--accent); stroke-width: 6; }
.game__art text { font-family: var(--display); font-weight: 700; font-size: 104px; fill: var(--ink); }
.game__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tag {
  align-self: flex-start; display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.1em;
}
.game h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; }
.game p { margin: 0; max-width: 560px; font-size: 18px; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.about .label { flex: 0 1 220px; align-self: flex-start; padding-top: 10px; }
.about__text {
  flex: 1 1 560px; min-width: 0; margin: 0;
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35;
}

/* Contact */
.contact { display: flex; flex-direction: column; gap: 20px; padding-bottom: 112px; }
.contact__email {
  align-self: flex-start; font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 38px); border-bottom: 4px solid var(--accent);
  padding-bottom: 2px; overflow-wrap: anywhere;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer); }
.footer {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px;
}
.footer__legal { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted-2); max-width: 640px; }
.footer__legal p { margin: 0; }
.footer__legal p:first-child { color: var(--ink); }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--display); font-weight: 500; font-size: 15px;
}
.footer__links a { padding: 10px 0; }

/* Prose pages (privacy notice, 404) */
.prose {
  max-width: 720px; margin: 0 auto; padding: 88px 24px 112px;
  display: flex; flex-direction: column; gap: 40px; line-height: 1.7;
}
.prose__head { display: flex; flex-direction: column; gap: 12px; }
.prose h1 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.015em;
}
.prose__date { margin: 0; font-size: 15px; color: var(--muted-2); }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.prose p { margin: 0; color: var(--ink-soft); }
.prose p a { border-bottom: 3px solid var(--accent); }

@media (max-width: 600px) {
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .section__inner { padding-top: 64px; padding-bottom: 64px; }
  .contact { padding-bottom: 80px; }
  .game { padding: 28px; gap: 28px; }
  .prose { padding-top: 56px; padding-bottom: 80px; }
}
