/* Styles for the public website pages (landing, about, updates, FAQ, policies, press, brand, 404).
   Plain CSS, no JavaScript needed, so the pages load fast and search engines can read them.
   Colours match the game's tokens in src/styles/theme.css. */
:root {
  --roof: #b4532a;
  --roof-dark: #8a3b12;
  --adire: #2e3a87;
  --palm: #2f8f5b;
  --gold: #c9962c;
  --laterite: #f6efe6;
  --surface: #ffffff;
  --surface-2: #f1e7da;
  --ink: #1e1712;
  --ink-2: #6b5d50;
  --line: #e6d9c8;
  --aso-oke: repeating-linear-gradient(90deg, var(--roof) 0 16px, var(--gold) 16px 20px, var(--adire) 20px 34px, var(--palm) 34px 37px, var(--gold) 37px 40px);
  --display: 'Bricolage Grotesque', system-ui, 'Segoe UI', Roboto, sans-serif;
  font-family: 'DM Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--laterite);
}

@media (prefers-color-scheme: dark) {
  :root {
    --roof: #d2693a;
    --adire: #7f8df0;
    --palm: #47b57a;
    --gold: #e3b347;
    --laterite: #16110d;
    --surface: #221b16;
    --surface-2: #2c241e;
    --ink: #f5ede3;
    --ink-2: #b5a797;
    --line: #3a3029;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.55;
}

a {
  color: var(--adire);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
}
h3 {
  font-size: 1.1rem;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* --- Top bar --- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--laterite) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-top::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--aso-oke);
}

.site-top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brandmark span {
  color: var(--roof);
}

.site-nav {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #d77245, var(--roof) 60%, var(--roof-dark));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(138, 59, 18, 0.3);
}

.btn.small {
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: none;
}

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(#3b78b8, #8cc3e6 55%, #f4dfc4);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 44px 0 190px;
  text-align: center;
}

.hero img.mark {
  width: 96px;
  height: 96px;
}

.hero h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #ffd38a;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 1.12rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero .skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 210px;
  background: url('/skyline.svg') repeat-x bottom / auto 100%;
}

.count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
}

.count[hidden] {
  display: none;
}

.count i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fe0a8;
}

/* --- Sections --- */
section {
  padding: 44px 0;
}

section.alt {
  background: var(--surface-2);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roof);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.shots {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.shots img {
  flex: none;
  width: 220px;
  height: auto;
  border-radius: 26px;
  border: 6px solid #120d0a;
}

details {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 10px;
}

summary {
  font-weight: 700;
  cursor: pointer;
}

.creator {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  color: var(--ink-2);
  font-size: 0.7rem;
  text-align: center;
}

/* --- Article pages (about, FAQ, policies, updates) --- */
article {
  padding: 32px 0 48px;
}

article .wrap {
  max-width: 720px;
}

article h2 {
  margin-top: 28px;
}

.entry {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 12px;
}

.entry time {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--roof);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.swatch {
  padding: 46px 10px 10px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.logos figure {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.logos figure.dark {
  background: #1e1712;
  color: #fff;
}

.logos img {
  max-width: 100%;
  height: 80px;
}

/* --- Footer --- */
footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-2);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}

footer a {
  color: var(--ink-2);
}
