/* Ratonia Cafe — landing styles. Palette = docs/ART_DIRECTION.md §2 (warm, cozy). */
:root {
  --cream:      #F5E9D6;
  --cream-2:    #EFE0C9;
  --terracotta: #E08A4B;
  --sage:       #8FA98C;
  --emerald:    #2E7D5B;
  --gold:       #E0B84C;
  --cherry:     #C0392B;
  --shadow:     #5A4632;
  --ink:        #3B2E22;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(224,184,76,.25), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(143,169,140,.25), transparent 60%),
    var(--cream);
  line-height: 1.6;
}
h1, h2, h3, .wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 48px); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px); background: rgba(245,233,214,.7);
  border-bottom: 1px solid rgba(90,70,50,.12);
}
.wordmark { font-size: 1.4rem; color: var(--emerald); letter-spacing: .5px; }
.wordmark.small { font-size: 1.15rem; }
.topbar nav { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; }
.topbar a { color: var(--shadow); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--terracotta); }
.cta-mini { background: var(--gold); padding: 8px 16px; border-radius: 999px; color: var(--ink) !important; }
.lang { display: inline-flex; border: 1px solid rgba(90,70,50,.25); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font: inherit; font-weight: 700; color: var(--shadow); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--emerald); color: #fff; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 48px);
  max-width: 1180px; margin: 0 auto;
}
.hero-copy .kicker { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: var(--terracotta); font-weight: 700; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: .2em 0; color: var(--shadow); }
.lede { font-size: 1.15rem; max-width: 46ch; color: #4a3a2c; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(224,138,75,.35); }
.btn-ghost { background: transparent; color: var(--emerald); border: 2px solid var(--emerald); }

/* Hero art */
.hero-art { display: flex; justify-content: center; }

/* Hero diorama — illustrated room + the cast standing in it */
.diorama {
  position: relative; width: min(560px, 92vw); aspect-ratio: 16 / 11;
  border-radius: 24px; overflow: hidden;
  background: url("assets/room.png") center 38% / cover no-repeat;
  border: 1px solid rgba(90,70,50,.18);
  box-shadow: inset 0 -40px 60px rgba(90,70,50,.12), 0 22px 50px rgba(90,70,50,.22);
}
.cast-row {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end;
  justify-content: center; gap: clamp(2px, 1.5vw, 14px); padding: 0 6% 5%;
}
.diorama .c {
  height: clamp(138px, 34vw, 248px); width: auto; object-fit: contain;
  align-self: flex-end;
  /* tight contact shadow that hugs the feet, not a detached body shadow */
  filter: drop-shadow(0 3px 2px rgba(70,50,35,.30));
}
/* Ratonia is the host: front + only slightly larger, not dominant */
.diorama .c-front { height: clamp(146px, 35.5vw, 260px); z-index: 2; margin: 0 -1%; }

/* Signature: the hero "peeks" into the café as the cursor moves (mirrors the game's parallax),
   and the cast breathes with a gentle idle float. */
.diorama, .cast-row { transition: transform .3s ease, background-position .3s ease; transform-style: preserve-3d; will-change: transform; }
@keyframes cozy-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.diorama .c { animation: cozy-float 5.5s ease-in-out infinite; }
.diorama .c:nth-child(1) { animation-delay: 0s; }
.diorama .c:nth-child(2) { animation-delay: .9s; }
.diorama .c:nth-child(3) { animation-delay: 1.7s; }
.diorama .c:nth-child(4) { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) {
  .diorama .c { animation: none; }
  .diorama, .cast-row { transition: none; }
}

/* Cast */
.cast { max-width: 1080px; margin: 0 auto; padding: clamp(24px,5vw,56px) clamp(16px,5vw,48px); text-align: center; }
.cast h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--emerald); margin-bottom: 6px; }
.cast-sub { color: #4a3a2c; margin: 0 auto 26px; max-width: 52ch; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.cast-grid figure { position: relative; margin: 0; background: rgba(255,255,255,.55); border: 1px solid rgba(90,70,50,.12); border-radius: var(--radius); padding: 16px 12px 18px; box-shadow: 0 6px 16px rgba(90,70,50,.08); display: flex; flex-direction: column; align-items: center; }
.cast-grid .portrait { position: relative; height: 200px; display: flex; align-items: flex-end; justify-content: center; }
/* soft ground ellipse so every character stands on the same kind of shadow */
.cast-grid .portrait::after { content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 62%; height: 14px; background: radial-gradient(ellipse at center, rgba(70,50,35,.28), rgba(70,50,35,0) 70%); z-index: 0; }
.cast-grid img { height: 190px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; position: relative; z-index: 1; }
.cast-grid figcaption { display: flex; flex-direction: column; margin-top: 8px; }
.cast-grid strong { font-family: 'Fraunces', Georgia, serif; color: var(--shadow); font-size: 1.15rem; }
.cast-grid span { color: #6b5a48; font-size: .92rem; }

/* Merch — coming soon */
.merch { max-width: 1080px; margin: 0 auto; padding: clamp(24px,5vw,56px) clamp(16px,5vw,48px); text-align: center; }
.soon-pill { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.merch h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--emerald); margin: 12px 0 6px; }
.merch-sub { color: #4a3a2c; margin: 0 auto 26px; max-width: 56ch; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.merch-card { position: relative; background: rgba(255,255,255,.55); border: 1px solid rgba(90,70,50,.12); border-radius: var(--radius); padding: 22px 16px; box-shadow: 0 6px 16px rgba(90,70,50,.08); transition: transform .15s ease, box-shadow .15s ease; }
.merch-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(90,70,50,.14); }
.merch-emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.merch-card h3 { font-family: 'Fraunces', Georgia, serif; color: var(--shadow); font-size: 1.1rem; margin: 0 0 4px; }
.merch-card p { color: #6b5a48; font-size: .92rem; margin: 0; }

/* Legal page language jump */
.lang-jump { font-size: .9rem; margin: 4px 0 0; }
.lang-jump a { color: var(--terracotta); font-weight: 700; text-decoration: none; }
.lang-jump a:hover { text-decoration: underline; }

/* Footer legal links */
footer .legal { display: flex; gap: 16px; align-items: center; }
footer .legal a { color: var(--cream-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
footer .legal a:hover { color: var(--gold); }

/* Bands */
.band { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 48px); text-align: center; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--emerald); }
.band p { font-size: 1.1rem; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
  max-width: 1080px; margin: 0 auto; padding: clamp(16px,4vw,40px) clamp(16px,5vw,48px);
}
.features article {
  background: rgba(255,255,255,.55); border: 1px solid rgba(90,70,50,.12);
  border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 16px rgba(90,70,50,.08);
}
.features h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--shadow); }
.features p { margin: 0; color: #4a3a2c; }

/* Notify */
.notify .notify-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.notify input[type=email] {
  padding: 14px 18px; border-radius: 999px; border: 2px solid var(--sage);
  font: inherit; min-width: min(320px, 80vw); background: #fff;
}
.notify input[type=email]:focus { outline: none; border-color: var(--emerald); }
.fineprint { font-size: .85rem; color: #6b5a48; margin-top: 14px; }

/* Footer */
footer { background: var(--shadow); color: var(--cream); margin-top: 40px; }
.foot-wrap { max-width: 1080px; margin: 0 auto; padding: 40px clamp(16px,5vw,48px); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .wordmark { color: var(--gold); }
.studio { color: var(--cream-2); margin: 4px 0 0; }
.socials { display: flex; gap: 18px; align-items: center; }
.socials a { color: var(--cream); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--gold); }
.copy { text-align: center; padding: 0 0 24px; margin: 0; color: rgba(245,233,214,.6); font-size: .85rem; }

/* Mobile */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .actions { justify-content: center; }
  .lede { margin-inline: auto; }
  /* Topbar was cramped on phones: keep wordmark + Notify + language, hide section links. */
  .topbar { padding: 12px 16px; }
  .topbar nav { gap: 10px; }
  .topbar nav a:not(.cta-mini) { display: none; }
}
