/* Coastoria site — the game's M43 "Golden Hour Glass" look:
   the park is the star, words sit on frosted cream glass, navy ink,
   the sunset only on the mark and the one primary action.
   Colours = theme-park/ui/ui_tokens.gd. */

@font-face {
  font-family: Outfit;
  src: url("Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #14213d;
  --dim: #4b566b;
  --faint: #687388;
  --cream: #fffbf4;
  --glass: rgba(255, 251, 244, 0.86);
  --card: rgba(255, 255, 255, 0.97);
  --border: rgba(20, 33, 61, 0.12);
  --tint: rgba(20, 33, 61, 0.06);
  --shadow: 0 5px 28px rgba(20, 33, 61, 0.16);
  --shadow-control: 0 2px 10px rgba(20, 33, 61, 0.11);
  --sunset-from: #f5603f;
  --sunset-to: #ff9142;
  --accent-text: #c2401f;
  --r-s: 14px;
  --r-l: 24px;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 500 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream) url("park.jpg") center 40% / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* phones: lighter image, no fixed attachment (iOS/Android repaint cost) */
@media (max-width: 700px) {
  body { background-image: url("park_1024.jpg"); background-attachment: scroll;
         background-position: 62% top; background-size: auto 100vh; background-repeat: repeat-y; }
}

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--sunset-from); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 251, 244, 0.95); }
}

/* the wordmark: the mark is the C, "oastoria" follows on its baseline
   (ui/wordmark.gd: mark = 1.12 em, bowl foot at 104/120, letters from x 0.80) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 1.12em;
  height: 1.12em;
  margin-right: -0.2em;
  position: relative;   /* inline-flex baseline = the image's bottom; */
  top: 0.15em;          /* drop it so the bowl's foot sits on the baseline */
}

.caps {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-control);
}
.pill:hover { color: var(--ink); background: #fff; }
.pill.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sunset-from), var(--sunset-to));
  box-shadow: 0 4px 16px rgba(245, 96, 63, 0.35);
}
.pill.primary:hover { color: #fff; filter: brightness(1.04); }

/* ---- landing ---- */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.hero .glass {
  width: min(100%, 34rem);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.hero .wordmark { font-size: clamp(2.6rem, 11vw, 3.6rem); }
.hero .caps { margin: 0.9rem 0 1.4rem; }
.hero p { margin: 0 0 0.4rem; color: var(--dim); }
.hero p[lang="de-CH"] { color: var(--faint); font-size: 0.95rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.6rem 0 1.2rem; }
.hero .foot { font-size: 0.85rem; color: var(--faint); }
.hero .foot a { color: var(--faint); }

/* ---- document pages ---- */
.bar {
  position: sticky;
  top: 12px;
  z-index: 2;
  width: min(calc(100% - 32px), 46rem);
  margin: 12px auto 0;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 999px;
}
.bar .wordmark { font-size: 1.45rem; }
.bar nav { display: flex; gap: 0.4rem; }
.bar .pill { padding: 0.4em 0.9em; font-size: 0.88rem; }

.sheet {
  width: min(calc(100% - 32px), 46rem);
  margin: 16px auto 48px;
  padding: 2.25rem 2.25rem 2rem;
}
.sheet section + section {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}
.sheet h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sheet .caps { margin: 0.5rem 0 1.5rem; }
.sheet p { margin: 0 0 1rem; color: var(--dim); }
.sheet strong { color: var(--ink); font-weight: 700; }
.sheet .who {
  padding: 1rem 1.15rem;
  border-radius: var(--r-s);
  background: var(--card);
  box-shadow: var(--shadow-control);
  color: var(--ink);
}
.sheet footer { margin-top: 2rem; font-size: 0.85rem; color: var(--faint); }
.sheet footer a { color: var(--faint); }

@media (max-width: 480px) {
  .bar { padding-left: 0.9rem; }
  .bar .wordmark { font-size: 1.25rem; }
  .sheet { padding: 1.6rem 1.25rem 1.4rem; border-radius: 20px; }
  .hero .glass { padding: 2rem 1.25rem 1.5rem; }
}

/* anchors land below the sticky bar */
.sheet section { scroll-margin-top: 96px; }
