/* Cedarstep Studios site. Colours follow the app's Carbon & Cream theme. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --well: #202325;
  --panel: #292d2f;
  --ink: #111216;
  --cream: #fbf0e2;
  --cream-dim: #c9c0b4;
  --cream-faint: #8d877f;
  --amber: #f4ae52;
  --coral: #ed9d8e;
  --mint: #8dd4b1;
  --sky: #9fc8ea;
  --line: rgba(251, 240, 226, 0.1);
  --radius: 22px;
  --max: 1120px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--well);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Draft banner: remove before launch */
.draft {
  position: relative;
  z-index: 3;
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 16px;
}

/* Header */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.top .logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: 24px; }
.top nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.top nav a:hover,
.top nav a[aria-current="page"] { color: var(--cream); }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h1 em, h2 em { font-style: normal; color: var(--amber); }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.lede {
  font-size: 19px;
  color: var(--cream-dim);
  max-width: 30em;
  margin: 24px 0 0;
}

/* Full-bleed hero: art on the right, words over the dark left side */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  margin-top: -84px; /* tuck the art up behind the header */
  padding-block: 120px 80px;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  z-index: 0;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--well) 0%, rgba(32, 35, 37, 0) 30%),
    linear-gradient(0deg, var(--well) 0%, rgba(32, 35, 37, 0) 22%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 600px; }
.hero .lede { max-width: 22em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* Prize band on the game page: the hero treatment, amber-lit */
.band {
  position: relative;
  min-height: max(600px, 42vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 40%, rgba(244, 174, 82, 0.12), transparent 60%);
}
.band-art {
  position: absolute;
  top: 50%;
  right: 0;
  width: 72%;
  aspect-ratio: 1800 / 1005;
  transform: translateY(-50%);
}
.band-art img { width: 100%; height: 100%; object-fit: cover; }
.band-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--well) 0%, rgba(32, 35, 37, 0) 30%),
    linear-gradient(0deg, var(--well) 0%, rgba(32, 35, 37, 0) 18%),
    linear-gradient(180deg, var(--well) 0%, rgba(32, 35, 37, 0) 22%);
}
.band .wrap { position: relative; z-index: 1; }
.band-copy { max-width: 520px; }
.band h2 { font-size: clamp(36px, 5vw, 60px); }
.band .lede { max-width: 24em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--cream-dim);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23111216' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks strong { color: var(--cream); font-weight: 800; }
.fine { font-size: 13px; line-height: 1.5; color: var(--cream-faint); margin: 28px 0 0; max-width: 36em; }

/* Buttons and badges */
.button {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.button:hover { background: var(--amber); color: var(--ink); }
.button.ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 240, 226, 0.3);
}
.button.ghost:hover { border-color: var(--cream); color: var(--cream); background: transparent; }
.status {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  background: var(--mint);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Sections */
section { padding-block: 80px; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--cream-dim); margin: 14px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card .num {
  font-family: var(--display);
  font-size: 15px;
  color: var(--amber);
  margin-bottom: 18px;
}
.card h3 { font-family: var(--body); font-weight: 800; font-size: 20px; line-height: 1.3; }
.card p { margin: 8px 0 0; color: var(--cream-dim); font-size: 16px; }

/* Feature rows on the game page */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.feature + .feature { margin-top: 72px; }
.feature.flip .feature-art { order: 2; }
.feature-art img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); }
.feature p { color: var(--cream-dim); margin: 16px 0 0; max-width: 28em; }
.chip {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-bottom: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact {
  border-top: 3px solid var(--amber);
  padding-top: 18px;
}
.fact strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; }
.fact span { display: block; color: var(--cream-dim); margin-top: 6px; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact h2 { font-size: 28px; }
.contact p { margin: 8px 0 0; color: var(--cream-dim); }

/* Text pages (support, privacy) */
.page { padding-block: 40px 72px; }
.page .prose { max-width: 44em; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.updated { color: var(--cream-faint); font-size: 15px; margin: 14px 0 0; }
.prose h2 { font-size: 22px; margin: 44px 0 0; }
.prose h3 { font-family: var(--body); font-weight: 800; font-size: 18px; margin: 28px 0 0; }
.prose p, .prose ul { color: var(--cream-dim); margin: 12px 0 0; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--cream); font-weight: 800; }

/* Placeholder text still to be filled in: remove before launch */
.todo {
  background: rgba(244, 174, 82, 0.14);
  color: var(--amber);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 800;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 12px;
}
details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--cream);
}
details p { margin: 10px 0 0; color: var(--cream-dim); }

.note {
  background: var(--panel);
  border-left: 4px solid var(--sky);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  margin-top: 28px;
}
.note p { margin: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--cream-faint);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--cream-faint); text-decoration: none; }
footer a:hover { color: var(--cream); }

@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .top .logo img { height: 30px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 14px; }

  /* Art sits above the words on phones */
  .hero {
    display: block;
    min-height: 0;
    margin-top: 0;
    padding-block: 0 56px;
  }
  .hero-art { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; }
  .hero-art img { object-fit: cover; object-position: right center; }
  .hero-art::after {
    background: linear-gradient(0deg, var(--well) 0%, rgba(32, 35, 37, 0) 40%);
  }
  .hero .wrap { margin-top: -24px; }

  section { padding-block: 56px; }
  .band { display: block; min-height: 0; padding-top: 0; background: none; }
  .band-art { position: relative; top: auto; right: auto; transform: none; width: 100%; aspect-ratio: 4 / 3; }
  .band-art img { object-fit: cover; object-position: 78% center; }
  .band-art::after { background: linear-gradient(0deg, var(--well) 0%, rgba(32, 35, 37, 0) 40%); }
  .band .wrap { margin-top: -16px; }
  .cards, .facts { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-art { order: 0; }
  .feature + .feature { margin-top: 56px; }
}
