@font-face {
  font-family: Bree;
  src: url("assets/fonts/BreeSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Alegreya;
  src: url("assets/fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  /* Same tones as the game website, so the teaser hands over to it without a jump. */
  --pine: #101e1a;
  --bone: #f6edda;
  --gold: #efbb69;
  --subtle: #d8dcc9;
  /* The brook's river tint by day and by night, from VoxelTint.river. */
  --water: #537a7d;
  --display: Bree, Georgia, "Songti TC", "Hiragino Mincho ProN", serif;
}
:root.is-night { --water: #234878; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--water);
  color: var(--bone);
  font: 400 1.125rem/1.45 Alegreya, system-ui, sans-serif;
}
h1, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ffcb6a; outline-offset: 4px; }

.brook, .shade { position: fixed; inset: 0; width: 100%; height: 100%; }
.brook { display: block; }
.no-gl .brook { display: none; }
/* Keeps the lettering legible over the water and darkens the edges a little, like the game's vignette. */
.shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, #0b1713d9 0%, #0b17138c 22%, #0b171300 46%),
    radial-gradient(130% 90% at 50% 62%, #0000 55%, #07100d8f 100%);
}

.teaser {
  position: relative;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  padding-top: clamp(4.5rem, 9vh, 6rem);
  text-align: center;
}
h1 {
  font: 400 clamp(2.9rem, 8.4vw, 6.6rem)/1 var(--display);
  letter-spacing: -.045em;
  color: #fff2d9;
  text-shadow: 0 3px 14px #0a120f8c;
}
.tagline {
  margin: .9rem auto 0;
  max-width: 30rem;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.3;
  color: #f0ecdc;
  text-wrap: balance;
  text-shadow: 0 1px 8px #0a120fb3;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.15rem;
  color: #f6cb86;
  letter-spacing: .06em;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 1px 6px #0a120fcc;
}
.spark {
  width: .8rem;
  aspect-ratio: 1;
  flex: none;
  background: currentColor;
  clip-path: polygon(36% 0,64% 0,64% 24%,76% 24%,76% 36%,100% 36%,100% 64%,76% 64%,76% 76%,64% 76%,64% 100%,36% 100%,36% 76%,24% 76%,24% 64%,0 64%,0 36%,24% 36%,24% 24%,36% 24%);
}

.caption, .legal {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  font-size: .95rem;
  color: var(--subtle);
  text-shadow: 0 1px 6px #0a120fd9;
}
.caption { left: max(1rem, env(safe-area-inset-left)); right: 22rem; font-style: italic; }
.legal { right: max(1rem, env(safe-area-inset-right)); display: flex; gap: 1.1rem; }
.legal a { text-decoration: none; padding-block: .35rem; }
.legal a:hover { color: var(--gold); }

@media (max-width: 34rem) {
  .caption { right: 1rem; bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 2.2rem); text-align: center; }
  .legal { left: 1rem; justify-content: center; }
}

/* Language menu, as on the pages of the game website (Marketing/public/styles.css), fixed top right. */
.lang { position: fixed; z-index: 5; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); font-size: 1rem; }
.lang summary { display: flex; align-items: center; gap: .48rem; min-height: 2.5rem; padding: .3rem .75rem; border: 1px solid #c8cfb84d; border-radius: 3px; background: #0b17138c; font-weight: 400; color: #ece6d4; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::before { content: ''; width: .9em; height: .9em; border: 1.4px solid; border-radius: 50%; background: linear-gradient(transparent 43%, currentColor 44% 54%, transparent 55%), radial-gradient(ellipse 26% 57% at center, transparent 70%, currentColor 76% 88%, transparent 94%); }
.lang summary::after { content: ''; width: .38rem; height: .38rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); margin-left: .16em; }
.lang[open] summary, .lang summary:hover { color: var(--gold); border-color: var(--gold); }
.lang summary:focus-visible { outline: 3px solid #ffcb6a; outline-offset: 4px; }
.lang ul { position: absolute; inset: calc(100% + .5rem) 0 auto auto; min-width: 11.5rem; width: max-content; max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto; margin: 0; padding: .5rem; list-style: none; background: #142a23; border: 1px solid #93845b; border-radius: .3rem; box-shadow: 0 12px 32px #0008; }
.lang.split ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lang a { display: block; padding: .4em .8em; border-radius: 2px; text-decoration: none; }
.lang a:hover, .lang a[aria-current] { color: var(--gold); background: #f8edc50d; }
