/* ==========================================================================
   Vekjandi — stílsnið / stylesheet
   One stylesheet for both languages. Colours live in :root below:
   change a value there and it changes everywhere.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-vekjandi.woff2") format("woff2");
  font-weight: 350 650;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sandra's palette */
  --ink: #333333;        /* all body text */
  --paper: #ffffff;      /* page background */
  --sage: #9bbbb6;       /* "who it's for" band */
  --sage-soft: #c9dcd9;
  --orchid: #d586b8;     /* booking band */
  --orchid-soft: #ecd0e2;
  --lavender: #8a72ca;   /* decorative only — too light for text on white */
  --butter: #fff29e;     /* headline card, highlights */
  /* Deeper shades added for readable text and buttons */
  --plum: #4b3a86;       /* buttons, footer (white text = 9.3:1) */
  --link: #5b47a0;       /* links on white (7.4:1) */

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --band-radius: clamp(1.5rem, 4vw, 3rem);
  --section-space: clamp(4rem, 8vw, 6.5rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem; /* keeps headings clear of the sticky header */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.4rem; margin-bottom: 0.35em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--orchid); }

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.measure { max-width: 40rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--plum);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 560;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #3a2c6c; color: #fff; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.wordmark {
  font-size: 1.85rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.02em;
  color: var(--plum);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.wordmark:hover { color: var(--plum); }
.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a,
.lang-switch {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}
.main-nav a:hover,
.lang-switch:hover {
  text-decoration: underline;
  text-decoration-color: var(--orchid);
  text-decoration-thickness: 2px;
}
.site-header .btn { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.98rem; }
.btn .short { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .site-header .wrap { gap: 1rem; }
}
@media (max-width: 420px) {
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .wordmark { font-size: 1.6rem; }
}

/* ---------- Hero: full-width artwork + headline card ---------- */
.hero { position: relative; }
.hero-art img {
  width: 100%;
  height: clamp(28rem, 80vh, 52rem);
  object-fit: cover;
  object-position: 60% 55%;
}
.hero-card {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  bottom: clamp(2rem, 6vh, 4rem);
  width: min(36rem, calc(100% - 2 * var(--gutter)));
  background: var(--butter);
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3.2vw, 2.6rem);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(75, 58, 134, 0.35);
}
.hero-card h1 {
  font-size: 1.15rem;
  font-weight: 520;
  color: var(--plum);
  line-height: 1.35;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  max-width: 30ch;
}
.tagline {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 580;
  font-variation-settings: "SOFT" 100;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero-card .lead { font-size: 1.06rem; line-height: 1.6; margin-bottom: 1.4rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.actions a:not(.btn) { color: var(--plum); font-weight: 520; }

@media (max-width: 720px) {
  .hero-art img { height: 56vh; min-height: 20rem; }
  .hero-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -4.5rem var(--gutter) 0;
    width: auto;
  }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section > .wrap > h2 { max-width: 22ch; }

/* Coloured bands: inset, softly rounded panels */
.band {
  margin-inline: clamp(0.5rem, 2vw, 1.5rem);
  margin-block: clamp(1rem, 3vw, 2.5rem);
  border-radius: var(--band-radius);
}
.band-sage { background: var(--sage); }
.band-orchid { background: var(--orchid); }
.band a:not(.btn) { color: var(--ink); }

/* ---------- About: circular portrait with text beside it ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 41rem);
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.portrait {
  position: relative;
  margin: 0;
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 0.5rem solid var(--paper);
  box-shadow: 0 0 0 0.35rem var(--sage);
}
.name-title { margin-bottom: 1.5rem; line-height: 1.4; }
.name-title strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 580;
  font-variation-settings: "SOFT" 100;
}
.name-title span { color: var(--plum); }
.about h2 { margin-bottom: 0.4em; }
.about { padding-top: 200px; }

@media (max-width: 760px) {
  .about { padding-top: var(--section-space); }
  .about .wrap { grid-template-columns: 1fr; }
  .portrait { width: min(16rem, 72%); margin-inline: auto; }
}

/* ---------- Approach: methods as a loose two/three-column list ---------- */
.approach-top {
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(0, 30rem);
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: var(--section-space);
}
.approach-figure { margin: 0; }
.approach-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.approach-diagram text { font-family: inherit; }
.d-axis { fill: var(--plum); font-size: 20px; font-weight: 520; }
.d-split { stroke: var(--plum); stroke-opacity: 0.35; stroke-width: 1.5; stroke-dasharray: 7 8; }
.d-spoke { stroke: var(--plum); stroke-opacity: 0.4; stroke-width: 2; }
.d-gap { fill: var(--paper); }
.d-ring { fill: none; stroke: var(--plum); stroke-opacity: 0.4; }
.d-mind circle { fill: #e6dff6; }
.d-body circle { fill: #d5e5e2; }
.d-label { fill: var(--ink); font-size: 20px; font-weight: 480; }
.d-core { fill: var(--orchid); }
.d-core-label { fill: var(--ink); font-size: 29px; font-weight: 580; font-variation-settings: "SOFT" 100; }
@media (max-width: 480px) {
  /* the diagram scales down on phones; slightly larger labels keep them readable */
  .d-label { font-size: 22px; }
  .d-axis { font-size: 23px; }
}
@media (max-width: 860px) {
  .approach-top { grid-template-columns: 1fr; margin-bottom: var(--section-space); }
  .approach-figure { width: min(100%, 26rem); margin-inline: auto; }
}
.methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}
.methods li { position: relative; padding-top: 3.1rem; }
.methods li::before {
  /* hand-drawn-ish colour blob above each method */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.3rem;
  height: 2.1rem;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  background: var(--dot, var(--sage));
}
.methods li:nth-child(6n+1) { --dot: var(--orchid); }
.methods li:nth-child(6n+2) { --dot: var(--sage); }
.methods li:nth-child(6n+3) { --dot: var(--lavender); }
.methods li:nth-child(6n+4) { --dot: var(--butter); }
.methods li:nth-child(6n+5) { --dot: var(--orchid-soft); }
.methods li:nth-child(6n+6) { --dot: var(--sage-soft); }
.methods p { font-size: 1.04rem; }
/* The one main method (Listmeðferð) */
.method-main { position: relative; max-width: 44rem; margin-inline: auto; padding-top: 3.3rem; text-align: center; }
.method-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.3rem;
  height: 2.1rem;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  background: var(--orchid);
}
.method-main h3 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.method-main p { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; }

/* DRAFT text Sandra still has to write. Search for class="draft" before launch:
   nothing on the live site may carry this class. */
.draft {
  background: rgba(213, 134, 184, 0.16);
  outline: 1px dashed var(--orchid);
  outline-offset: 2px;
}

/* "Other ways I draw on" block */
.also {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 2px dotted var(--sage);
}
.also-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.4rem; }
.also-intro { max-width: 40rem; color: #4a4a4a; margin-bottom: 0; }
.also-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem clamp(2rem, 4vw, 3rem);
}
@media (max-width: 640px) { .also-list { grid-template-columns: 1fr; } }
.also-list strong { display: block; font-weight: 540; font-variation-settings: "SOFT" 100; line-height: 1.3; margin-bottom: 0.2rem; }
.also-list span { display: block; font-size: 0.98rem; line-height: 1.55; color: #4a4a4a; }
.mix-note {
  margin: clamp(4rem, 9vw, 6.5rem) auto clamp(1rem, 3vw, 2.5rem);
  max-width: 34ch;
  text-align: center;
  font-size: clamp(1.6rem, 3.3vw, 2.4rem);
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100;
  text-wrap: balance;
}

/* ---------- Who it's for: text left, topics right, equal columns ---------- */
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.who-lead {
  margin-bottom: 1.6rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  font-variation-settings: "SOFT" 100;
}
.who-topics { padding-top: 0.9rem; }
.who-topics > p { margin-bottom: 0.9rem; }
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { position: relative; padding: 0.3rem 0 0.3rem 1.5rem; font-size: 1.12rem; }
.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--plum);
}
@media (max-width: 860px) {
  .who-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .who-topics { padding-top: 0; }
}

/* ---------- Practical: prices ---------- */
.practical .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.practical .wrap > h2,
.practical .wrap > .practical-intro { grid-column: 1 / -1; }
.practical .wrap > h2 { margin-bottom: 0; }
.practical-note { grid-column: 1 / -1; max-width: 40rem; margin: 0; font-size: 1rem; color: #4a4a4a; }
.prices { margin: 0; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 2px dotted var(--sage);
}
.price-row:first-child { border-top: 2px dotted var(--sage); }
.price-row dt { font-size: 1.3rem; line-height: 1.3; font-weight: 540; font-variation-settings: "SOFT" 100; }
.price-row dd { margin: 0; }
.price-row .duration { grid-column: 1; color: #5a5a5a; font-size: 1rem; }
.price-row .price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.45rem;
  font-weight: 560;
  white-space: nowrap;
}
.price-row .price.small { font-size: 1.05rem; font-weight: 450; }
/* quiet price list, part of the practical details */
.rates { margin: 0; font-size: 1rem; }
.rates > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--sage);
}
.rates > div:first-child { border-top: 1px dotted var(--sage); }
.rates dt { line-height: 1.4; }
.rates dd { margin: 0; font-weight: 500; white-space: nowrap; }
@media (max-width: 760px) { .rates dd { white-space: normal; text-align: right; } }
.facts { list-style: none; margin: 0; padding: 0; }
.practical .facts-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem clamp(2rem, 6vw, 5rem);
}
@media (max-width: 760px) { .practical .facts-wide { grid-template-columns: 1fr; } }
.facts li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: inset 0 0 0 2px var(--plum);
}
@media (max-width: 760px) {
  .practical .wrap { grid-template-columns: 1fr; }
}

/* ---------- Booking band ---------- */
.book .wrap { text-align: center; }
.book .wrap > * { max-width: 38rem; margin-inline: auto; }
.book h2 { max-width: 18ch; }
.book .btn { margin: 1rem 0 1.75rem; font-size: 1.15rem; min-height: 3.4rem; padding-inline: 1.9rem; }
.book .contact-line { font-size: 1.05rem; line-height: 1.9; }

/* ---------- Training ---------- */
.training-sub { font-size: 1.15rem; margin: 2rem 0 0.4rem; color: var(--plum); }
.training-sub:first-of-type { margin-top: 1.25rem; }
.training-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 22rem;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.training-list-one { columns: 1; }
.training-list li {
  break-inside: avoid;
  padding: 0.6rem 0 0.6rem 1.4rem;
  position: relative;
  line-height: 1.45;
}
.training-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lavender);
}
.cv-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-top: 0.75rem;
}
.cv-group { border-top: 2px dotted var(--sage); padding-top: 1rem; }
.cv-group h4 { font-size: 1.15rem; margin: 0 0 0.15rem; font-weight: 560; font-variation-settings: "SOFT" 100; }
.cv-inst { color: #5a5a5a; font-size: 0.95rem; margin: 0 0 0.4rem; }
.cv-group ul { list-style: none; margin: 0; padding: 0; }
.cv-group li { padding: 0.4rem 0; line-height: 1.4; }
.cv-group small { display: block; color: #5a5a5a; font-size: 0.95rem; }
@media (max-width: 760px) { .cv-groups { grid-template-columns: 1fr; } }
.cv-list { list-style: none; margin: 0; padding: 0; max-width: 54rem; }
.cv-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--sage);
  line-height: 1.45;
}
.cv-list li:first-child { border-top: 1px dotted var(--sage); }
.cv-year { color: var(--plum); font-weight: 540; font-variation-settings: "SOFT" 100; }
.cv-list small { display: block; color: #5a5a5a; font-size: 0.95rem; }
@media (max-width: 560px) { .cv-list li { grid-template-columns: 1fr; gap: 0; } }
.training-list small { display: block; color: #5a5a5a; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 1rem;
}
.site-footer a { color: var(--butter); }
.site-footer a:hover { text-decoration-color: var(--butter); }
.site-footer :focus-visible { outline-color: var(--butter); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem 3rem;
}
.footer-grid p { margin-bottom: 0.4rem; }
.footer-wordmark {
  font-size: 2rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.footer-heading { font-weight: 560; margin-bottom: 0.5rem; color: #fff; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- 404 page ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem var(--gutter);
}
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
