/* Little Horizons website: the game's own paper, cocoa ink and clay colours, its rounded display face for headings,
   and one reading column for the policy pages. */
:root {
  --paper: #fffaf3;
  --card: #ffffff;
  --ink: #4a3426;
  --soft: #7a6555;
  --line: #efe4d4;
  --green: #5c8242;
  --butter: #f2d58a;
  --sky: #a9cbea;
  --on-green: #fffaf0;
  color-scheme: light;
  --display: "DynaPuff", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* A soft ramp down the page, from the cream of paper to a warm sand. */
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fffaf3 0%, #fdf2e3 40%, #f8e8d2 100%); background-color: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }

/* The bar along the top of every page. */
.top { padding-block: 14px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; }

/* Home. The bar floats over the hero picture. */
.home { position: relative; }
.home .top.over { position: absolute; inset: 0 0 auto 0; z-index: 2; padding-block: 16px; }
.home .top.over .brand, .home .top.over nav a { color: #fffaf0; text-shadow: 0 2px 8px rgba(40, 24, 12, 0.45); }

/* The picture is at least the frame's shape and grows taller whenever the words need more room. */
.hero { position: relative; aspect-ratio: 1920 / 860; width: 100%; display: grid; }
.hero picture, .hero picture img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero::after { content: ""; grid-area: 1 / 1; background: linear-gradient(180deg, rgba(30, 20, 40, 0.25) 0%, transparent 22%, transparent 55%, rgba(31, 22, 16, 0.55) 100%); }
.hero-words { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 72px 20px clamp(40px, 7vw, 120px); text-align: center; gap: 18px; }
.hero .logo { width: min(48%, 540px); filter: drop-shadow(0 6px 14px rgba(70, 40, 20, 0.3)); margin-top: clamp(16px, 5.5vw, 110px); }
.tagline { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2rem); color: #fffaf0; text-shadow: 0 3px 12px rgba(30, 18, 8, 0.6); text-wrap: balance; }
.soon { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; color: var(--soft); }
.hero .soon, .finale .soon { color: #f4e9d8; text-shadow: 0 2px 6px rgba(30, 18, 8, 0.6); }
@media (max-width: 700px) {
  .hero { aspect-ratio: 9 / 15; max-height: 100svh; }
  .hero .logo { width: 82%; margin-top: 12vw; }
}

/* The official store badges, both shown at the same height (Google's has clear space built into its picture). */
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.badge { display: block; line-height: 0; }
.badge.apple img { height: 60px; width: auto; }
.badge.google img { height: 89px; width: auto; margin: -14px -11px; }

.intro { padding-block: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.intro p { max-width: 62ch; color: var(--soft); font-size: 1.1rem; }

/* Three things you do, each over a picture. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 24px 72px; max-width: 1320px; }
.features article { background: var(--card); border: 2px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.features img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.features h3 { padding: 22px 24px 8px; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.features p { padding: 0 24px 26px; color: var(--soft); font-size: clamp(1rem, 1.2vw, 1.1rem); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.section-head, .gallery-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.section-head p, .gallery-head p { max-width: 62ch; color: var(--soft); }

/* Day and night: a band in the game's night blues, with a slider between the two pictures. */
.daynight { padding-block: 40px 24px; }
.compare { position: relative; margin-top: 32px; border-radius: 24px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 10px 0 rgba(74, 52, 38, 0.15); aspect-ratio: 16 / 10; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .night { clip-path: inset(0 0 0 var(--cut)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: #fffaf0; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); }
.compare .handle::after { content: "☀ ☾"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fffaf0; color: #1d2740; border-radius: 999px; padding: 8px 12px; font-size: 1rem; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(input:focus-visible) { outline: 3px solid #f2d58a; outline-offset: 4px; }

/* A strip of pictures that scrolls sideways and snaps. */
.gallery-head { padding-block: 72px 24px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 720px); gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 8px max(20px, calc((100vw - 1100px) / 2)) 28px; scroll-padding-inline: max(20px, calc((100vw - 1100px) / 2)); }
.gallery figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.gallery img { border-radius: 20px; border: 3px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: 0 8px 0 rgba(74, 52, 38, 0.15); }
.gallery figcaption { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.gallery:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }


/* The last call, over the town at evening. */
.finale { position: relative; display: grid; overflow: hidden; color: #fffaf0; text-align: center; }
.finale > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.finale::after { content: ""; grid-area: 1 / 1; background: linear-gradient(180deg, rgba(25, 18, 35, 0.35), rgba(25, 18, 35, 0.7)); }
.finale .wrap { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-block: 110px; }
.finale p { max-width: 52ch; color: #f4e9d8; }
.finale h2 { text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45); }

/* Policy and support pages. */
.page { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.page header { display: flex; flex-direction: column; gap: 8px; }
.page .meta { color: var(--soft); font-size: 0.95rem; }
.page section { display: flex; flex-direction: column; gap: 10px; }
.page ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.email { font-family: var(--display); font-size: 1.2rem; }

footer { border-top: 2px solid var(--line); padding-block: 24px 40px; color: var(--soft); font-size: 0.95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--soft); }
.gallery::-webkit-scrollbar { display: none; }
.gallery { cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery.dragging { cursor: grabbing; }
.gallery img { pointer-events: none; }
