/* Aloha Rush — shared styles.
   Palette is taken from the game's own island renderer, not from stock
   tropical clip-art: deep water, volcanic dusk, sand. */

:root {
  --ink:        #0B1626;
  --ink-2:      #101F33;
  --ink-3:      #16293F;
  --line:       #24374F;
  --text:       #EAF1F7;
  --text-dim:   #A9BCCE;
  --text-faint: #7D93A8;
  --surf:       #35D4D4;
  --sun:        #FFB05C;
  --ember:      #E9603E;
  --orchid:     #8A3476;
  --radius:     16px;
  --maxw:       1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.021em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--surf); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2rem); }

/* ---------- accessibility ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--sun); color: var(--ink); padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,22,38,.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 1.4rem; height: 60px; }
.nav .brand {
  font-weight: 700; letter-spacing: -.02em; text-decoration: none;
  color: var(--text); font-size: 1.06rem; margin-right: auto;
  display: flex; align-items: center; gap: .55rem;
}
.nav .brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nav a.link { color: var(--text-dim); text-decoration: none; font-size: .93rem; }
.nav a.link:hover { color: var(--text); }
@media (max-width: 700px) { .nav a.link.hide-sm { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 26px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-faint); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255,176,92,.20), transparent 58%),
    radial-gradient(95% 80% at 12% 22%, rgba(138,52,118,.30), transparent 62%),
    linear-gradient(178deg, #16113A 0%, #1B2A50 42%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1.08fr .92fr;
  padding-top: clamp(3.2rem, 8vw, 6rem); padding-bottom: clamp(3.2rem, 8vw, 6rem);
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; letter-spacing: .2em; font-size: .72rem; font-weight: 650;
  text-transform: uppercase; color: var(--sun); margin-bottom: 1.1rem;
}
.hero p.lead { font-size: clamp(1.06rem, 2.1vw, 1.24rem); color: var(--text-dim); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.5rem; font-size: .88rem; color: var(--text-faint); }

/* phone frame */
.shot {
  border-radius: 30px; border: 1px solid var(--line); display: block; width: 100%;
  height: auto; background: var(--ink-2);
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.hero-shot { max-width: 290px; margin-inline: auto; }

/* ---------- sections ---------- */

section { padding: clamp(3.4rem, 8vw, 5.6rem) 0; }
section.alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-dim); margin-bottom: 0; }

.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.35rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-dim); font-size: .95rem; margin-bottom: 0; }
.card .k {
  display: block; font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--sun); margin-bottom: .1rem;
}
.card .k-sub { font-size: .88rem; color: var(--text-faint); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .86rem; color: var(--text-faint); margin-top: .6rem; }

/* island list */
.islands { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.island {
  border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1.05rem;
  background: var(--ink-3);
}
.island b { display: block; letter-spacing: .04em; font-size: .95rem; }
.island span { font-size: .87rem; color: var(--text-faint); }

/* status table */
.status { width: 100%; border-collapse: collapse; font-size: .95rem; }
.status caption { text-align: left; color: var(--text-faint); font-size: .88rem; padding-bottom: .8rem; }
.status th, .status td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.status th { color: var(--text-faint); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.status td:first-child { font-weight: 600; }
.pill { display: inline-block; font-size: .78rem; font-weight: 650; padding: .18rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill-yes  { background: rgba(53,212,212,.16); color: #7BE6E6; }
.pill-part { background: rgba(255,176,92,.16); color: var(--sun); }
.pill-no   { background: rgba(233,96,62,.16); color: #FF8E6E; }

/* prose pages */
.prose { max-width: 42rem; padding-block: clamp(2.6rem, 6vw, 4rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; color: var(--text-dim); }
.prose li { margin-bottom: .45rem; }

/* form */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .87rem; color: var(--text-dim); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: .72rem .85rem; color: var(--text); font: inherit; font-size: .96rem; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .87rem; color: var(--text-faint); }

/* footer */
footer.site {
  border-top: 1px solid var(--line); background: var(--ink-2);
  padding: 2.6rem 0; font-size: .9rem; color: var(--text-faint);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .spacer { margin-left: auto; }

/* The status table carries three columns of prose. That is a table on a
   desktop and an unreadable smear on a phone, so below 700px each row
   becomes its own labelled block instead of being squeezed or side-scrolled. */
@media (max-width: 700px) {
  .status, .status tbody, .status tr, .status td { display: block; width: 100%; }
  .status thead { display: none; }
  .status tr {
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--ink-3); padding: .3rem .2rem; margin-bottom: .8rem;
  }
  .status td { border-bottom: 0; padding: .45rem .9rem; }
  .status td[data-label="Item"] { font-size: 1.05rem; padding-top: .8rem; }
  .status td[data-label="Detail"] { color: var(--text-dim); font-size: .93rem; padding-bottom: .9rem; }
  .status td[data-label="Detail"]::before {
    content: attr(data-label);
    display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
    color: var(--text-faint); margin-bottom: .2rem;
  }
}

/* Two-column text-and-device block used inside a section. */
.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1.08fr .92fr;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
