/* ================================================
   Flying Swan Games — cozy studio site
   Inspired by wombatbrawler.com + stutterfoxstudios.com:
   - single accent color + alternating section backgrounds
   - geometric sans-serif, lowercase headings
   - full-width game banners as visual anchors
   - flat square buttons (no border-radius), hover = color shift only
   - minimal motion: 0.3s transitions
   ================================================ */

:root {
  --brand: #7a9e7e;        /* mushroom sage green */
  --brand-dark: #5c7d60;
  --brand-deep: #33473a;   /* footer dark forest */
  --cream: #fdfbf6;        /* main background */
  --white: #ffffff;
  --ink: #26241f;          /* near-black text */
  --ink-soft: #6b675e;     /* secondary text */
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "PingFang HK", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

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

/* ---------- buttons: flat, square, color-shift hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 0;            /* no rounding — matches both reference sites */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn--fill { background: var(--brand); color: var(--white); border: 2px solid var(--brand); }
.btn--fill:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--line { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn--line:hover { background: var(--brand); color: var(--white); }
.btn--big { font-size: 16px; padding: 18px 44px; }

/* ---------- section titles: lowercase, brand color ---------- */
.section-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  text-align: center;
  color: var(--brand-dark);
  margin-bottom: 56px;
}
.section-title--dim { color: var(--ink-soft); opacity: 0.55; }

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brand);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--brand-dark);
  text-decoration: none;
}
.nav__swan { width: 26px; height: 26px; color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--brand); }
.nav__cta {
  padding: 9px 20px;
  background: var(--brand);
  color: var(--white) !important;
  border-radius: 0;
}
.nav__cta:hover { background: var(--brand-dark); color: var(--white) !important; }

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 40px 70px;
}
.hero__hello {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.hero__title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand-dark);
  margin-bottom: 26px;
}
.hero__sub {
  max-width: 420px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero__art { overflow: hidden; }
.hero__art img {
  width: 100%;
  border: 3px solid var(--brand);
}

/* ================= GAMES ================= */
.games {
  background: var(--white);
  padding: 100px 40px;
}
.game-card {
  max-width: var(--max);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.game-card__art img {
  width: 100%;
  border: 3px solid var(--brand);
  transition: transform 0.3s;
}
.game-card__art { overflow: hidden; }
.game-card__art:hover img { transform: scale(1.02); }
.game-card__name {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.game-card__tag {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 18px;
}
.game-card__desc { color: var(--ink-soft); margin-bottom: 30px; }

/* teaser (coming soon) */
.game-card--teaser .game-card__art--teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: repeating-linear-gradient(
    -45deg,
    #f2f5f0,
    #f2f5f0 18px,
    #e8efe6 18px,
    #e8efe6 36px
  );
  border: 3px dashed var(--brand);
}
.teaser-emoji { font-size: 84px; }

/* ================= STUDIO ================= */
.studio { padding: 100px 40px; }
.studio__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.studio__art img {
  width: 100%;
  border: 3px solid var(--brand);
}
.studio__body p { margin-bottom: 18px; color: var(--ink); }
.studio__body em { color: var(--brand-dark); font-weight: 700; }

/* ================= CONTACT ================= */
.contact {
  background: var(--white);
  padding: 100px 40px;
  text-align: center;
}
.contact__sub {
  max-width: 480px;
  margin: -30px auto 36px;
  color: var(--ink-soft);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 40px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer__brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__tagline { color: var(--brand); font-weight: 700; margin-bottom: 18px; }
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ================= gentle scroll reveal ================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= LEGAL PAGES ================= */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.3s;
}
.legal__back:hover { color: var(--brand); }
.legal h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.legal__updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 42px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 22px 0 8px;
}
.legal p { margin-bottom: 14px; color: var(--ink); }
.legal ul { margin: 0 0 16px 24px; }
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.legal a:hover { color: var(--brand); }

/* footer policy links */
.footer__links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 20px;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--brand); }

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; } /* mobile: keep logo + CTA */
  .hero,
  .game-card,
  .studio__inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .games, .studio, .contact { padding: 70px 20px; }
  .game-card { gap: 28px; }
}
