:root {
  --bg: #fbf8f4;
  --text: #2b2228;
  --muted: #5f535a;
  --line: #e4dcd6;
  --plum: #84396a;
  --plum-dark: #652a51;
  --plum-tint: #f3e9ef;
  --plum-photo: #9a5180;   /* matches the photo backdrop */
  --amber: #e8736e;        /* coral from the logo */
  --cream: #fdf3e7;
  --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 { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; }
.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; }

/* ---------- section heading accent ---------- */
.section h2::after, .topic > h2:first-child::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: var(--amber); margin-top: 14px;
}

/* ---------- hero ---------- */
.hero { background: var(--plum-photo); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero .wrap > div:first-child { padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero .subtitle { font-size: 1.4rem; color: var(--cream); margin-top: 14px; font-weight: 700; }
.hero .subtitle::before {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: 16px;
}
.hero .text { margin-top: 24px; color: rgba(255, 255, 255, 0.92); }
.hero .btn { background: var(--cream); color: var(--plum-dark); }
.hero .btn:hover { background: #fff; color: var(--plum-dark); }
.hero .actions a:not(.btn) { color: #fff; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: 200px 200px 0 0; }

/* ---------- 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; counter-reset: topic; }
.topic-list li { break-inside: avoid; border-bottom: 1px solid var(--line); counter-increment: topic; }
.topic-list a { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; text-decoration: none; color: var(--text); font-size: 1.2rem; font-weight: 700; transition: color .2s, padding .2s; }
.topic-list a::before { content: counter(topic, decimal-leading-zero); color: var(--amber); font-size: 1rem; min-width: 26px; }
.topic-list a:hover { color: var(--plum); padding-left: 6px; }

/* ---------- about ---------- */
.pull {
  margin: 40px 0; padding: 28px 32px; border-radius: 6px;
  background: var(--plum-tint); position: relative;
  font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.4; color: var(--plum-dark); font-weight: 700;
}
.pull::before {
  content: "“"; position: absolute; top: -34px; left: 18px;
  font-size: 5rem; line-height: 1; color: var(--amber);
}
.cv { margin-top: 8px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.cv dt { font-weight: 700; color: var(--plum); }
.cv dd { color: var(--muted); }

/* ---------- contact ---------- */
.contact-section { background: var(--plum-tint); border-top: none; }
.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 { background: var(--plum-dark); padding: 36px 0 44px; color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; }
.site-footer a { color: #fff; }
.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 56px; color: #fff;
  background: var(--plum-photo);
  box-shadow: 0 0 0 100vmax var(--plum-photo); clip-path: inset(0 -100vmax); /* full-width band */
}
.page-hero h1 { color: #fff; }
.page-hero h1::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--amber); margin-top: 16px; }
.page-hero .text { margin-top: 18px; color: rgba(255, 255, 255, 0.92); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.45); padding: 6px 14px; border-radius: 6px; font-size: 1rem; }
.jump a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.topic:first-of-type { border-top: none; }
.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: 380px; margin: 0 auto; }
  .hero .wrap > div:first-child { padding-bottom: 0; }
  .hero { padding-top: 48px; }
  .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; }
  .logo img { height: 36px; }
  .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; }
}
