/* Shared by the three Solacosa sites: fonts, design tokens and the pieces
   more than one site uses (buttons, top bar, footer). Design: "Yumuşak gece".
   Every colour, radius and font is a custom property in :root; the site
   stylesheets (landing.css, wiki.css, store.css) only read them. */

/* Fredoka: headings, buttons, prices. Nunito: body text. Both are variable
   fonts, self-hosted; latin-ext carries ğ, ş, İ. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Fonts */
  --font-heading: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;

  /* Page */
  --color-page: #14132B;
  --color-glow: #2B2764;
  --page-glow: radial-gradient(1100px 520px at 50% -8%, var(--color-glow) 0%, var(--color-page) 70%);
  --page-glow-narrow: radial-gradient(520px 380px at 50% -4%, var(--color-glow) 0%, var(--color-page) 72%);

  /* Surfaces, from the deepest to the lightest */
  --surface-well: #171532;
  --surface-panel: #1B1A3A;
  --surface-card: #1F1D42;
  --surface-band: #2A2857;
  --surface-button: #34316A;
  --surface-strong: #4A4690;
  --surface-featured: #29244A;

  /* Lines */
  --line: #34316A;
  --line-soft: #2A2857;
  --line-input: #4A4690;
  --line-featured: #C99A1E;
  --line-featured-soft: #4A4374;

  /* Text */
  --text: #F4F1FF;
  --text-strong: #FFFFFF;
  --text-soft: #E2DEF7;
  --text-muted: #C3BEE6;
  --text-featured-muted: #D9D2F0;
  --link: #A9D4FF;
  --accent: #FFD84D;

  /* Buttons */
  --button-shadow: #1B1940;
  --gold-top: #FFD84D;
  --gold-bottom: #FFB21F;
  --gold-shadow: #B36B00;
  --gold-text: #2A1B00;
  --discord: #5865F2;
  --discord-shadow: #3640B8;

  /* Meaning colours used by content */
  --tone-green: #8FE35A;
  --tone-red: #FF8A7A;
  --tone-orange: #FFB24D;
  --tone-purple: #D9A6FF;
  --tone-blue: #7CCBFF;
  --tone-cyan: #6FE0F0;
  --tone-yellow: #FFD84D;
  --rainbow-1: #FF5C6C;
  --rainbow-2: #4FC0FF;
  --rainbow-3: #F9C700;
  --rainbow-4: #8FE35A;

  /* Radii */
  --radius-band: 12px;
  --radius-control: 14px;
  --radius-box: 16px;
  --radius-card: 18px;
  --radius-panel: 20px;
  --radius-large: 22px;
  --radius-hero: 24px;

  /* Sizes */
  --tap: 44px;
  --page-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
}

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

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface-button);
  border-radius: var(--radius-control);
  font-family: var(--font-heading);
  color: var(--text-strong);
}

.skip-link:focus {
  top: 8px;
}

/* Content colours */
.tone-green { color: var(--tone-green); }
.tone-red { color: var(--tone-red); }
.tone-orange { color: var(--tone-orange); }
.tone-purple { color: var(--tone-purple); }
.tone-blue { color: var(--tone-blue); }
.tone-cyan { color: var(--tone-cyan); }
.tone-yellow { color: var(--tone-yellow); }
.rainbow-1 { color: var(--rainbow-1); }
.rainbow-2 { color: var(--rainbow-2); }
.rainbow-3 { color: var(--rainbow-3); }
.rainbow-4 { color: var(--rainbow-4); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  background: var(--surface-button);
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: 0 4px 0 var(--button-shadow);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

a.btn:hover,
.btn:hover {
  color: var(--text-strong);
  filter: brightness(1.12);
}

.btn:active {
  transform: translateY(2px);
}

.btn:disabled {
  cursor: progress;
  filter: saturate(0.6) brightness(0.85);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-top), var(--gold-bottom));
  box-shadow: 0 4px 0 var(--gold-shadow);
  color: var(--gold-text);
}

a.btn-gold:hover,
.btn-gold:hover {
  color: var(--gold-text);
  filter: brightness(1.06);
}

.btn-discord {
  background: var(--discord);
  box-shadow: 0 4px 0 var(--discord-shadow);
}

.btn-block {
  display: flex;
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Top bar (store, 404 pages) ---------- */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--page-glow);
  background-repeat: no-repeat;
  background-color: var(--color-page);
  font-family: var(--font-heading);
}

.shell-main {
  flex: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 34px 24px 48px;
}

.topbar {
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page-width);
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: var(--text-strong);
}

.topbar-brand img {
  display: block;
  width: 50px;
}

.topbar-toggle {
  display: none;
  height: 46px;
  font-size: 17px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
}

.topbar-link {
  display: flex;
  align-items: center;
  height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius-band);
}

.topbar-address {
  gap: 10px;
  height: 46px;
  margin-left: 10px;
  font-size: 17px;
}

.topbar-address svg {
  flex: none;
  color: var(--accent);
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px 24px;
}

.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Message page (404) ---------- */

.notice-page {
  max-width: 620px;
  margin: 24px auto;
  padding: 26px 30px 30px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-hero);
}

.notice-page h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-strong);
}

.notice-page p {
  margin: 6px 0 20px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 759.98px) {
  .shell {
    background-image: var(--page-glow-narrow);
  }

  .shell-main {
    padding: 14px 12px 34px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 0 10px;
    height: auto;
    min-height: 64px;
    padding: 0 12px;
  }

  .topbar-brand {
    gap: 8px;
    height: 64px;
    font-size: 21px;
  }

  .topbar-brand img {
    width: 44px;
  }

  .js .topbar-toggle {
    display: inline-flex;
  }

  .topbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    padding: 4px 0 16px;
  }

  .js .topbar-nav:not(.is-open) {
    display: none;
  }

  .topbar-link {
    height: 46px;
    background: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
  }

  .topbar-address {
    margin: 4px 0 0;
  }

  .footer {
    padding: 20px 14px 26px;
  }

  .footer-inner {
    font-size: 13px;
    line-height: 1.5;
  }

  .notice-page {
    margin: 0;
    padding: 20px 18px 24px;
    border-radius: var(--radius-large);
  }

  .notice-page h1 {
    font-size: 32px;
  }
}
