/*
 * WS Creative AS's website, on wscreative.no and wssuite.com: the Launcher's look, with nothing that needs a script.
 *
 * Colours, spacing, radii and type come from the tokens stylesheet beside this file - a byte-for-byte copy of
 * @wssuite/design-tokens, the tokens the Launcher is built on (apps/launcher/src/styles.css) - and the fonts are copies
 * of the Launcher's bundled Manrope, served from here. Halfre is for branding only: the wordmark is outlines.
 *
 * The tokens are the Launcher's dark scheme, and it is the default. A visitor whose system prefers light gets the
 * light scheme at the end of this file: the same violet, on a pale ground, every text colour checked against its
 * darkest point (apps/website/test/holding-site.test.ts).
 *
 * This file, the tokens and the fonts are each named by their content, and served as never changing: edit one and it
 * must take its new name, and every page and url() that names it with it (docs/WEBSITE.md, "Cache-safe assets").
 */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-400.1f23f8eb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-600.ffc36d85.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --measure: 64ch;
  --page-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* The Launcher's ambient ground: three soft colour fields over the base, fixed while the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 12% 8%, var(--wash-magenta) 0%, transparent 70%),
    radial-gradient(70% 60% at 88% 18%, var(--wash-violet) 0%, transparent 72%),
    radial-gradient(80% 70% at 50% 105%, var(--wash-blue) 0%, transparent 70%),
    linear-gradient(160deg, var(--bg-lift) 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

p {
  margin: 0;
  max-width: var(--measure);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
  text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent);
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: var(--space-4);
  }
}

/* Skip to the content: off screen until a keyboard reaches it. */
.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 1;
}

.skip:focus {
  top: var(--space-4);
}

/* ------------------------------------------------------------------ the bar at the top */

.site-head {
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.site-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-4);
}

.company {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.nav a {
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ the opening */

.hero {
  padding-block: var(--space-12) var(--space-10);
}

.hero__inner {
  display: grid;
  gap: var(--space-5);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-text);
}

/*
 * The product's name: the brand lockup inline, its letters outlines, as the Launcher draws it - so no font file is
 * needed for it. Heading-sized (the lead, #121): 320 px wide at most, less on a narrow screen. Its width and height
 * attributes say the same, so a page whose stylesheet has not arrived still draws it at that size.
 */
.wordmark {
  line-height: 0;
  color: var(--text);
}

.wordmark svg {
  display: block;
  width: min(320px, 70vw);
  max-width: 100%;
  height: auto;
}

.lede {
  font-size: clamp(var(--text-lg), 2.4vw, var(--text-xl));
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--gradient-accent);
  box-shadow: var(--shadow-accent);
}

.button:hover {
  background: var(--gradient-accent-hover);
}

.button--quiet {
  color: var(--text);
  background: var(--glass-raised);
  border: 1px solid var(--glass-border-strong);
  box-shadow: none;
}

.button--quiet:hover {
  background: var(--glass-hover);
}

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

.section {
  padding-block: var(--space-10);
  scroll-margin-top: var(--space-4);
}

.section .wrap {
  display: grid;
  gap: var(--space-5);
}

.section__lede {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

.cards,
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-raised);
  box-shadow: var(--edge-light);
}

.card p {
  color: var(--text-muted);
}

.hosts {
  display: grid;
  gap: var(--space-3);
}

.host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-raised);
}

.host__name {
  font-weight: var(--weight-semibold);
}

/* A status says itself in words; the colour is only the dot beside them. */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-strong);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status--available::before {
  background: var(--success);
}

.status--coming::before {
  background: var(--warning);
}

.note {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-raised);
}

.facts dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd {
  margin: var(--space-1) 0 0;
}

.contact__email {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

/* ------------------------------------------------------------------ a page of text: the privacy policy, the 404 */

.page {
  padding-block: var(--space-12);
}

.page .wrap {
  display: grid;
  gap: var(--space-8);
}

.title {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: var(--weight-normal);
  letter-spacing: 0;
}

.prose {
  display: grid;
  gap: var(--space-3);
}

.prose ul {
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-6);
  list-style: disc;
  max-width: var(--measure);
}

/* ------------------------------------------------------------------ the foot of every page */

.site-foot {
  border-top: 1px solid var(--glass-border);
  background: var(--glass);
  padding-block: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.site-foot .wrap {
  display: grid;
  gap: var(--space-2);
}

.site-foot p {
  max-width: none;
}

.site-foot a {
  color: var(--text-muted);
}

.site-foot a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ the light scheme */

/*
 * For a system that prefers light: the Launcher's violet on a pale ground. Every text colour here clears 4.5:1 against
 * the darkest point the light washes reach - text 11.3, muted 5.1, links 5.1 - and white on the accent fill is the
 * dark scheme's own, already audited by packages/design-tokens.
 */
@media (prefers-color-scheme: light) {
  :root {
    --bg-deep: #ece6f7;
    --bg: #f6f3fc;
    --bg-lift: #fbf9fe;
    --wash-violet: rgba(124, 63, 232, 0.1);
    --wash-magenta: rgba(214, 51, 168, 0.08);
    --wash-blue: rgba(63, 106, 232, 0.05);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-raised: rgba(255, 255, 255, 0.7);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(23, 16, 46, 0.12);
    --glass-border-strong: rgba(23, 16, 46, 0.42);
    --text: #17102e;
    --text-muted: #544870;
    --accent-text: #5a2dc0;
    --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --shadow-accent: 0 8px 24px rgba(120, 71, 227, 0.28);
  }
}
