/* itsagirl.studio: shared styles for the studio page and the game pages.
   Built from the Claude Design comps ("Its a Girl Studios Site", "Cozy Sudoku Landing",
   "Cozy Nonogram Landing"). The comps are desktop-only; the breakpoints below are ours. */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap;
  src: url("fonts/nunito.woff2?v=20fc9b6f") format("woff2");
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("fonts/lora.woff2?v=6b102ab3") format("woff2");
}
@font-face {
  font-family: "Lora"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("fonts/lora-italic.woff2?v=3d536d49") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #F4F0E6;
  --card: #FFFDF6;
  --sand: #EDE6D8;
  --oat: #F3EADA;
  --ink: #2A231E;
  --ink-2: #3E342C;
  --body: #5D5348;
  --muted: #8A7D6C;
  --coral: #DE5F35;
  --coral-dark: #B84A28;
  --coral-light: #EE7B54;
  --coral-wash: #F7DDD2;
  --sage: #41603F;
  --sage-dark: #2F4A2E;
  --mint: #E4F1E5;
  --mint-2: #D3E7D5;
  --mint-3: #CBE2CD;
  --sage-body: #4C5B4C;
  --line: rgba(42, 35, 30, 0.08);
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: pretty; }
.accent { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* Text for readers and parsers only: section headings the design shows as layout. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Starts a new visual line without a <br>, so extracted text keeps its space. */
.line { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 230, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
.nav ul { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 800; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--coral); }
.theme-sage .nav a:hover { color: var(--sage); }
.nav .pill {
  background: var(--ink); color: var(--paper); padding: 11px 20px; border-radius: 99px;
  white-space: nowrap;
}
.nav .pill:hover { background: var(--coral); color: var(--card); }
.theme-sage .nav .pill { background: var(--sage); color: var(--card); }
.theme-sage .nav .pill:hover { background: var(--ink); color: var(--card); }

/* ---------- shared bits ---------- */
.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
a.eyebrow:hover { color: var(--ink); }
.badge {
  display: inline-block; padding: 6px 13px; border-radius: 99px;
  font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--coral-wash); color: var(--coral-dark);
}
.badge.sage { background: var(--mint-3); color: var(--sage); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--oat); font-size: 13.5px; font-weight: 800; }
.chips.sage .chip { background: var(--mint-2); }
.lede { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 480px; }
.promises { display: flex; gap: 12px 26px; flex-wrap: wrap; font-size: 14px; font-weight: 800; color: var(--muted); }
/* The dot is decoration; the empty alt text keeps it out of the accessibility tree. */
.promises li + li::before { content: "·" / ""; margin-right: 26px; opacity: 0.8; }

/* "← All games" above a game's title. */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 24px; border-radius: 14px; font-weight: 900; font-size: 16px; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); color: var(--paper); }
.btn-coral { background: var(--coral); color: var(--card); }
.btn-coral:hover { background: var(--coral-dark); color: var(--card); }
.btn-sage { background: var(--sage); color: var(--card); }
.btn-sage:hover { background: var(--sage-dark); color: var(--card); }
.btn-outline { border: 2px solid rgba(42, 35, 30, 0.18); color: var(--ink); font-weight: 800; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-paper { background: var(--card); color: var(--sage); font-size: 15px; }
.btn-paper:hover { color: var(--ink); }

/* The "Download on the App Store" button. */
.btn-store { padding: 13px 24px; }
.btn-store svg { width: 20px; height: 24px; flex: none; fill: currentColor; }
.btn-store .label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store .label small { font-size: 11px; font-weight: 700; opacity: 0.75; }
.btn-store .label b { font-size: 17px; font-weight: 900; }

/* A phone screenshot in a dark bezel. */
.phone {
  border: 8px solid var(--ink); border-radius: 38px; overflow: hidden; background: #FBF6EA;
  box-shadow: 0 30px 60px rgba(42, 35, 30, 0.18);
}
.phone img { display: block; width: 100%; height: auto; }
/* The same bezel cut off at the bottom edge of its tray. */
.phone-peek {
  border: 7px solid var(--ink); border-bottom: none; border-radius: 26px 26px 0 0;
  overflow: hidden; background: #FBF6EA;
}
.phone-peek img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-peek.show-bottom img { object-position: bottom; }

/* The two tilted phones in a hero. */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hero-phones { position: relative; height: 660px; }
.hero-phones .phone { position: absolute; }
.hero-phones .back { right: 124px; top: 20px; width: 276px; transform: rotate(-4deg); }
.hero-phones .front {
  right: 0; top: 88px; width: 252px; border-radius: 34px; transform: rotate(5deg);
  box-shadow: 0 30px 60px rgba(42, 35, 30, 0.22);
}
.hero-phones .drift { animation: drift 7s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-phones .drift { animation: none; } }

.section-dark { background: var(--ink); color: var(--paper); }
.section-sand { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head .aside { font-size: 16px; line-height: 1.6; max-width: 430px; color: var(--body); }
.section-dark .section-head .aside { color: rgba(244, 240, 230, 0.6); }
.h2 { font-size: 44px; line-height: 1.15; }

/* Outlined tiles on dark: difficulties and grid sizes. */
.levels { display: grid; gap: 12px; margin-top: 24px; }
.levels > div { border: 1.5px solid rgba(244, 240, 230, 0.16); border-radius: 18px; padding: 18px 20px; }
.levels dt { font-size: 16px; font-weight: 900; }
.levels dd { font-size: 13.5px; font-weight: 700; color: rgba(244, 240, 230, 0.6); margin-top: 3px; }

/* Numbered cards. */
.num { font-family: var(--serif); font-size: 38px; line-height: 1.2; color: var(--coral); }
.theme-sage .num { color: var(--sage); }
.card { background: var(--card); color: var(--ink); }
.card-title { font-family: var(--sans); font-size: 18px; font-weight: 900; line-height: 1.3; margin-top: 10px; }
.card-text { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }

/* Closing call-to-action panel. */
.cta-panel {
  border-radius: 40px; padding: 72px; display: grid; gap: 48px; align-items: center;
}
.cta-panel h2 { font-size: 48px; line-height: 1.1; }
.cta-panel p { font-size: 17px; line-height: 1.65; margin-top: 20px; max-width: 520px; }
.cta-panel .stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- footer ---------- */
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 64px; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
}
.site-footer .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(42, 35, 30, 0.1);
}
.site-footer img { height: 30px; width: auto; opacity: 0.85; display: block; }
.site-footer .meta { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; font-size: 14.5px; font-weight: 800; color: var(--muted); }
.site-footer nav ul { display: flex; gap: 12px 26px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer small { font-size: inherit; }

/* ---------- long-form pages: support, privacy ---------- */
.doc { max-width: 760px; padding-top: 72px; padding-bottom: 72px; }
.doc h1 { font-size: 52px; line-height: 1.1; margin-top: 22px; }
.doc .updated { font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 14px; }
.doc h2 { font-size: 30px; line-height: 1.2; margin-top: 48px; }
.doc h3 { font-family: var(--sans); font-size: 19px; font-weight: 900; line-height: 1.35; margin-top: 30px; }
.doc p { font-size: 17px; line-height: 1.7; color: var(--body); margin-top: 12px; }
.doc .lede { font-size: 19px; margin-top: 22px; max-width: none; }
.doc a:not(.eyebrow) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { gap: 40px; }
  .hero-phones { height: 580px; }
  .hero-phones .back { right: 100px; width: 240px; }
  .hero-phones .front { width: 220px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav li:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-phones { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phones .back { right: auto; left: 0; width: 230px; }
  .hero-phones .front { width: 210px; top: 70px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .h2 { font-size: 36px; }
  .cta-panel { grid-template-columns: 1fr !important; padding: 48px 32px; border-radius: 32px; }
  .cta-panel h2 { font-size: 38px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; gap: 16px; }
  .brand img { height: 30px; }
  .nav .pill { padding: 10px 16px; font-size: 14px; }
  .lede { font-size: 17px; }
  .hero-phones { height: 430px; max-width: 340px; }
  .hero-phones .back { width: 190px; top: 10px; border-width: 6px; border-radius: 30px; }
  .hero-phones .front { width: 172px; top: 60px; border-width: 6px; border-radius: 28px; }
  .h2 { font-size: 32px; }
  .cta-panel { padding: 36px 22px; border-radius: 28px; }
  .cta-panel h2 { font-size: 32px; }
  .actions .btn { flex: 1 1 auto; }
  .doc { padding-top: 40px; }
  .doc h1 { font-size: 40px; }
  .doc h2 { font-size: 26px; }
}
