/* Signvik coming-soon page. Same palette and system font stack as the signing-page stylesheet. */
:root {
  --navy: #0f3d5e;
  --navy-dark: #0b2e47;
  --sky: #7cc4e8;
  --text: #1b2430;
  --muted: #5b6877;
  --bg: #f5f7f9;
  --card: #ffffff;
  --line: #e1e6eb;
  --heading: var(--navy);
  --wordmark: var(--navy);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9fb0c0;
    --bg: #0b1620;
    --card: #10202d;
    --line: #1f3344;
    --heading: #ffffff;
    --wordmark: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- language switch ---------- */
.top {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.switch a:hover {
  color: var(--heading);
}

.switch a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ---------- content ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 40px;
}

.logo {
  width: min(240px, 64vw);
  height: auto;
  margin-bottom: 40px;
}

.wordmark {
  fill: var(--wordmark);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

h1 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: clamp(1.75rem, 4.5vw + 0.5rem, 3rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-inline: auto;
}

.lead {
  margin: 0 auto 28px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
  color: var(--muted);
}

.soon {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--navy);
}

@media (prefers-color-scheme: dark) {
  .soon {
    background: transparent;
    color: var(--sky);
    border-color: var(--sky);
  }
}

footer {
  padding: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

/* ---------- language visibility ----------
 * Without JS: English is shown; following the "NO" link (#no) shows Norwegian via :target.
 * With JS: lang.js sets html[data-lang] from ?lang, the signvik.no host, or the browser language. */
.l-nb {
  display: none;
}

html[data-lang='nb'] .l-nb,
html:has(#no:target) .l-nb {
  display: block;
}

html[data-lang='nb'] .l-en,
html:has(#no:target) .l-en {
  display: none;
}

html:has(#en:target) .l-en {
  display: block;
}

html:has(#en:target) .l-nb {
  display: none;
}

/* active state in the switch */
html:not([data-lang='nb']) .sw-en,
html[data-lang='nb'] .sw-nb {
  color: var(--heading);
  background: color-mix(in srgb, var(--sky) 22%, transparent);
}

@media (min-width: 720px) {
  .top {
    padding: 24px 32px;
  }
}
