/* mossvale.fun: the home page and the credits (board R, direction 1). The game's own lettering (Aoboshi One) for names and
   headings, Nunito Sans for reading; the game's gold for Play; hairlines, no shadows. */
:root {
  --ink: #0c161a; --page: #16232a; --panel: #1d2c34; --line: #33424c;
  --text: #f7f3e8; --soft: #cfc8b8; --dim: #9a937f; --gold: #e0b45a; --gold-ink: #1e140c; --warn: #f0a58a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* (hidden wins over a button's own display)*/
html, body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.6 'Nunito Sans', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, .logo { font-family: 'Aoboshi One', Georgia, serif; font-weight: 400; letter-spacing: .01em; }

.gold, .ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 9px; font: 800 15px/1 'Nunito Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.gold { background: var(--gold); color: var(--gold-ink); border: 1px solid var(--gold); }
.gold:hover { background: #ebc372; }
.ghost { background: transparent; color: var(--text); border: 1px solid rgba(247, 243, 232, .55); }
.ghost:hover { border-color: var(--text); }
.ghost.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.fine { font-size: 13px; color: var(--dim); margin: 0; }
.dim { color: var(--soft); }

/* the island from above: the square fills the screen, the words on its left */
.hero { position: relative; min-height: max(640px, 100vh); overflow: hidden; display: flex; flex-direction: column; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 22, 26, .88) 0%, rgba(12, 22, 26, .6) 34%, rgba(12, 22, 26, 0) 62%); z-index: 1; }
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 22px max(24px, 4vw); }
.bar .logo { font-size: 22px; text-decoration: none; }
.bar .ghost { margin-left: auto; }
.bar .who { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; } /* (signed in: the name and Sign out) */
.bar .who b { font-weight: 800; }
.bar .who .ghost { margin-left: 12px; }
.pitch { position: relative; z-index: 2; margin: auto 0; padding: 0 max(24px, 6vw) 10vh; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.pitch h1 { margin: 0; font-size: clamp(56px, 8vw, 104px); line-height: 1; }
.pitch .line { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #ece6d6; max-width: 30ch; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* three rows: a picture and a sentence each */
main { max-width: 1180px; margin: 0 auto; padding: 96px max(24px, 4vw); display: flex; flex-direction: column; gap: 88px; }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.row.flip img { order: 2; }
.row img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.words { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.words h2 { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; }
.words p { margin: 0; color: var(--soft); max-width: 46ch; }

.foot { border-top: 1px solid var(--line); padding: 28px max(24px, 4vw); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; color: var(--soft); font-size: 15px; }
.foot .logo { font-size: 18px; color: var(--text); margin-right: auto; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

/* signing in and making an account: one card (board R, direction 1), a username and a password; it says which it is in data-mode */
.card { width: min(380px, calc(100vw - 32px)); padding: 28px; border-radius: 12px; border: 1px solid rgba(247, 243, 232, .18); background: rgba(12, 22, 26, .96); color: var(--text); }
.card::backdrop { background: rgba(12, 22, 26, .6); backdrop-filter: blur(3px); }
.card .step { display: flex; flex-direction: column; gap: 14px; }
.card h2 { margin: 0; font-size: 28px; }
.card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.field input { min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(247, 243, 232, .3); background: transparent; color: var(--text); font: 16px 'Nunito Sans', system-ui, sans-serif; }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid] { border-color: var(--warn); }
.field .err, .human .err { font-size: 13px; line-height: 1.4; color: var(--warn); } .field .err:empty, .human .err:empty { display: none; } /* (a refusal's words, under its field) */
/* the bot check on Make your account (Cloudflare Turnstile's widget: site/turnstile.js), there only when Cloudflare wants a click
   (data-shown), and a failed check's words under it; with neither, it takes no room (its gap in the card given back) */
.card .human { display: flex; flex-direction: column; gap: 6px; }
.card .human:not(:has([data-shown], .err:not(:empty))) { margin-top: -14px; }
.card .human [data-turnstile]:not([data-shown]) { margin-bottom: -6px; }
.card[data-mode="signin"] [data-show="signup"], .card[data-mode="signup"] [data-show="signin"] { display: none; }
.card .gold:disabled { opacity: .6; cursor: progress; }
.or { text-align: center; color: var(--dim); font-size: 13px; }
.close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--soft); font-size: 24px; line-height: 1; cursor: pointer; }

/* the credits page */
.credits { max-width: 820px; margin: 0 auto; padding: 64px max(24px, 4vw) 96px; display: flex; flex-direction: column; gap: 36px; }
.credits h1 { margin: 0; font-size: 48px; }
.credits h2 { margin: 0 0 12px; font-size: 24px; }
.credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.credits li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.credits li b { font-weight: 800; }
.credits .tag { font-size: 13px; color: var(--gold); }

/* a phone: the words over the lower part of the picture, the rows stacked */
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, rgba(12, 22, 26, .92) 0%, rgba(12, 22, 26, .7) 45%, rgba(12, 22, 26, .1) 80%); }
  .pitch { margin: auto 0 0; padding-bottom: 48px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 24px; }
  .row.flip img { order: 0; }
  main { padding-top: 64px; gap: 64px; }
  .bar .who .dim { display: none; } /* (a phone: the name and Sign out alone) */
}
