:root {
  --bg: #fbf8f4;
  --text: #2b2228;
  --muted: #5f535a;
  --line: #e4dcd6;
  --plum: #84396a;
  --plum-dark: #652a51;
  --plum-tint: #f3e9ef;
  --max: 1080px;
  --text-max: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 90px; }
body {
  font-family: "Atkinson Hyperlegible", Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin: 32px 0 10px; }
p + p { margin-top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.text { max-width: var(--text-max); }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--plum); }
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1.02rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 6px;
  background: var(--plum); color: #fff; text-decoration: none; font-weight: 700;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: var(--plum-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero .subtitle { font-size: 1.35rem; color: var(--plum); margin-top: 12px; }
.hero .text { margin-top: 26px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 4px; }

/* ---------- two-column text ---------- */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.note {
  margin-top: 24px; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--plum); color: var(--muted);
}

/* ---------- list of problems ---------- */
.topic-list { list-style: none; columns: 2; column-gap: 48px; margin-top: 8px; }
.topic-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.topic-list a { display: block; padding: 14px 0; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.topic-list a:hover { color: var(--plum); }
.topic-list a::after { content: " →"; color: var(--plum); }

/* ---------- about ---------- */
.pull {
  margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--plum);
  font-size: 1.4rem; line-height: 1.45; color: var(--plum-dark); font-weight: 700;
}
.cv { margin-top: 8px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.cv dt { font-weight: 700; }
.cv dd { color: var(--muted); }

/* ---------- contact ---------- */
.contact-mail { font-size: 1.35rem; font-weight: 700; display: inline-block; margin-top: 8px; overflow-wrap: anywhere; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; max-width: var(--text-max); }
.places h3 { margin-top: 0; }
.places p { color: var(--muted); }
.places a { font-size: 1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.98rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }

/* ---------- synsproblemer page ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero .text { margin-top: 18px; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.topic { padding: 64px 0; border-top: 1px solid var(--line); }
.topic .prose { max-width: var(--text-max); }
.symptoms { margin-top: 10px; padding-left: 22px; columns: 2; column-gap: 40px; color: var(--muted); }
.symptoms li { break-inside: avoid; margin-bottom: 8px; }
.symptoms li::marker { color: var(--plum); }
.plain-list { list-style: none; max-width: var(--text-max); display: grid; gap: 14px; margin-top: 10px; }
.plain-list li { color: var(--muted); }
.plain-list strong { color: var(--text); }
.back-cta { padding: 64px 0 24px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap, .columns { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 400px; }
  .topic-list, .symptoms { columns: 1; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 18px; }
  .section, .topic { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .places { grid-template-columns: 1fr; gap: 24px; }
  .cv { grid-template-columns: 1fr; gap: 0; }
  .cv dd { margin-bottom: 10px; }
}
