@font-face {
  font-family: "Candu";
  src: url("fonte/Candu.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
  font-family: "Olive Display";
  src: url("OliveDisplay-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
} */

/* ========================================
   SIDE OG HOVEDOMRÅDE
======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #cfe1fa;
  color: #111118;
}

.about-section {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 110px;
}

/* ========================================
   OVERSKRIFT
======================================== */

.about-title {
  margin: 0 0 78px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 18px;

  font-family: "Candu", "Archivo Black", sans-serif;
  font-size: clamp(3.25rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-title span {
  color: #050505;
}

.about-title strong {
  color: #eb36ef;
  font: inherit;
}

/* ========================================
   TO KOLONNER
======================================== */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  column-gap: clamp(64px, 9vw, 130px);
}

.about-content {
  width: 100%;
  max-width: 445px;
}

.about-text {
  color: #272631;
  font-family: "Olive Display", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 27px;
}

/* ========================================
   DIGITALE VÆRKTØJER
======================================== */

.tools-card {
  width: fit-content;
  margin-top: 34px;
  padding: 18px 24px 20px;

  border: 1px solid rgb(85 100 145 / 24%);
  border-radius: 18px;
  background: rgb(255 255 255 / 5%);
}

.tools-card h2 {
  margin: 0 0 15px;
  color: #eb36ef;
  font-family: "Olive Display", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 200;
  line-height: 1;
}

.tools-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.tools-list li {
  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.tools-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   PORTRÆT OG BLÅ FORM
======================================== */

.about-portrait {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  margin: 0;
  justify-self: end;
  display: grid;
  place-items: center;
}

.portrait-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.portrait-image {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 76%;
  object-fit: cover;
  object-position: 50% 43%;
  border-radius: 22px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {
  .about-section {
    width: calc(100% - 40px);
    padding: 48px 0 80px;
  }

  .about-title {
    margin: 0 0 40px;

    justify-content: center;
    gap: 12px;

    font-size: clamp(2.6rem, 7vw, 3.4rem);
    white-space: normal;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .about-content {
    max-width: 100%;
    order: 2;
  }

  .about-portrait {
    order: 1;
    justify-self: center;
    width: min(420px, 70%);
    margin: 0 auto;
  }

  .tools-list {
    flex-wrap: wrap;
  }
}

/* ========================================
   MOBIL
======================================== */

@media (max-width: 650px) {
  .about-section {
    width: calc(100% - 32px);
    padding: 40px 0 70px;
  }

  .about-title {
    width: fit-content;
    margin: 0 auto 32px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;

    font-size: clamp(2.2rem, 9vw, 2.8rem);
    letter-spacing: 0;
    white-space: normal;
    line-height: 0.95;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .about-content {
    max-width: 100%;
    order: 2;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .about-text p + p {
    margin-top: 22px;
  }

  .about-portrait {
    order: 1;
    justify-self: center;
    width: min(340px, 100%);
    margin: 0 auto;
  }

  .tools-card {
    margin-top: 26px;
    padding: 16px 18px 18px;
  }

  .tools-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .tools-list {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tools-list li {
    width: 48px;
    height: 48px;
  }

  .tools-list li:last-child img {
    height: 42px;
    max-height: 42px;
  }
}
/* ========================================
   H1 – ENS PÅ ALLE UNDERSIDER
======================================== */

.about-section {
  padding-top: 64px;
}

.about-title {
  font-size: 64px;
}

@media (max-width: 950px) {
  .about-section {
    padding-top: 48px;
  }

  .about-title {
    font-size: clamp(48px, 8vw, 64px);
  }
}

@media (max-width: 650px) {
  .about-section {
    padding-top: 32px;
  }

  .about-title {
    font-size: clamp(34px, 11vw, 46px);
  }
}
/* ========================================
   STØRRE BLÅ FORM BAG PORTRÆTTET
======================================== */

.portrait-shape {
  transform: scale(1.1);
}

/* Sikkerhedsnet: formen må aldrig give vandret scroll på mobil */
main {
  overflow-x: clip;
}
/* ========================================
   DESKTOP – STØRRE PORTRÆT, ALIGNET MED TEKSTEN
======================================== */

@media (min-width: 951px) {
  /* Tekst og portræt starter fra toppen i stedet for midten */
  .about-layout {
    align-items: start;
  }

  .about-portrait {
    width: min(100%, 540px);

    /* Flytter portrættet op, så billedets overkant flugter med teksten */
    transform: translateY(-8%);
  }

  /* Større billede inde i formen */
  .portrait-image {
    width: 70%;
    height: 84%;
  }
}
