/* ═══════════════════════════════════════════════════════════
   Azulo — the studio site: shared header + footer, the homepage,
   /games/ and the coming-soon game pages. Loads after styles.css
   and uses its tokens. The Monastery page keeps its own chrome.
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #12305c;
  --sand: #efe6d6;
  --mist: #e8eff7;
}

/* ═══════════════════════ header ═══════════════════════ */

.topbar { position: relative; z-index: 10; }
.topbar--over { position: absolute; inset: 0 0 auto; }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 2px 6px rgba(20, 49, 94, .25);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__name { font-size: 24px; letter-spacing: .14em; text-transform: uppercase; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: rgba(255, 255, 255, .12); }

.topnav { display: flex; gap: clamp(14px, 2.6vw, 34px); margin-inline: auto; }
.topnav a { font-size: 15px; color: var(--ink); white-space: nowrap; }
/* over the hero photo the links sit on a soft glass strip so they hold against the flowers */
.topbar--over .topnav { padding: 8px 20px; border-radius: 999px; background: rgba(250, 246, 238, .78); backdrop-filter: blur(6px); }
.topnav a:hover, .topnav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ═══════════════════════ pill buttons ═══════════════════════ */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pill--primary { background: linear-gradient(180deg, #275390, var(--blue-deep)); color: #fff; box-shadow: 0 8px 20px rgba(20, 49, 94, .25); }
.pill--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(20, 49, 94, .32); }
.pill--ghost { border: 1px solid var(--blue); color: var(--ink); background: rgba(255, 255, 255, .7); }
.pill--ghost:hover { background: #fff; }
.pill--soon { background: var(--sand); color: var(--ink-soft); }
.pill--small { padding: 9px 20px; font-size: 15px; }
.pill__arrow { font-size: 1.1em; line-height: 1; }

/* ═══════════════════════ footer ═══════════════════════ */

.sitefoot { background: var(--navy); color: rgba(255, 255, 255, .86); }
.sitefoot__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px clamp(20px, 4vw, 48px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 26px var(--gutter);
}
.sitefoot p { flex: 1; font-size: 13px; text-align: center; }
.sitefoot strong { color: #fff; font-weight: 500; }
.sitefoot nav { display: flex; gap: 22px; font-size: 14px; }
.sitefoot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ═══════════════════════ shared bits ═══════════════════════ */

.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.heading-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
.heading-rule::before, .heading-rule::after { content: ""; flex: 1; height: 1px; background: var(--cream-line); }

.icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* placeholder art for games that don't have any yet */
.tile-art { background: url("/assets/games/tile-pattern.svg") center / 48px; }

/* ═══════════════════════ home: hero ═══════════════════════ */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 44vw, 600px);
  padding: 100px 0 40px;
  background: url("/assets/hero-main.webp") 60% 50% / cover no-repeat, var(--sky-low);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
}
.home-hero__copy {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.home-hero__copy > * { max-width: 470px; }
.home-hero h1 {
  font-size: clamp(54px, 7.4vw, 92px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
}
.home-hero__tag { margin-top: 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: var(--navy); }
.home-hero__lede { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.values { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; }
.values li { display: grid; justify-items: center; gap: 6px; width: 76px; font-size: 13px; line-height: 1.25; text-align: center; color: var(--ink); }

/* ═══════════════════════ home: today's puzzle ═══════════════════════ */

.today-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: 230px;
  margin-top: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  overflow: hidden;
  background: url("/assets/daily/bg.webp") 70% 60% / cover no-repeat;
  box-shadow: var(--shadow-card);
}
.today-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232, 239, 247, .97) 0, rgba(232, 239, 247, .9) 38%, rgba(232, 239, 247, 0) 62%);
}
.today-card__copy { position: relative; padding: clamp(24px, 4vw, 44px); }
.today-card h2 { margin-top: 6px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; line-height: 1.1; color: var(--navy); }
.today-card__lede { margin-top: 8px; color: var(--ink-soft); }
.today-card .pill { margin-top: 20px; }
.today-card__meta { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* six tiles of today's mural, lifted off the wall */
.today-tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(300px, 80%);
  margin: 20px auto;
  rotate: -3deg;
}
.today-tiles span {
  aspect-ratio: 1;
  border-radius: 6px;
  background-image: var(--mural);
  background-size: 900% 500%;
  background-color: var(--cream-lit);
  box-shadow: 0 10px 20px rgba(20, 49, 94, .28), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

/* ═══════════════════════ home: featured game ═══════════════════════ */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.feature__art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.feature__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature h2 { margin-top: 6px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1.1; color: var(--navy); }
.feature__tag { margin-top: 8px; font-size: 20px; color: var(--navy); }
.feature__lede { margin-top: 12px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 14px; color: var(--ink); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips .icon { width: 22px; height: 22px; }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
/* one row at desktop: Play pill trimmed to store-badge height, badges tightened */
.feature__actions > * { flex: none; min-height: 44px; }
.feature__actions .pill { padding: 0 16px; font-size: 15px; gap: 6px; }
.feature__actions .pill--primary { box-shadow: var(--shadow-card); }
.feature__actions .badge { padding: 0 12px 0 10px; gap: 7px; }
.feature__actions .badge__glyph { width: 20px; height: 20px; }
.feature__actions .badge__store { font-size: 15px; }

/* ═══════════════════════ collection cards ═══════════════════════ */

.collection { margin-top: clamp(40px, 5vw, 60px); }
.collection__intro { max-width: 640px; margin: 10px auto 0; font-size: 15px; text-align: center; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--cream-lit);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card__art { aspect-ratio: 1; border-radius: 8px; object-fit: cover; width: 100%; height: 100%; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; padding-block: 6px; }
.card h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.card p { margin: 4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.card .pill { margin-top: auto; }

/* ═══════════════════════ what makes an Azulo game ═══════════════════════ */

.pillars-band { margin-top: clamp(40px, 5vw, 60px); padding-block: 30px 34px; background: var(--sand); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.pillars li { display: grid; justify-items: center; gap: 8px; padding-inline: 18px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.pillars li + li { border-left: 1px solid var(--cream-line); }
.pillars .icon { width: 34px; height: 34px; color: var(--navy); }
.pillars h3 { font-size: 17px; font-weight: 600; color: var(--navy); }

/* ═══════════════════════ a puzzle every day ═══════════════════════ */

.daily-band { padding-block: 34px 44px; background: var(--mist); }
.daily-band[hidden] { display: none; }
.daily-band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.daily-band h2 { font-size: clamp(17px, 2vw, 21px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.daily-band__head p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.daily-band__all { font-size: 14px; color: var(--blue); }
.daily-band__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.strip a { display: grid; gap: 4px; font-size: 14px; color: var(--navy); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgba(20, 49, 94, .18); margin-bottom: 6px; }
.strip time { font-size: 12px; color: var(--ink-soft); }
.strip a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════ game pages ═══════════════════════ */

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(24px, 4vw, 48px);
}
.game-hero h1 { margin-top: 6px; font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; line-height: 1.05; color: var(--navy); }
.game-hero__lede { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }
.game-hero__art { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.page-head { padding-block: clamp(24px, 4vw, 44px) 0; text-align: center; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; color: var(--navy); }
.page-head p { max-width: 620px; margin: 10px auto 0; color: var(--ink-soft); }

.section-gap { padding-bottom: clamp(40px, 5vw, 60px); }

/* ═══════════════════════ small screens ═══════════════════════ */

@media (max-width: 1000px) {
  .header__actions .badge { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 110px minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar__cta { display: none; }
  .topnav { margin-inline: auto 0; }

  .home-hero { min-height: 0; padding-top: 86px; background-position: 70% 50%; }
  .home-hero::before { background: linear-gradient(180deg, rgba(250, 246, 238, .9) 0, rgba(250, 246, 238, .8) 66%, rgba(250, 246, 238, 0) 90%); }
  .home-hero { padding-bottom: 120px; }
  .values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .values li { width: auto; font-size: 12px; }

  .today-card { grid-template-columns: 1fr; }
  .today-card::before { background: linear-gradient(180deg, rgba(232, 239, 247, .97) 0, rgba(232, 239, 247, .85) 55%, rgba(232, 239, 247, .1) 100%); }
  .today-tiles { margin-top: 0; }

  .feature, .game-hero { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .pillars li:nth-child(3) { border-left: 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitefoot__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .logo__name { font-size: 20px; }
  .topnav { gap: 12px; }
  .topnav a { font-size: 14px; }
  .topbar--over .topnav { padding: 6px 12px; }
  .topbar__inner { gap: 10px; padding-inline: 16px; }
  .logo__mark { width: 30px; height: 30px; }
}

.game-hero__art.tile-art { background-size: 96px; }
