/* =========================================================
   3NESSENCE.CSS – 3nessence-brand.html
   Egen stil för 3NEssence-caset (använder inte base.css).
   ========================================================= */

:root {
  --bg: #f8f5f2;
  --wine: #751e2b;
  --ink: #342d2b;
  --muted: #665b57;
  --line: #dfd3cd;
  --card: #fffdfa;
  --soft: #eee5df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--wine);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 5px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--wine);
  text-decoration: none;
}

.back {
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 78px 0 64px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wine);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--wine);
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -2px;
  margin: 20px 0 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 45px);
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

p {
  margin-bottom: 18px;
}

.lead {
  font-size: 20px;
  max-width: 610px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.pill {
  display: inline-block;
  border: 1px solid var(--wine);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--wine);
  margin-bottom: 16px;
}

.button {
  display: inline-block;
  background: var(--wine);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
}

.concept {
  background: var(--wine);
  color: var(--bg);
  border-radius: 120px 120px 8px 8px;
  min-height: 390px;
  padding: 52px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.concept .big {
  font:
    400 clamp(36px, 4vw, 52px) / 1.15 Georgia,
    serif;
  margin: 20px 0;
}

.concept .note {
  color: var(--bg);
  opacity: 0.85;
}

.concept .small {
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding: 24px 0;
  gap: 24px;
}

.facts span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.facts strong {
  font-size: 21px;
  font-weight: 400;
  color: var(--wine);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding: 26px 0;
  font-size: 14px;
}

section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.num {
  font-size: 13px;
  color: var(--wine);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card p:last-child {
  margin-bottom: 0;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wine);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.callout {
  border-left: 3px solid var(--wine);
  padding: 20px 24px;
  background: var(--soft);
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

th,
td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--soft);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.ad {
  background: var(--wine);
  color: var(--bg);
  padding: 36px;
  border-radius: 6px;
}

.ad h3 {
  font:
    400 36px / 1.15 Georgia,
    serif;
}

.ad .label {
  color: var(--bg);
  opacity: 0.8;
}

.ad .cta {
  border: 1px solid var(--bg);
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 24px 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 14px;
  line-height: 28px;
}

.steps strong {
  display: block;
}

.sources {
  font-size: 14px;
  padding-left: 22px;
}

.sources li {
  padding-bottom: 15px;
}

.sources a {
  overflow-wrap: anywhere;
}

footer {
  padding: 36px 0 50px;
  color: var(--muted);
  font-size: 13px;
}

ul {
  padding-left: 21px;
}

li {
  margin-bottom: 8px;
}

details {
  border: 1px solid var(--line);
  padding: 20px 24px;
  border-radius: 6px;
  margin-top: 24px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--wine);
}

details p {
  margin: 16px 0 0;
}

.end {
  font:
    400 30px / 1.3 Georgia,
    serif;
  color: var(--wine);
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0;
  }

  .concept {
    min-height: 280px;
    border-radius: 90px 90px 6px 6px;
  }

  .grid,
  .three {
    grid-template-columns: 1fr;
  }

  .facts {
    gap: 16px;
  }

  .facts strong {
    font-size: 17px;
  }

  .facts span {
    font-size: 10px;
  }

  .card {
    padding: 23px;
  }

  section {
    padding: 38px 0;
  }

  .top {
    padding: 20px 0;
  }

  h1 {
    letter-spacing: -1px;
  }

  th,
  td {
    padding: 14px 16px;
  }

  .table-wrap table {
    min-width: 560px;
  }

  nav {
    gap: 10px 20px;
  }

  .lead {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  nav,
  .skip,
  .back,
  .button {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  .wrap {
    width: 100%;
  }

  .hero {
    padding: 20px 0;
    gap: 25px;
  }

  .concept {
    min-height: 220px;
  }

  .grid {
    gap: 14px;
  }

  section {
    padding: 24px 0;
  }

  .card,
  .ad,
  .callout {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  a {
    color: inherit;
  }

  .note {
    font-size: 10pt;
  }
}
