/* Lanternline site: the icon's palette (tools/icon/make_icon.py), no web fonts, no scripts.
   Mobile first: one column from 320 px, the grids add columns as they fit, the safe areas kept on notched phones. */
:root {
  --navy-top: #070b1a;
  --navy: #101633;
  --lantern: #d9a340;
  --lantern-hot: #ffe2a3;
  --ink: #f7f2e5;
  --muted: #b9b3a6;
  --gutter: clamp(1rem, 4vw, 1.5rem);
}
* { box-sizing: border-box; }
html { background: var(--navy-top); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-top), var(--navy) 60%, #1b1420);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
main {
  max-width: 42rem; margin: 0 auto;
  padding: 3rem max(var(--gutter), env(safe-area-inset-right)) 4rem max(var(--gutter), env(safe-area-inset-left));
}
h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); line-height: 1.2; margin: 0.2rem 0 0.4rem; letter-spacing: 0.01em; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.4rem; color: var(--lantern-hot); }
p, li { color: var(--ink); overflow-wrap: break-word; }
ul { padding-left: 1.3rem; }
a { color: var(--lantern); text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--lantern-hot); }
.lead { font-size: 1.1rem; border-left: 3px solid var(--lantern); padding-left: 0.9rem; }
.meta, .crumb { color: var(--muted); font-size: 0.9rem; margin: 0; }
.crumb a { color: var(--muted); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; }
.title { font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.links { list-style: none; padding: 0; }
.links li { margin: 0.4rem 0; }

/* ---- the home page ---- */
.home main { max-width: 72rem; padding-top: 0; }
.home h2 { font-size: clamp(1.4rem, 4.2vw, 1.7rem); margin: 0 0 1.2rem; letter-spacing: 0.04em; }
.home h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--lantern-hot); }

/* the bar: the brand and the section links on one row; on a phone the links drop under the brand as a row that scrolls
   sideways, so every section stays one tap away */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem;
  padding: max(0.5rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0.5rem max(var(--gutter), env(safe-area-inset-left));
  background: rgba(7, 11, 26, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 163, 64, 0.18);
}
.brand { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.14em; }
.brand img { border-radius: 8px; }
.bar nav {
  display: flex; gap: 1.1rem; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.bar nav a:hover, .bar nav a:focus { color: var(--lantern-hot); }

/* the hero: the loop fills it, the title sits in the middle; svh so a phone's address bar does not crop it */
.hero {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: min(88vh, 56rem); min-height: min(88svh, 56rem);
  background: #000 url(/media/hero-poster.jpg) center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 11, 26, 0.35), rgba(7, 11, 26, 0.85) 75%), linear-gradient(180deg, rgba(7, 11, 26, 0.2), var(--navy-top)); }
.hero-text { position: relative; text-align: center; padding: clamp(2.5rem, 8vh, 4rem) var(--gutter); max-width: 46rem; width: 100%; }
.hero-icon { width: clamp(72px, 18vw, 112px); height: auto; border-radius: 22%; box-shadow: 0 0 60px rgba(217, 163, 64, 0.35); }
.hero h1 { font-size: clamp(1.75rem, 8.4vw, 5.4rem); letter-spacing: 0.12em; margin: 1rem 0 0.3rem; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.tagline { font-size: clamp(1.05rem, 2.6vw, 1.45rem); margin: 0; }
.platforms { color: var(--lantern-hot); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem; margin: 0.8rem 0 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.7rem 1.4rem; border-radius: 999px; background: var(--lantern); color: var(--navy-top);
  font-weight: 700; text-decoration: none; border: 1px solid var(--lantern);
}
.button:hover, .button:focus { background: var(--lantern-hot); color: var(--navy-top); }
.button.ghost { background: transparent; color: var(--ink); border-color: rgba(247, 242, 229, 0.45); }
.button.ghost:hover, .button.ghost:focus { border-color: var(--lantern-hot); color: var(--lantern-hot); }

.intro { padding: clamp(2rem, 7vw, 3.5rem) 0 1rem; max-width: 48rem; margin: 0 auto; }
.intro .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.band { padding: clamp(2rem, 6vw, 3rem) 0; scroll-margin-top: 6.5rem; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }

.video-frame { border-radius: clamp(8px, 2vw, 14px); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55); border: 1px solid rgba(217, 163, 64, 0.2); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* the grids: whole rows at every width (six cards: 1, 2 or 3 a row; ten shots: 2 or 5 a row) */
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card { padding: 1.2rem 1.3rem; border-radius: 12px; background: rgba(16, 22, 51, 0.7); border: 1px solid rgba(217, 163, 64, 0.16); }
.card p { margin: 0; color: var(--ink); opacity: 0.92; }

.circuits { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.circuit { margin: 0; border-radius: 14px; overflow: hidden; background: rgba(16, 22, 51, 0.7); border: 1px solid rgba(217, 163, 64, 0.16); }
.circuit img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.circuit figcaption { padding: 1rem 1.3rem 1.2rem; }
.circuit figcaption p { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.5rem, 1.5vw, 0.8rem); }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(217, 163, 64, 0.16); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img, .gallery a:focus img { transform: scale(1.04); }

/* the lightbox: a tap anywhere closes it; the label says so on a touch screen, where there is no zoom-out cursor */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 20; background: rgba(4, 6, 14, 0.94); place-items: center;
  padding: max(3.75rem, calc(env(safe-area-inset-top) + 3rem)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.lightbox:target { display: grid; }
.lightbox img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7); pointer-events: none; }
.lightbox .close { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox .close::after {
  content: "Close \2715"; position: absolute; top: max(0.9rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right));
  padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.95rem; color: var(--ink);
  background: rgba(16, 22, 51, 0.9); border: 1px solid rgba(217, 163, 64, 0.3);
}

.foot {
  text-align: center; border-top: 1px solid rgba(217, 163, 64, 0.14);
  padding: 2rem max(var(--gutter), env(safe-area-inset-right)) max(3rem, calc(env(safe-area-inset-bottom) + 1.5rem)) max(var(--gutter), env(safe-area-inset-left));
}
.foot p { color: var(--muted); font-size: 0.88rem; margin: 0.3rem 0; }
.foot a { color: var(--muted); }

/* tablets and up */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .circuits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(5, 1fr); }
}
/* phones */
@media (max-width: 720px) {
  .bar nav { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); width: calc(100% + 2 * var(--gutter)); max-width: none; }
  .bar nav a { min-height: 40px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 20rem; margin: 0 auto; }
  .platforms { letter-spacing: 0.14em; }
}
/* a phone on its side: the hero fills the screen, the icon steps aside so the title and the buttons fit */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-icon { display: none; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 3rem); margin-top: 0; }
  .platforms { margin: 0.5rem 0 1rem; }
  .cta { flex-direction: row; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .gallery img { transition: none; }
  .gallery a:hover img, .gallery a:focus img { transform: none; }
}
