/*
 * Tillfälliga designstudier.
 * Varje variant använder samma semantiska HTML och innehåll. När en design är
 * vald kan detta reduceras till en enda variant och designväljaren tas bort.
 */

/* 02 · Nordisk minimal --------------------------------------------------- */

html[data-design="nordic"] {
  --ink: #111918;
  --ink-soft: #5d6663;
  --paper: #f7f7f4;
  --teal: #111918;
  --teal-light: #e8ebe6;
  --coral: #2f6257;
  --white: #ffffff;
  --line: rgba(17, 25, 24, 0.16);
}

html[data-design="nordic"] body {
  background: var(--paper);
}

html[data-design="nordic"] .site-header,
html[data-design="nordic"] .site-footer,
html[data-design="nordic"] .hero {
  width: min(1240px, calc(100% - 80px));
}

html[data-design="nordic"] .site-header {
  min-height: 88px;
  border-color: #111918;
}

html[data-design="nordic"] .wordmark-name,
html[data-design="nordic"] h1,
html[data-design="nordic"] .lead {
  font-family: var(--sans);
}

html[data-design="nordic"] .wordmark-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html[data-design="nordic"] .hero {
  grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  min-height: calc(100vh - 88px);
}

html[data-design="nordic"] .portrait-wrap {
  order: 2;
  width: min(100%, 510px);
}

html[data-design="nordic"] .portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  box-shadow: none;
}

html[data-design="nordic"] .portrait {
  object-position: 50% 35%;
}

html[data-design="nordic"] .portrait-note {
  right: auto;
  bottom: -1.7rem;
  left: 0;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  letter-spacing: 0.16em;
  transform: none;
}

html[data-design="nordic"] .hero-copy {
  order: 1;
}

html[data-design="nordic"] .eyebrow {
  color: var(--ink-soft);
}

html[data-design="nordic"] .eyebrow::before {
  width: 1.5rem;
}

html[data-design="nordic"] h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

html[data-design="nordic"] .lead {
  max-width: 32ch;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
}

html[data-design="nordic"] .button {
  min-height: 48px;
  border-radius: 0;
}

html[data-design="nordic"] .details {
  border-color: #111918;
}

/* 03 · Modern klinik ---------------------------------------------------- */

html[data-design="clinical"] {
  --ink: #153d45;
  --ink-soft: #55727a;
  --paper: #e8f4f5;
  --paper-deep: #d6eaec;
  --teal: #087c8c;
  --teal-light: #d5edef;
  --coral: #006b79;
  --white: #ffffff;
  --line: rgba(8, 124, 140, 0.2);
}

html[data-design="clinical"] body {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.9) 0 8rem, transparent 8.1rem),
    linear-gradient(135deg, #eef9f9, #dceff1);
}

html[data-design="clinical"] .site-header,
html[data-design="clinical"] .site-footer,
html[data-design="clinical"] .hero {
  width: min(1240px, calc(100% - 48px));
}

html[data-design="clinical"] .site-header {
  min-height: 92px;
  border: 0;
}

html[data-design="clinical"] .wordmark-name,
html[data-design="clinical"] h1,
html[data-design="clinical"] .lead {
  font-family: var(--sans);
}

html[data-design="clinical"] .wordmark {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(21, 61, 69, 0.08);
}

html[data-design="clinical"] .hero {
  min-height: calc(100vh - 120px);
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 36px;
  box-shadow: 0 30px 90px rgba(21, 61, 69, 0.12);
  backdrop-filter: blur(12px);
}

html[data-design="clinical"] .portrait-wrap {
  width: min(100%, 430px);
}

html[data-design="clinical"] .portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(8, 124, 140, 0.16);
}

html[data-design="clinical"] .portrait-note {
  right: -1rem;
  bottom: 1.5rem;
  border-radius: 999px;
  transform: none;
}

html[data-design="clinical"] .eyebrow {
  color: var(--teal);
}

html[data-design="clinical"] h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

html[data-design="clinical"] .lead {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
}

html[data-design="clinical"] .button {
  border-color: var(--teal);
  border-radius: 999px;
}

html[data-design="clinical"] .details {
  gap: 0.75rem;
  padding-top: 0;
  border: 0;
}

html[data-design="clinical"] .details div {
  padding: 1rem;
  background: var(--paper);
  border-radius: 14px;
}

html[data-design="clinical"] .site-footer {
  border-color: rgba(8, 124, 140, 0.2);
}

/* 04 · Varm organisk ---------------------------------------------------- */

html[data-design="organic"] {
  --ink: #442d27;
  --ink-soft: #755c51;
  --paper: #f3e5d2;
  --paper-deep: #e8d1b4;
  --teal: #5e6d4f;
  --teal-light: #dce0cc;
  --coral: #a84932;
  --white: #fffaf2;
  --line: rgba(68, 45, 39, 0.18);
}

html[data-design="organic"] body {
  background:
    radial-gradient(circle at 100% 0, rgba(168, 73, 50, 0.14) 0 24rem, transparent 24.1rem),
    radial-gradient(circle at 5% 90%, rgba(94, 109, 79, 0.16) 0 18rem, transparent 18.1rem),
    var(--paper);
}

html[data-design="organic"] .site-header {
  border: 0;
}

html[data-design="organic"] .wordmark-name {
  font-style: italic;
}

html[data-design="organic"] .hero {
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(4rem, 9vw, 9rem);
}

html[data-design="organic"] .portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 52% 48% 46% 54% / 42% 55% 45% 58%;
  box-shadow: 24px 28px 0 rgba(94, 109, 79, 0.18);
}

html[data-design="organic"] .portrait-note {
  right: -0.5rem;
  bottom: 2rem;
  background: var(--teal);
  border-radius: 999px;
  transform: rotate(3deg);
}

html[data-design="organic"] .eyebrow {
  color: var(--teal);
}

html[data-design="organic"] .eyebrow::before {
  width: 2rem;
  height: 2px;
}

html[data-design="organic"] h1 {
  color: var(--coral);
  font-size: clamp(4.3rem, 9vw, 7.8rem);
  font-style: italic;
  letter-spacing: -0.065em;
}

html[data-design="organic"] .lead {
  max-width: 27ch;
}

html[data-design="organic"] .button {
  border-color: var(--teal);
  border-radius: 999px;
}

html[data-design="organic"] .button-primary {
  background: var(--teal);
}

html[data-design="organic"] .details {
  border-color: rgba(68, 45, 39, 0.28);
}

/* 05 · Mörk studio ------------------------------------------------------ */

html[data-design="night"] {
  --ink: #f4eddf;
  --ink-soft: #b8c9c4;
  --paper: #082f34;
  --paper-deep: #0d3d42;
  --teal: #e4b85c;
  --teal-light: #16484c;
  --coral: #e4b85c;
  --white: #082f34;
  --line: rgba(244, 237, 223, 0.22);
}

html[data-design="night"] body {
  background:
    linear-gradient(120deg, transparent 0 68%, rgba(228, 184, 92, 0.08) 68% 100%),
    var(--paper);
}

html[data-design="night"] .site-header,
html[data-design="night"] .site-footer,
html[data-design="night"] .hero {
  width: min(1280px, calc(100% - 64px));
}

html[data-design="night"] .site-header {
  min-height: 96px;
}

html[data-design="night"] .wordmark-name {
  color: #f4eddf;
}

html[data-design="night"] .hero {
  grid-template-columns: minmax(350px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(3rem, 7vw, 7rem);
}

html[data-design="night"] .portrait-wrap {
  width: min(100%, 520px);
}

html[data-design="night"] .portrait-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 2px;
  box-shadow: 26px 26px 0 #0f454a;
}

html[data-design="night"] .portrait-note {
  right: -1rem;
  bottom: 1.5rem;
  color: #082f34;
  background: #e4b85c;
  transform: none;
}

html[data-design="night"] .eyebrow,
html[data-design="night"] h1 {
  color: #f4eddf;
}

html[data-design="night"] h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 8vw, 7rem);
}

html[data-design="night"] .lead {
  color: #e4b85c;
}

html[data-design="night"] .button {
  border-color: #e4b85c;
}

html[data-design="night"] .button-primary {
  color: #082f34;
  background: #e4b85c;
}

html[data-design="night"] .button-primary:hover {
  background: #f0ca78;
}

html[data-design="night"] .button-secondary {
  color: #f4eddf;
}

html[data-design="night"] .button-secondary:hover {
  color: #082f34;
  background: #e4b85c;
}

html[data-design="night"] .details a,
html[data-design="night"] .site-footer {
  color: #f4eddf;
}

/* Tillfällig designväljare --------------------------------------------- */

body {
  padding-bottom: 78px;
}

.design-switcher {
  position: fixed;
  z-index: 50;
  right: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0.42rem;
  color: #f8f8f5;
  background: rgba(14, 22, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1;
  transform: translateX(50%);
  backdrop-filter: blur(12px);
}

.design-nav {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  place-items: center;
}

.design-nav:hover {
  background: rgba(255, 255, 255, 0.13);
}

.design-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.4rem;
  color: #b7c0be;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.design-picker select {
  min-height: 36px;
  max-width: 190px;
  padding: 0 2rem 0 0.75rem;
  color: #f8f8f5;
  background: #273130;
  border: 1px solid #485250;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.design-count {
  min-width: 9.5rem;
  padding-inline: 0.55rem 0.75rem;
  color: #b7c0be;
  white-space: nowrap;
}

.design-switcher :focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  html[data-design="nordic"] .site-header,
  html[data-design="nordic"] .site-footer,
  html[data-design="nordic"] .hero,
  html[data-design="clinical"] .site-header,
  html[data-design="clinical"] .site-footer,
  html[data-design="clinical"] .hero,
  html[data-design="night"] .site-header,
  html[data-design="night"] .site-footer,
  html[data-design="night"] .hero {
    width: min(100% - 32px, 620px);
  }

  html[data-design="nordic"] .hero,
  html[data-design="clinical"] .hero,
  html[data-design="organic"] .hero,
  html[data-design="night"] .hero {
    grid-template-columns: 1fr;
  }

  html[data-design="nordic"] .portrait-wrap {
    order: 1;
  }

  html[data-design="nordic"] .hero-copy {
    order: 2;
  }

  html[data-design="clinical"] .hero {
    padding: 1.25rem;
    border-radius: 24px;
  }

  html[data-design="night"] .portrait-wrap {
    width: min(82%, 430px);
  }

  .design-count {
    display: none;
  }
}

@media (max-width: 540px) {
  html[data-design="editorial"] h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 6.5rem);
    white-space: nowrap;
  }

  html[data-design="nordic"] .site-header,
  html[data-design="nordic"] .site-footer,
  html[data-design="nordic"] .hero {
    width: calc(100% - 32px);
  }

  html[data-design="nordic"] h1,
  html[data-design="clinical"] h1,
  html[data-design="night"] h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  html[data-design="organic"] .portrait-frame {
    box-shadow: 12px 16px 0 rgba(94, 109, 79, 0.18);
  }

  html[data-design="night"] .portrait-frame {
    box-shadow: 12px 14px 0 #0f454a;
  }

  .design-switcher {
    bottom: 10px;
  }

  .design-picker > span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .design-picker select {
    max-width: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-switcher,
  .design-switcher * {
    scroll-behavior: auto;
  }
}
