/* ==========================================================
   Lisemark — Varm premium (editorial)
   Källa: .design/designfornyelse/Lisemark.dc.html (variant 1a)
   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.9rem, 6.2vw, 4.5rem);
  line-height: 1.03;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
}

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

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.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
}

.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

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

.nav-links { min-width: 0; }

.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;
  align-items: center;
  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 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.theme-control button:last-child { border-right: 0; }
.theme-control button:hover { color: var(--fg); background: var(--surface-soft); }
.theme-control button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
}
.theme-control button:focus-visible {
  position: relative;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- 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;
}

.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); }

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

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

.hero-card h2 {
  margin-bottom: 26px;
  max-width: 14ch;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}

.areas-card { padding: 30px 34px; }
.areas-card h2 { max-width: 17ch; margin-bottom: 18px; }
.area-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-list li { border-top: 1px solid var(--border); }
.area-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  color: inherit;
  text-decoration: none;
}
.area-list a:hover strong, .area-list a:focus-visible strong { color: var(--accent); }
.area-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.area-list span {
  color: var(--accent);
  font-family: var(--f-head);
  font-size: 17px;
}
.area-list strong { display: block; font-size: 14px; font-weight: 600; transition: color .18s ease; }
.area-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.area-list i { color: var(--accent); font-size: 14px; font-style: normal; opacity: 0; transform: translateX(-3px); transition: opacity .18s ease, transform .18s ease; }
.area-list a:hover i, .area-list a:focus-visible i { opacity: 1; transform: translateX(0); }

/* ---------- Sektioner ---------- */

.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; }

/* ---------- Senast från Lisemark ---------- */

.latest-section { padding-top: clamp(44px, 5vw, 64px); }
.latest-heading { margin-bottom: 30px; }
.latest-heading > p:last-child { max-width: 58ch; margin-top: 18px; }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.latest-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.latest-card-body {
  display: flex;
  min-height: 268px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 34px);
}

.latest-onepager-card { background: var(--accent-soft); border-color: var(--border-strong); }
.latest-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.latest-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.latest-card h3 {
  max-width: 27ch;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.18;
}

/* Onepager — dynamisk dokumentförhandsvisning */
.latest-onepager-preview {
  display: grid;
  min-height: 333px;
  place-items: center;
  padding: 30px;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  border-bottom: 1px solid var(--border);
}
.document-sheet {
  display: flex;
  width: min(100%, 278px);
  min-height: 280px;
  flex-direction: column;
  padding: 28px 25px 22px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--accent) 13%, transparent);
  transform: rotate(-1.5deg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.latest-onepager-preview:hover .document-sheet,
.latest-onepager-preview:focus-visible .document-sheet {
  transform: translateY(-3px) rotate(-.5deg);
  box-shadow: 13px 16px 0 color-mix(in srgb, var(--accent) 18%, transparent);
}
.latest-onepager-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.document-kicker {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.document-sheet strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--f-head);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.12;
}
.document-rule { display: block; width: 44px; height: 1px; margin: 18px 0; background: var(--accent); }
.document-line { display: block; width: 100%; height: 5px; margin-bottom: 10px; background: var(--border); }
.document-line.short { width: 63%; }
.document-line.medium { width: 82%; }
.document-footer { margin-top: auto; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.latest-video-card { padding-top: 0; }
.latest-video-thumb {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}
.latest-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-video-card .latest-label,
.latest-video-card h3,
.latest-video-card > p,
.latest-video-card > a,
.latest-video-card .latest-date { margin-left: 0; margin-right: 0; }
.latest-video-card .latest-label { margin-top: 0; }

.latest-card > p:not(.latest-label) { margin-bottom: 24px; font-size: 15.5px; }
.latest-card a {
  margin-top: auto;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.latest-card a span { margin-left: 6px; color: var(--accent); }
.latest-card a:hover { color: var(--accent-strong); }
.latest-date {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
}

/* Om */

.about-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.section-kicker h2 { max-width: 16ch; }

.about-copy p { max-width: 52ch; font-size: 1.06rem; }
.about-copy p + p { margin-top: 18px; }

.about-portrait {
  width: min(100%, 260px);
  margin: 0 0 0 auto;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(.95);
}

.about-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Tre spår */

.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card .icon {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 500;
}

.card p { margin-bottom: 0; font-size: 15.5px; }

.featured-card {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

/* Arbetssätt */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li { border-top: 1px solid var(--border-strong); padding-top: 20px; }

.process-list span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--f-head);
  font-size: 22px;
}

.process-list strong { display: block; margin-bottom: 8px; font-size: 1.1rem; font-weight: 600; }
.process-list small { color: var(--muted); line-height: 1.55; }

/* Kunskapsstruktur */

.method-section > div:first-of-type p { max-width: 60ch; font-size: 1.03rem; }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.knowledge-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--surface);
}

.knowledge-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.knowledge-grid h3 { font-size: 1.15rem; }
.knowledge-grid p { margin-bottom: 0; font-size: 15px; }

/* Verktyg — editoriell lista */

.tool-list { display: flex; flex-direction: column; }

.tool-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 26px 0;
  text-decoration: none;
  transition: background .18s ease;
}

.tool-row:last-child { border-bottom: 1px solid var(--border); }

.tool-row strong {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 500;
}

.tool-row span { color: var(--muted); font-size: 15.5px; }

.tool-row i {
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
  transition: transform .18s ease;
}

.tool-row:hover i { transform: translateX(4px); }
.tool-row:hover strong { color: var(--accent); }

/* Principer */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
}

.split p { max-width: 52ch; }

.principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li { font-size: 1rem; line-height: 1.5; }
.principles strong { font-weight: 600; }
.principles span { color: var(--muted); }

/* Kontakt */

.cta-section { border-top: none; padding-top: 0; }

.cta-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(34px, 4.5vw, 48px);
  background: var(--surface);
}

.cta-card h2 { max-width: 20ch; margin-bottom: 16px; }
.cta-card p { max-width: 56ch; margin-bottom: 28px; }

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

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

/* ---------- Responsivt ---------- */

@media (max-width: 980px) {
  .hero, .about-section, .split { grid-template-columns: 1fr; }
  .hero { gap: 44px; }
  .latest-grid { grid-template-columns: 1fr; }
  .grid.cards, .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-portrait {
    grid-column: auto;
    grid-row: auto;
    width: min(100%, 260px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 28px, 1160px); }
  .nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-right { width: 100%; justify-content: space-between; }
  .nav-links { gap: 18px; font-size: 14px; }
  .hero { padding-top: 32px; }
  .grid.cards, .knowledge-grid, .process-list { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr auto; gap: 12px; }
  .tool-row span { grid-column: 1 / -1; }
  h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
}
