/* playglassbinder.com: the game's look on the web (docs/styleguide.md): midnight glass with a thin pale rim, a clean
   modern sans in capitals with air for titles, cool white text, gold only for what's chosen, the four factions'
   colours for their heroes. No filigree, no parchment. */
@font-face { font-family: Display; font-weight: 500; src: local("AvenirNext-Medium"), local("Avenir Next Medium"); }
@font-face { font-family: Display; font-weight: 600 700; src: local("AvenirNext-DemiBold"), local("Avenir Next Demi Bold"); }
@font-face { font-family: Display; font-weight: 800 900; src: local("AvenirNext-Bold"), local("Avenir Next Bold"); }

:root {
  color-scheme: dark;
  /* Avenir Next where it's installed (iPhone, Mac), the system's own sans elsewhere; no web fonts, so no visitor is
     sent to a font host */
  --display: Display, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --line-rgb: 214 224 245; --gold-rgb: 226 189 106;
  --rim-faint: rgb(var(--line-rgb) / .12); --rim: rgb(var(--line-rgb) / .2); --rim-strong: rgb(var(--line-rgb) / .34);
  --gold: #e2bd6a; --gold-hi: #ffe3a0;
  --cream: #f5f7fb; --ink: #e3e7f0; --soft: #c4cad8; --muted: #9aa2b8;
  --bg: #050914; --bg-2: #0a1024;
  --glass: rgba(10, 15, 34, .72); --glass-deep: rgba(6, 9, 24, .9);
  --highborn: #ffd36a; --drakmor: #ff7a3a; --umbral: #c39bff; --runeforge: #5ff5e0;
  --legendary: #ffd36a; --violet: #c39bff;
  --r: 12px; --r-l: 18px; --pill: 999px;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--ui); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* titles and labels: the display face in capitals with air */
.cap, h1, h2, h3, .btn, .nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; }
h2 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; color: var(--cream); margin: 0 0 12px; letter-spacing: .12em; }
.eyebrow { font: 600 12px/1.4 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--soft); max-width: 46ch; }
.dim { color: var(--muted); }

/* the bar along the top: clear over the hero art, glass once the page scrolls */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 9, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--rim-faint); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--rim); }
.brand b { font: 700 15px var(--display); letter-spacing: .22em; color: var(--cream); }
.nav .links { display: contents; }
.nav a:not(.brand) { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--soft); padding: 12px 0; }
.nav a:not(.brand):hover { color: var(--cream); }
.nav .soon { font: 600 11px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgb(var(--gold-rgb) / .45); border-radius: var(--pill); padding: 7px 14px; }

/* the hero: the Sanctum full width, the featured Legendary on the left, the words on the right */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 30% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 30%, rgb(5 9 20 / .55) 58%, rgb(5 9 20 / .88) 100%),
              linear-gradient(transparent 70%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; display: flex; justify-content: flex-end; padding-top: 80px; padding-bottom: 80px; }
.hero-copy { width: min(500px, 100%); }
.hero h1 { margin: 0; line-height: .95; color: var(--cream); font-weight: 600; letter-spacing: .1em; font-size: clamp(40px, 6.4vw, 78px);
  text-shadow: 0 0 40px rgb(140 170 255 / .35); }
.hero h1 small { display: block; margin-top: 14px; font-size: .3em; letter-spacing: .5em; color: var(--gold); font-weight: 600; }
.hero .lead { margin: 22px 0 28px; color: var(--ink); }
.credit { position: absolute; left: var(--gutter); bottom: 28px; z-index: 1; display: flex; align-items: center; gap: 10px;
  font: 600 11px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.credit i { width: 8px; height: 8px; border-radius: 50%; background: var(--legendary); box-shadow: 0 0 10px var(--legendary); }

/* the store buttons: "coming soon" until the store links go in (site.js STORE) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: var(--r);
  background: rgb(4 7 18 / .78); border: 1px solid var(--rim-strong); color: var(--cream); text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font: 600 18px var(--ui); letter-spacing: .01em; }
.store small { font: 600 10px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
a.store:hover { border-color: rgb(var(--gold-rgb) / .7); }
.store[aria-disabled="true"] { cursor: default; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* sections */
section { padding: clamp(48px, 7vw, 92px) 0; position: relative; }
.story { text-align: center; }
.story .lead { margin: 0 auto; max-width: 60ch; }
.story .shard { width: 1px; height: 64px; margin: 0 auto 28px; background: linear-gradient(transparent, var(--gold)); }

/* the Legendaries: one painting on stage, its hero's card beside it, faces to choose from below */
.legends { background: radial-gradient(80% 60% at 50% 0%, #121a3a 0%, transparent 70%); }
.legends header { margin-bottom: 32px; }
.stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--rim); background: var(--glass-deep); box-shadow: 0 30px 80px #000a; --fc: var(--umbral); }
.stage figure { margin: 0; position: relative; aspect-ratio: 3 / 2; background: #0a0f22; }
.stage figure img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.stage figure img.fading { opacity: 0; }
.card { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--rim-faint);
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 14%, transparent), transparent 55%); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 600 10.5px var(--display); letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--pill);
  border: 1px solid var(--rim); color: var(--soft); }
.tag.rar { color: var(--legendary); border-color: rgb(255 211 106 / .5); }
.tag.fac { color: var(--fc); border-color: color-mix(in srgb, var(--fc) 50%, transparent); }
.card h3 { margin: 4px 0 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: .12em; color: var(--cream); line-height: 1.05; }
.card .title { margin: 0; font: 500 13px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--fc); }
.card .rule { margin: 6px 0 0; color: var(--ink); }
.card .bio { margin: 0; color: var(--muted); font-size: 15px; }
.ult { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rim-faint); font-size: 13px; color: var(--muted); }
.ult b { display: block; font: 600 15px var(--display); letter-spacing: .18em; color: var(--cream); }
.picks { display: flex; gap: 10px; margin-top: 20px; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 8px 4px; border: 0; background: none;
  color: var(--muted); cursor: pointer; border-radius: var(--r); font: 600 10.5px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.pick img { width: 60px; height: 60px; border-radius: 50%; opacity: .6; transition: opacity .2s, transform .2s, box-shadow .2s; }
.pick:hover img { opacity: .9; }
.pick[aria-selected="true"] { color: var(--cream); }
.pick[aria-selected="true"] img { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold), 0 0 22px rgb(var(--gold-rgb) / .5); }

/* features: glass tiles with a thin rim */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feat { padding: 26px 24px; border-radius: var(--r-l); background: var(--glass); border: 1px solid var(--rim-faint); }
.feat h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .18em; color: var(--cream); display: flex; align-items: center; gap: 12px; }
.feat h3::before { content: ""; width: 18px; height: 1px; background: var(--ac, var(--gold)); box-shadow: 0 0 8px var(--ac, var(--gold)); }
.feat p { margin: 0; color: var(--soft); font-size: 15px; }

/* the shots: a wide painting and two smaller ones */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 36px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--rim-faint); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgb(4 7 18 / .9));
  font: 600 11px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.gallery figcaption b { color: var(--cream); font-weight: 600; }

/* the four factions and their heroes */
.factions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.faction { padding: 22px 20px; border-radius: var(--r-l); border: 1px solid var(--rim-faint); --fc: var(--gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 12%, transparent), var(--glass) 60%); }
.faction h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .2em; color: var(--fc); }
.faction p { margin: 2px 0 16px; font-size: 13px; color: var(--muted); }
.faces { display: flex; flex-wrap: wrap; gap: 8px; }
.faces img { width: 48px; height: 48px; border-radius: 50%; }
.faction.highborn { --fc: var(--highborn); } .faction.drakmor { --fc: var(--drakmor); }
.faction.umbral { --fc: var(--umbral); } .faction.runeforge { --fc: var(--runeforge); }

/* the odds, in plain sight */
.odds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin: 40px auto 0; padding: 18px 24px;
  border-radius: var(--pill); border: 1px solid var(--rim-faint); background: var(--glass); width: fit-content; max-width: 100%; font-size: 14px; color: var(--soft); }
.odds b { font: 600 12px var(--display); letter-spacing: .18em; text-transform: uppercase; margin-right: 6px; }
.odds .l { color: var(--legendary); } .odds .e { color: var(--violet); } .odds .r { color: #7ad8ff; }

/* the last call: Inara in her throne hall, the stores again */
.closer { min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.closer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.closer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 9 20 / .92) 0%, rgb(5 9 20 / .6) 45%, transparent 75%),
  linear-gradient(var(--bg), transparent 8%, transparent 85%, var(--bg)); }
.closer .wrap { position: relative; z-index: 1; width: 100%; }
.closer h2 { font-size: clamp(28px, 4.4vw, 52px); max-width: 14ch; line-height: 1.1; }
.closer .lead { margin: 0 0 28px; }

/* the foot */
footer { border-top: 1px solid var(--rim-faint); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-right: auto; }
footer a { text-decoration: none; color: var(--soft); padding: 10px 0; display: inline-block; }
footer a:hover { color: var(--cream); }

/* the policy and support pages: one readable column */
.page { max-width: 720px; margin: 0 auto; padding: 112px var(--gutter) 72px; }
.page h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; color: var(--cream); margin: 0 0 6px; letter-spacing: .1em; line-height: 1.2; }
.page h2 { font-size: 15px; letter-spacing: .18em; color: var(--gold); margin: 36px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 20px; }
.page a { color: var(--gold); }
.page .meta { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.page .box { padding: 20px 22px; border-radius: var(--r-l); border: 1px solid var(--rim); background: var(--glass); margin: 24px 0; }
.page .box p { margin: 0; }
.page dt { font-weight: 600; color: var(--cream); margin-top: 22px; }
.page dd { margin: 4px 0 0; color: var(--soft); }
.notfound { min-height: 80vh; display: grid; place-content: center; text-align: center; }

@media (max-width: 980px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .factions { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; }
  .card { border-left: 0; border-top: 1px solid var(--rim-faint); }
}
/* phones: the hero art becomes a tall crop on Vela with the words below her */
@media (max-width: 720px) {
  .nav .links { display: none; }
  .hero { min-height: 0; display: block; }
  .hero picture { position: relative; display: block; height: 72svh; min-height: 440px; }
  .hero picture img { object-position: 50% 30%; }
  .hero::after { background: linear-gradient(transparent 38%, var(--bg) 72svh); }
  .hero .wrap { margin-top: -140px; padding-top: 0; padding-bottom: 56px; }
  .credit { top: calc(72svh - 190px); bottom: auto; display: none; }
  .feats, .factions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure:first-child { grid-row: auto; }
  .odds { border-radius: var(--r-l); }
  .closer { min-height: 0; display: block; padding-top: 0; }
  .closer > img { position: relative; height: 380px; object-position: 62% 10%; }
  .closer::after { background: linear-gradient(transparent 200px, var(--bg) 380px); }
  .closer .wrap { margin-top: -60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
