/* Wakeport website. Colours are the game's Şafak palette (packages/dalga-shared/src/art/palette.ts):
   the dawn sky, the skyline's plum, the harbour's teal and the outline ink. One family: the system
   rounded face the game's own buttons use. No web fonts, no scripts, no cookies. */
:root {
  --ink: #2a1e3f;
  --plum: #5d3d6c;
  --plum-deep: #472f55;
  --lavender: #a595de;
  --orchid: #cda0da;
  --pink: #f2aac6;
  --peach: #ffc6a4;
  --apricot: #ffddb0;
  --teal: #0f7f90;
  --teal-deep: #0a6e80;
  --paper: #fcf8fb;
  --line: #e7dcea;
  --muted: #6b5a78;
  /* Rounded where the system has it (Apple devices), else the system face: both cover Turkish. */
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--plum); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

/* The dawn: the home page's one loud moment, and a slim band on the other pages. */
.dawn {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--orchid) 32%, var(--pink) 58%, var(--peach) 82%, var(--apricot) 100%);
}

.hero {
  padding: 3rem 1rem 0;
  overflow-x: clip;
}

.hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero-text { padding-bottom: 1rem; }

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 6px 18px rgba(42, 30, 63, 0.28);
}

.wordmark {
  margin: 1.25rem 0 0;
  font-size: clamp(3.25rem, 14vw, 6rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--plum-deep);
  max-width: 26ch;
  text-wrap: balance;
}

/* The phone hangs from the dawn into the harbour, painted above the water below it. */
.phone {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(300px, 78vw);
  margin-bottom: -4.5rem;
  border-radius: 38px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 24px 48px rgba(71, 47, 85, 0.35);
  overflow: hidden;
}

.phone img { border-radius: 30px; }

/* The harbour: everything after the dawn sits on its water. */
.harbour {
  background: var(--teal);
  color: #ffffff;
  padding: 6.5rem 1rem 3.5rem;
}

.harbour-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.harbour p { margin: 0 0 1rem; max-width: 36rem; font-size: 1.15rem; }
.harbour .soon { margin-top: 1.75rem; font-weight: 700; color: var(--apricot); }

.how {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.how figure { margin: 0; justify-self: center; width: min(260px, 70vw); }
.how figure img { border-radius: 28px; border: 6px solid var(--ink); }
.how figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.how h2 { margin: 0 0 0.75rem; font-size: 1.5rem; line-height: 1.2; color: var(--plum-deep); }
.how p { margin: 0 0 0.9rem; max-width: 36rem; }

/* Documents: privacy policy and support. */
.band {
  padding: 1rem;
}

.band a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.band img { width: 40px; height: 40px; border-radius: 10px; }

.doc {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.doc h1 { margin: 0; font-size: 2.1rem; line-height: 1.15; color: var(--ink); }
.doc h2 { margin: 2.25rem 0 0.5rem; font-size: 1.3rem; line-height: 1.25; color: var(--plum-deep); }
.doc .updated { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.doc .switch { margin: 1.25rem 0 0; padding: 0.75rem 1rem; background: #f4ecf6; border-radius: 12px; }
.doc p, .doc li { max-width: 36rem; }
.doc ul { padding-left: 1.25rem; }
.doc address { font-style: normal; }

.lang-block + .lang-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--line);
}

/* The night band at the bottom, the game's HUD plum. */
.footer {
  background: var(--plum-deep);
  color: #f6eefb;
  padding: 2rem 1rem 2.5rem;
  font-size: 0.95rem;
}

.footer-inner { max-width: 64rem; margin: 0 auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.footer a { color: #ffffff; font-weight: 700; }
.footer a:hover { color: var(--apricot); }
.footer p { margin: 0; color: #d9c8e3; }

@media (min-width: 760px) {
  .hero { padding-top: 4rem; }
  .hero-inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .hero-text { padding-bottom: 6rem; }
  .phone { margin-bottom: -5rem; }
  .how { grid-template-columns: auto 1fr; gap: 3.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1630;
    --ink: #f6eefb;
    --plum-deep: #e0c8ec;
    --muted: #bfaecd;
    --line: #3a2c4d;
  }
  .dawn .wordmark, .band a { color: #2a1e3f; }
  .dawn .tagline { color: #472f55; }
  .phone, .how figure img { border-color: #2a1e3f; }
  .doc .switch { background: #2c2040; }
  a { color: #7fd6cf; }
  a:hover { color: var(--peach); }
}
