/* Orb Lanes landing page.
   Direction: daylight highlands, taken from the key art. Slate ink on pale sky; orb colors only where they mean a color.
   The one bold element: the fanned hand of four color cards breaking out of the hero. Everything else stays quiet. */

/* Alegreya is a variable font: one file covers every weight. */
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url(fonts/Alegreya-900.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url(fonts/AlegreyaSans-400.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/AlegreyaSans-400i.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url(fonts/AlegreyaSans-500.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url(fonts/AlegreyaSans-700.woff2) format("woff2"); }

:root {
  --ink: #1e2a3a;        /* slate ink: text, primary button */
  --ink-soft: #4a5a6e;   /* secondary text */
  --sky: #e6eef3;        /* page: pale highland sky */
  --mist: #d3e1ea;       /* quiet second surface */
  --moss: #46652f;       /* links: the meadow under the monument */
  --ember: #d9602a;
  --grove: #4b8f3d;
  --rime: #4f9bd4;
  --umbra: #7d4fc8;
  --display: "Alegreya", Georgia, serif;
  --text: "Alegreya Sans", system-ui, sans-serif;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0; color: var(--ink); background: var(--sky);
  font: 400 1.125rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--moss); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--rime); outline-offset: 3px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 940px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  padding: 0 clamp(1.25rem, 6vw, 6rem) clamp(2.5rem, 7vh, 5rem);
  background:
    linear-gradient(to bottom, rgba(230,238,243,0) 38%, rgba(230,238,243,.82) 68%, var(--sky) 92%),
    url(key_art.jpg) center top / cover no-repeat;
}
.title { max-width: var(--measure); }
.title h1 {
  font: 900 clamp(4rem, 11vw, 9.5rem)/.82 var(--display);
  letter-spacing: -.035em; margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.45; margin: 0 0 1.8rem; max-width: 30rem; }
.play {
  display: inline-block; background: var(--ink); color: var(--sky);
  font: 700 1.2rem/1 var(--text); padding: 1.05rem 1.9rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(30,42,58,.6);
}
.play:hover { background: #0f1a28; }
.fine { color: var(--ink-soft); font-size: 1rem; margin: .9rem 0 0; }

/* The hand: four cards fanned from a shared pivot, spilling past the hero's bottom edge. */
.hand {
  position: relative; height: 22rem; margin-bottom: -7rem; z-index: 2;
  list-style: none; padding: 0;
}
.card {
  --w: 11.5rem; --spread: 82%; --tilt: 4deg;
  position: absolute; left: 50%; bottom: 0; width: var(--w); aspect-ratio: 5 / 7;
  margin-left: calc(var(--w) / -2);
  background: #f7f3ea; border-radius: 14px; padding: .55rem;
  border: 3px solid var(--c);
  box-shadow: 0 22px 34px -18px rgba(30,42,58,.55), 0 2px 0 rgba(30,42,58,.08);
  transform-origin: 50% 160%;
  transform: rotate(calc((var(--i) - 1.5) * var(--tilt))) translateX(calc((var(--i) - 1.5) * var(--spread)));
  animation: deal 900ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(250ms + var(--i) * 90ms);
}
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.card h3 { font: 700 1.45rem/1.1 var(--display); margin: .5rem .2rem .15rem; color: var(--c); }
.card p { margin: 0 .2rem; font-size: .98rem; line-height: 1.3; color: var(--ink); }
.ember { --c: var(--ember); --i: 0; }
.grove { --c: var(--grove); --i: 1; }
.rime  { --c: var(--rime);  --i: 2; }
.umbra { --c: var(--umbra); --i: 3; }
@keyframes deal {
  from { transform: rotate(0deg) translateX(0) translateY(1.5rem); opacity: 0; }
}

/* ---------- Sections ---------- */
main { padding: 9rem clamp(1.25rem, 6vw, 6rem) 4rem; max-width: 76rem; margin: 0 auto; }
h2 { font: 700 clamp(2rem, 4vw, 2.9rem)/1.05 var(--display); letter-spacing: -.015em; margin: 0 0 1.6rem; }
section + section { margin-top: 6rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 4rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; max-width: 30rem; }
.steps li::before { content: counter(step); font: 900 2.6rem/1 var(--display); color: var(--ink-soft); }
.steps h3 { font: 700 1.3rem/1.2 var(--text); margin: .2rem 0 .3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.void { background: var(--mist); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.void blockquote { margin: 0; font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.12 var(--display); }
.void p { margin: 0 0 1rem; max-width: var(--measure); }
.void p:last-child { margin-bottom: 0; }

.now { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.now figure { margin: 0; }

.now img { height: auto; border-radius: 12px; box-shadow: 0 24px 40px -24px rgba(30,42,58,.6); }
.now figcaption { color: var(--ink-soft); font-size: .95rem; margin-top: .7rem; }
.now p { margin: 0 0 1rem; max-width: var(--measure); }

footer { padding: 3rem clamp(1.25rem, 6vw, 6rem) 3.5rem; color: var(--ink-soft); font-size: 1rem; max-width: 76rem; margin: 0 auto; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  /* The art sits fully above the text instead of behind it. */
  .hero {
    grid-template-columns: 1fr; min-height: auto; padding-top: 50vw;
    background:
      linear-gradient(to bottom, rgba(230,238,243,0) 34vw, var(--sky) 56vw),
      url(key_art.jpg) center top / 100% auto no-repeat, var(--sky);
  }
  .title h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hand { height: 13rem; margin: 2rem 0 -3rem; }
  .card { --w: 7.4rem; --spread: 58%; --tilt: 5deg; padding: .35rem; border-width: 2px; }
  .card h3 { font-size: 1.1rem; }
  .card p { display: none; }
  main { padding-top: 6rem; }
  .steps, .void, .now { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
