/* ============================================================
   Octophant Games — shared stylesheet
   ============================================================ */

:root {
  /* Brand palette */
  --brand-navy:        #001B2E;   /* primary dark */
  --brand-navy-deep:   #03045E;   /* secondary deep */
  --brand-blue:        #0077B6;   /* primary CTA blue */
  --brand-blue-light:  #90C7EF;   /* light accent / links on dark */
  --brand-gray:        #CDCDCD;   /* soft / muted */
  --brand-white:       #FFFFFF;

  /* Semantic tokens (use these in rules, not hex values) */
  --bg:           var(--brand-navy);
  --bg-elev:      #0a2540;
  --text:         var(--brand-white);
  --text-soft:    var(--brand-gray);
  --link:         var(--brand-blue-light);
  --link-hover:   var(--brand-white);
  --divider:      #14304a;

  /* Typography */
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width:    980px;
  --pad-x:        clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); }

/* ============================================================
   Header / hamburger
   ============================================================ */

.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 24px var(--pad-x);
}

.hamburger {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.hamburger svg { width: 22px; height: 22px; }

/* left-anchored menu panel — sized to fit nav links + padding */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(13, 31, 45, 0.97);
  border-right: 1px solid var(--divider);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 72px 40px 32px;
  z-index: 100;
}
.menu-overlay.is-open { display: flex; }

.menu-overlay nav { text-align: left; }
.menu-overlay a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text);
  text-decoration: none;
  padding: 14px 0;
  letter-spacing: 0.04em;
}
.menu-overlay a:hover { color: var(--link); }

.menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.menu-close:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Layout containers
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 32px 0; }
.section-lg { padding: 64px 0; }

/* ============================================================
   Home page
   ============================================================ */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 32px 0 96px;
}

.home-hero .logo {
  max-width: 720px;
  width: 100%;
  animation: home-fade-in 1.5s ease-out 0.15s both;
}

.home-hero .tagline-graphic {
  max-width: 760px;
  width: 100%;
  /* Tagline trails the logo — starts ~0.6s in so the two cascade rather than land together. */
  animation: home-fade-in 1.5s ease-out 0.75s both;
}

@keyframes home-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Respect users who've opted into reduced motion (accessibility setting). */
@media (prefers-reduced-motion: reduce) {
  .home-hero .logo,
  .home-hero .tagline-graphic { animation: none; }
}

/* ============================================================
   Privacy page
   ============================================================ */

.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
  text-align: center;
}

.privacy .logo-small {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 40px;
}

.privacy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 8px;
}

.privacy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 36px 0 8px;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.privacy p {
  margin: 0 0 16px;
  color: var(--text);
}

.privacy .meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.privacy .tagline-graphic {
  max-width: 720px;
  width: 100%;
  margin: 48px auto 24px;
}

/* ============================================================
   About page
   ============================================================ */

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 64px;
  text-align: center;
}

.about .logo-small {
  max-width: 320px;
  width: 100%;
  margin: 0 auto 40px;
}

.about h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 48px 0 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
}

.about p {
  margin: 0 0 16px;
  color: var(--text);
}

/* Standout one-liners and the brand tagline within the page body. */
.about .tagline-block {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--brand-blue-light);
  margin: 24px 0 28px;
}

.about .signoff {
  margin-top: 56px;
  color: var(--text-soft);
  font-style: italic;
}

.about .signoff-name {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
}

.about .tagline-graphic {
  max-width: 720px;
  width: 100%;
  margin: 48px auto 24px;
}

/* ============================================================
   Portfolio page
   ============================================================ */

.portfolio-header {
  padding: 32px var(--pad-x) 48px;
}

.portfolio-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.project {
  margin-bottom: 96px;
}

.project-hero,
.project-feature {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: block;
}

/* Placeholder hero — for projects without final key art yet. Centers a status
   badge ("In Development" / "In Concept Review") on a soft brand-blue gradient. */
.project-placeholder {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
  border: 2px dashed var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
}

.project-badge.in-development     { background: var(--brand-blue);       color: var(--brand-navy); }
.project-badge.in-concept-review  { background: var(--brand-blue-light); color: var(--brand-navy); }

.project-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .project-body { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
}

.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

.project-description {
  margin: 0;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 64px var(--pad-x) 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer .privacy-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

.site-footer .email {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.site-footer .email:hover { color: var(--link); }

/* Social icons — small row of icon links below the email. Inline SVG so we
   can tint with currentColor on hover. */
.site-footer .social-links {
  display: flex;
  gap: 22px;
  margin-top: 8px;
}

.site-footer .social-links a {
  color: var(--text);
  display: inline-flex;
  width: 28px;
  height: 28px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer .social-links a:hover {
  color: var(--link);
  transform: translateY(-2px);
}

.site-footer .social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer .copyright {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
