/* Synnk Collective AB — synnk.me
   Brand tokens mirror the SYNNK 2.0 palette in the app (JamTown/lib/theme.ts → `brand`).
   No webfonts, no third-party requests: everything here is served from our own origin,
   which keeps the page fast and avoids shipping visitor IPs to a font/analytics CDN. */

:root {
  --ink: #02020e;
  --navy: #0a073b;
  --indigo: #6057eb;
  --periwinkle: #8a83f0;
  --lavender: #e8e6fc;
  --coral: #ff5f4b;
  --lime: #d4ff00;
  --cream: #f9f6ee;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: #4a4a63;
  --rule: rgba(10, 7, 59, 0.14);
  --card: #ffffff;

  --font: Inter, "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;

  --measure: 68rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Language switching -------------------------------------------------
   Both languages ship in the HTML so the page is readable with JavaScript off
   (English is the default). The toggle only ever *hides* the inactive
   language — it never sets `display` on the visible one, so elements keep
   whatever layout their own rules give them (grid, flex, inline, …). */
html[data-lang="en"] [lang="sv"],
html[data-lang="sv"] [lang="en"] {
  display: none !important;
}

/* --- Typography --------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: var(--indigo);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 1.25rem;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* --- Shell -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

section + section {
  border-top: 1px solid var(--rule);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand svg {
  display: block;
  width: 6.5rem;
  height: auto;
}

.brand:hover {
  color: var(--indigo);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  font-size: 0.9375rem;
}

.header-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.375rem 0.7rem;
  cursor: pointer;
  min-height: 2rem;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--cream);
}

.lang-toggle button:hover:not([aria-pressed="true"]) {
  color: var(--ink);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3.5rem, 8vw, 6rem);
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero .accent {
  color: var(--indigo);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
  padding: 0.5rem 0.9375rem 0.5rem 0.8125rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.875rem;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}

/* Row of links separated by middots — used on the 404 page. */
.inline-links {
  margin-top: 2rem;
  color: var(--muted);
}

.inline-links a {
  font-weight: 500;
  white-space: nowrap;
}

/* --- Feature grid ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.625rem;
  color: var(--navy);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.card-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--periwinkle);
  display: block;
  margin-bottom: 1rem;
}

/* --- Two-column prose --------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

.split .body {
  max-width: 58ch;
}

/* --- Contact ------------------------------------------------------------ */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list dt,
.contact-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.0625rem;
}

.contact-list a {
  font-weight: 500;
}

address {
  font-style: normal;
}

/* --- Long-form legal/support pages -------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  color: var(--navy);
}

.prose h2:first-of-type {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--periwinkle);
}

.page-head {
  padding-block: clamp(3rem, 7vw, 4.5rem) 0;
}

.updated {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.note {
  border-left: 3px solid var(--periwinkle);
  padding: 0.25rem 0 0.25rem 1.125rem;
  margin: 1.75rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--lavender);
  padding-block: clamp(3rem, 6vw, 4rem);
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.footer-grid h2 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.75rem;
}

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

.footer-grid li {
  margin-bottom: 0.375rem;
}

.footer-tagline {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: rgba(232, 230, 252, 0.75);
}

.footer-address {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(232, 230, 252, 0.75);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 230, 252, 0.2);
  font-size: 0.875rem;
  color: rgba(232, 230, 252, 0.75);
}

.footer-bottom p {
  margin: 0;
}

/* Footer variant for the legal/support pages, which don't need the full grid. */
.footer-slim {
  margin: 0;
  padding: 0;
  border: 0;
}
