/* Lombok site. The layout mirrors the theme: a side rail that is always in reach.
   The style switch (Linden / Halden) swaps the tokens below, the way the theme's presets do. */
:root {
  --paper: #ffffff;
  --ink: #16181d;
  --muted: #5e636b;
  --line: #e4e6ea;
  --wash: #f4f5f7;
  --accent: #2440f0;
  --accent-ink: #ffffff;
  --head: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --head-weight: 700;
  --head-track: -0.025em;
  --body: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 6px;
  color-scheme: light;
}
:root[data-style="halden"] {
  --paper: #fbf9f6;
  --ink: #1e1c19;
  --muted: #6b645c;
  --line: #e6e0d7;
  --wash: #f2ede6;
  --accent: #1f4d3a;
  --head: "Cormorant", Georgia, serif;
  --head-weight: 600;
  --head-track: -0.01em;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  transition: background-color 0.25s ease;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); padding: 6px 10px; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.15; }

/* ---------- shell: rail | content | on this page ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 1240px) { .shell:has(.toc) { grid-template-columns: 264px minmax(0, 1fr) 232px; } }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-inline-end: 1px solid var(--line);
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rail__top { display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; font-family: var(--head); font-weight: var(--head-weight); font-size: 24px; letter-spacing: var(--head-track); line-height: 1; }
.brand small { display: block; margin-top: 5px; font: 400 13px/1 var(--body); letter-spacing: 0; color: var(--muted); }
.rail__menu { display: none; }
.rail__body { display: flex; flex-direction: column; gap: 22px; flex: 1; }

.search { position: relative; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
}
.search__results {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}
.search__results a { display: block; padding: 7px 8px; border-radius: 4px; text-decoration: none; font-size: 14px; line-height: 1.35; }
.search__results a span { display: block; font-size: 12.5px; color: var(--muted); }
.search__results a b { font-weight: 500; }
.search__results a[aria-selected="true"], .search__results a:hover { background: var(--wash); }
.search__empty { margin: 0; padding: 8px; font-size: 13.5px; color: var(--muted); }

.nav, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav > li > a { display: block; padding: 5px 0; text-decoration: none; font-weight: 500; }
.nav__sub { margin: 2px 0 8px; border-inline-start: 1px solid var(--line); }
.nav__sub a { display: block; padding: 4px 0 4px 14px; margin-inline-start: -1px; text-decoration: none; font-size: 14px; color: var(--muted); border-inline-start: 1px solid transparent; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav__sub a[aria-current="page"] { border-inline-start-color: var(--accent); }
.nav a:hover { color: var(--ink); }
.rail__cta {
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 11px 12px;
}

/* ---------- main column ---------- */
.main { padding: 40px clamp(20px, 5vw, 64px) 40px; max-width: 800px; width: 100%; }
.main--wide { max-width: 1080px; }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 32px 0 6px; }
:root[data-style="halden"] .prose h2 { font-size: 28px; }
:root[data-style="halden"] .prose h3 { font-size: 21px; }
.prose code { font-size: 0.88em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; margin: 16px 0; }
.prose th, .prose td { text-align: start; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose li + li { margin-top: 4px; }
.lede { font-size: 18.5px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: inherit; }
.steps { padding-inline-start: 1.4em; font-size: 17px; }
.steps li { padding: 4px 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pager__next { text-align: end; }

.toc { position: sticky; top: 0; align-self: start; padding: 44px 24px 24px 0; font-size: 13.5px; display: none; }
@media (min-width: 1240px) { .toc { display: block; } }
.toc p { margin: 0 0 8px; font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 3px 0; }
.toc li.d3 { padding-inline-start: 12px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }

.foot { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- overview ---------- */
.hero h1 { font-size: clamp(56px, 9vw, 112px); line-height: 0.95; margin: 8px 0 18px; }
:root[data-style="halden"] .hero h1 { font-size: clamp(64px, 10vw, 128px); }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: calc(var(--radius) + 3px); padding: 3px; margin: 10px 0 26px; }
.switch button {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 18px;
  cursor: pointer;
  text-align: start;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.switch button small { display: block; font-weight: 400; font-size: 12.5px; }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.shots { margin: 0 0 12px; }
.shots__frame { position: relative; padding-bottom: 28px; }
.shots__desk { display: block; width: 88%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.shots__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  height: auto;
  border: 6px solid var(--ink);
  border-radius: 22px;
  background: var(--ink);
}
.shots figcaption { margin-top: 18px; max-width: 62ch; color: var(--muted); }
.shots figcaption b { color: var(--ink); font-weight: 600; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.fit h2, .journey h2, .facts h2, .faq h2, .next-steps h2 { font-size: 26px; margin: 0 0 14px; }
:root[data-style="halden"] :is(.fit, .journey, .facts, .faq, .next-steps) h2 { font-size: 31px; }
.fit ul { margin: 0; padding-inline-start: 1.1em; }
.fit li + li { margin-top: 8px; }
.fit > div:last-child { color: var(--muted); }
.fit > div:last-child h2 { color: var(--ink); }

.journey { margin-top: 72px; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--ink); }
.journey__steps > li { counter-increment: step; padding: 16px 18px 0 0; }
.journey__steps > li + li { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.journey__steps h3 { font-size: 22px; margin: 0 0 10px; }
.journey__steps h3::before { content: counter(step); display: block; font: 500 13px/1 var(--body); color: var(--accent); margin-bottom: 8px; }
.journey__steps ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.5; }
.journey__steps ul li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.facts { margin-top: 72px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.facts dl div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.faq { margin-top: 72px; max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.next-steps { margin-top: 72px; }
.next-steps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-steps a { display: grid; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.next-steps a:hover { border-color: var(--ink); }
.next-steps span { font-size: 14px; color: var(--muted); }

/* ---------- support ---------- */
.quick { margin: 28px 0 8px; padding: 16px 18px; background: var(--wash); border-radius: var(--radius); max-width: 68ch; }
.quick h2 { font-size: 17px; margin: 0 0 6px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.quick ul { margin: 0; padding-inline-start: 1.1em; }
.form { display: grid; gap: 18px; margin-top: 36px; max-width: 68ch; }
.form h2 { font-size: 26px; margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 15px; align-content: start; }
.field span { font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-inline-start: 4px; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
input, textarea, select {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input[type="file"] { padding: 7px; font-size: 14px; }
textarea { resize: vertical; }
.form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.policy { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.policy h2 { margin-top: 24px; }

/* ---------- phones and tablets ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; z-index: 5; height: auto; max-height: 100vh; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; background: var(--paper); gap: 0; }
  .rail__menu { display: block; font: inherit; font-weight: 500; font-size: 15px; color: inherit; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; }
  .js .rail__body { display: none; }
  .js.menu-open .rail__body { display: flex; padding-top: 18px; }
  .rail__cta { margin-top: 4px; }
  .main { padding: 28px 16px 32px; }
  .fit, .facts dl, .row { grid-template-columns: minmax(0, 1fr); }
  .journey__steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .journey__steps > li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .next-steps ul { grid-template-columns: minmax(0, 1fr); }
  .facts dl div { grid-template-columns: 9em 1fr; }
}
@media (max-width: 560px) {
  .journey__steps { grid-template-columns: minmax(0, 1fr); }
  .journey__steps > li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .shots__desk { width: 100%; }
  .shots__phone { width: 30%; right: 4%; bottom: 0; border-width: 4px; border-radius: 16px; }
  .shots__frame { padding-bottom: 20px; }
  .switch { display: flex; }
  .switch button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
