/* ==========================================================
   Lisemark Onepagers — Varm premium (editorial)
   Tokens hämtade från lisemark-landing/static/style.css.
   Ljust + mörkt läge via [data-theme] på <html>.
   ========================================================== */

:root {
  --f-head: 'Newsreader', Georgia, serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

/* ---- Ljust läge (default) ---- */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f2ea;
  --surface: #fffdf7;
  --surface-soft: #efece1;
  --fg: #1b1e14;
  --muted: #6a6d5e;
  --border: rgba(27, 30, 20, .12);
  --border-strong: rgba(27, 30, 20, .26);
  --accent: #8a6d2f;
  --accent-strong: #6f5722;
  --on-accent: #fffdf7;
  --accent-soft: rgba(138, 109, 47, .10);
  --shadow-card: 0 30px 60px rgba(20, 23, 15, .12);
}

/* ---- Mörkt läge ---- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #14170f;
  --surface: #1b1f15;
  --surface-soft: #232819;
  --fg: #f0efe4;
  --muted: #a3a493;
  --border: rgba(240, 239, 228, .12);
  --border-strong: rgba(240, 239, 228, .30);
  --accent: #cba85e;
  --accent-strong: #e2c688;
  --on-accent: #14170f;
  --accent-soft: rgba(203, 168, 94, .12);
  --shadow-card: 0 30px 60px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--f-body);
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; }
button { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: -.012em;
}

h1 {
  margin-bottom: 30px;
  max-width: 15ch;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  max-width: 56ch;
  margin-bottom: 40px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

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

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--accent);
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
}

.brand span:last-child {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 500;
}

.nav-right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease;
}

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

.nav-links .nav-cta {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.theme-control {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.theme-control button {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--border);
  padding: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.theme-control button:last-child { border-right: 0; }
.theme-control button[aria-pressed='true'] { color: var(--on-accent); background: var(--accent); }
.theme-control button:hover:not([aria-pressed='true']) { color: var(--fg); background: var(--surface-soft); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 60px;
  align-items: center;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 7.5vw, 92px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button.primary {
  padding: 15px 26px;
  color: var(--on-accent);
  background: var(--accent);
}

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

.button.secondary {
  padding: 15px 20px;
  color: var(--fg);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
}

.button.secondary:hover { border-bottom-color: var(--accent); }

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
}

.card:hover {
  border-color: var(--border-strong);
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Section ---------- */

.section {
  border-top: 1px solid var(--border);
  padding: clamp(52px, 6.5vw, 84px) 0;
}

.section-heading { max-width: 640px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
}

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

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

/* ---------- Mobile layout ---------- */

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 560px);
  }

  .nav {
    align-items: flex-start;
    padding: 18px 0;
  }

  .brand span:last-child,
  .nav-links,
  .theme-control button:not([data-theme-choice='auto']) {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }

  .theme-control button[data-theme-choice='auto'] {
    display: block;
    padding: 7px 11px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 42px 0 56px;
  }

  h1 {
    max-width: 12ch;
    margin-bottom: 20px;
    font-size: clamp(2.65rem, 12vw, 3.45rem);
    line-height: 1.02;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: .13em;
  }

  .lead {
    margin-bottom: 28px;
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .button.primary {
    width: 100%;
    padding: 15px 20px;
  }

  .button.secondary {
    padding: 12px 0;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-card h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .signal-list {
    padding-left: 0;
  }

  .signal-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .signal-list small {
    display: block;
    margin-top: 2px;
  }

  .grid.cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }
}

/* ---------- Reduced motion ---------- */

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

/* ---------- Print ---------- */

@media print {
  .nav, .footer, .theme-control, .hero-actions, .skip-link {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  .page-shell { width: 100%; }

  h1, h2, h3 { color: black; }

  p { color: #333; }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #666;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
}
