/* Marrow Games — studio site
   Readability rules: body 20px+, nothing under 14px, no italics, no dim grey body text. */
:root {
  --teal: #00585F; --teal-deep: #004349; --graphite: #6B737D; --gold: #FCB739;
  --paper: #FBFAF7; --paper-warm: #F4F1E8; --ink: #11161D;
  --ink-soft: #232A31; /* secondary text — still dark, never dim grey */
  --line: #D9D4C7; --on-teal: #FBFAF7;
  --font-body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1120px; --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
* { font-style: normal !important; } /* no italics anywhere */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 20px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: var(--on-teal); padding: 10px 16px; font-size: 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
/* The menu pins to the top of the browser on every page; the small logo lives in its top-left corner. */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; width: 150px; transition: opacity 0.3s ease, visibility 0.3s ease; }
.brand img { width: 100%; }
/* Studio page: the header logo stays tucked away while the big logo is on screen, then appears as you scroll past it. */
.home .site-header .brand { opacity: 0; visibility: hidden; }
.home.past-hero .site-header .brand { opacity: 1; visibility: visible; }
.hero-logo { display: block; width: min(640px, 88vw); margin: 0 auto 64px; }
@media (max-width: 819px) { .hero-logo { margin-bottom: 44px; } }
.page h2 { font-size: 24px; margin: 36px 0 10px; color: var(--teal); }
.page .updated { font-size: 17px; color: var(--ink); }
.nav-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nav a {
  display: inline-block; padding: 8px 14px; font-size: 19px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; border-radius: 999px;
}
.nav a:hover { background: var(--paper-warm); color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
/* Social slots — PLACEHOLDERS until handles exist. Dashed outline marks them as unfilled. */
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px dashed var(--graphite); color: var(--teal-deep);
}
.social a:hover { border-color: var(--teal); background: var(--paper-warm); }
.social svg { width: 20px; height: 20px; }
@media (min-width: 820px) {
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .brand { width: 190px; }
  .nav-row { gap: 22px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; text-align: center; }
.tagline {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 11vw, 96px);
  line-height: 1.02; letter-spacing: -0.01em; color: var(--teal); margin: 0 0 18px;
}
.subhead {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.25; color: var(--ink-soft); margin: 0 auto 26px; max-width: 22ch;
}
.diamond-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 28px; }
.diamond-rule::before, .diamond-rule::after { content: ""; height: 2px; width: 64px; background: var(--line); }
.diamond { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); flex: none; }
.intro { max-width: 40ch; margin: 0 auto; font-size: 22px; line-height: 1.6; color: var(--ink); }

/* ---------- Signup (UI only, not wired to any backend) ---------- */
.signup { margin: 36px auto 0; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
.signup label { position: absolute; left: -9999px; }
.signup input {
  width: 100%; min-width: 0; font: inherit; font-size: 20px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.signup input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.signup button {
  font: inherit; font-size: 19px; font-weight: 700; padding: 14px 22px; border-radius: 10px; border: 0;
  background: var(--teal); color: var(--on-teal); white-space: nowrap;
}
.signup input:disabled, .signup button:disabled { cursor: not-allowed; }
.signup-note { margin: 10px 0 0; font-size: 16px; font-weight: 700; color: var(--teal-deep); }
@media (min-width: 560px) { .signup-row { flex-direction: row; } }

/* ---------- Codename: Prince ---------- */
.prince { background: var(--teal); color: var(--on-teal); padding: 64px 0; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 22px; }
.title-diamond { display: inline-block; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); margin-right: 16px; position: relative; top: -6px; }
.prince .lede { font-size: 22px; max-width: 46ch; margin: 0 0 26px; }
.features { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.features li {
  position: relative; padding: 16px 18px 16px 48px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
}
.features li::before { content: ""; position: absolute; left: 20px; top: 27px; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.art-note { margin: 0; font-weight: 700; font-size: 20px; color: var(--gold); }
@media (min-width: 820px) { .prince { padding: 88px 0; } .features { grid-template-columns: 1fr 1fr; } }

/* ---------- About Marrow ---------- */
.about { padding: 64px 0 72px; }
.about .section-title { color: var(--teal); }
.about .lede { max-width: 58ch; margin: 0 0 36px; font-size: 21px; }
.team { display: grid; gap: 20px; }
.member { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 16px; padding: 24px 22px; }
.member h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.2; margin: 0 0 4px; color: var(--ink); }
.member .role { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.member .role::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); margin-right: 10px; position: relative; top: -2px; }
.member .bio { margin: 0; font-size: 20px; color: var(--ink); }
@media (min-width: 820px) { .about { padding: 88px 0 96px; } .team { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Simple pages ---------- */
.page { padding: 72px 0 96px; min-height: 48vh; }
.page .section-title { color: var(--teal); }
.page p { font-size: 22px; max-width: 46ch; }
.placeholder-card { margin-top: 8px; padding: 22px; max-width: 620px; border: 2px dashed var(--graphite); border-radius: 14px; background: #fff; font-size: 20px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 36px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.site-footer a { color: var(--paper); font-weight: 700; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { font-size: 17px; margin: 0; }
.site-footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 18px; }
@media (min-width: 820px) { .site-footer .wrap { flex-direction: row; justify-content: space-between; text-align: left; } }
.signup-status { margin: 10px 0 0; font-size: 18px; color: #1f2328; text-align: center; }
.signup-status:empty { display: none; }

/* Phone: keep the pinned header to two rows (logo and social links, then the menu). */
@media (max-width: 819px) {
  .nav-row { display: contents; }
  .brand { order: 1; width: 130px; }
  .social { order: 2; margin-left: auto; }
  .social a { width: 40px; height: 40px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}

/* Keep the menu from jumping between pages: always reserve the scrollbar space, even on short pages. */
html { overflow-y: scroll; scrollbar-gutter: stable; }

/* TEMP-0926: lets the hidden attribute hide the social icons. Remove with the restore. */
.social[hidden] { display: none; }
