/* =======================================================
   MI · VI · DE — OM MIG
   ======================================================= */


/* =======================================================
   VARIABLES
   ======================================================= */

:root {
  --brand-color: #6f5b54;
  --cream: #f2f0eb;
  --warm-white: #f8f7f4;
  --white: #ffffff;
  --taupe: #b7a49d;
  --taupe-dark: #76544a;
  --brown: #3d2f2b;
  --brown-light: #6f5b54;
  --text: #675a55;
  --muted: #8a7b74;
  --card: #f3eee7;
  --border: rgba(61, 47, 43, 0.16);
  --light-border: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.88);
}


/* =======================================================
   RESET / BASE
   ======================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--taupe-dark);
  color: var(--white);
}


/* =======================================================
   HEADER
   ======================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  color: var(--white);
  background: transparent;

  transition:
    background-color 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(83, 38, 26, 0.216);

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.navbar {
  padding-top: 15px;
  padding-bottom: 15px;
}


/* =======================================================
   LOGO
   ======================================================= */

.brand-mark {
  width: 115px;

  display: grid;

  grid-template-columns: 25px 1fr;
  grid-template-rows: repeat(3, 1fr);

  column-gap: 1px;

  color: var(--white);

  text-decoration: none;
  text-transform: uppercase;

  font-size: 16px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 300;

  transition: opacity 0.2s ease;
}


/* MI · VI · DE */

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(3),
.brand-mark span:nth-child(5) {
  color: #f4d8cad3;
  font-weight: 1000;
}


/* ES · SUELLE · SIGNS */

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4),
.brand-mark span:nth-child(6) {
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.brand-mark span:nth-child(1) {
  grid-area: 1 / 1;
}

.brand-mark span:nth-child(2) {
  grid-area: 1 / 2;
}

.brand-mark span:nth-child(3) {
  grid-area: 2 / 1;
}

.brand-mark span:nth-child(4) {
  grid-area: 2 / 2;
}

.brand-mark span:nth-child(5) {
  grid-area: 3 / 1;
}

.brand-mark span:nth-child(6) {
  grid-area: 3 / 2;
}

.brand-mark:hover {
  opacity: 0.75;
}


/* =======================================================
   NAVIGATION
   ======================================================= */

.nav-link {
  color: rgba(255, 255, 255, 0.92) !important;

  font-size: 15px;
  font-weight: 200;

  padding: 0.25rem 0.2rem !important;

  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.65;
}

.nav-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.navbar-toggler {
  background: rgba(255, 255, 255, 0.35);

  padding: 0.4rem 0.55rem;

  border-radius: 0;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}


/* =======================================================
   NAVIGATION — STREGER + AKTIV SIDE
   ======================================================= */

.navbar-nav .nav-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.35);

  padding-right: 7px;
  margin-right: 7px;
}

.navbar-nav .nav-link {
  position: relative;
}


/* Aktiv side */

.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-nav .nav-link.active::after {
  content: "";

  position: absolute;

  left: 0.35rem;
  right: 0.35rem;

  bottom: -5px;

  height: 1px;

  background: rgba(255, 255, 255, 0.9);
}


/* =======================================================
   HERO
   ======================================================= */

.hero {
  position: relative;

  width: 100%;

  min-height: 540px;
  height: 540px;

  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background-image: url("assets/baggrund.jpg");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}


/* Mørkt transparent lag */

.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background: rgba(92, 42, 1, 0.161);
}


/* =======================================================
   HERO TEXT
   ======================================================= */

.hero-text {
  position: relative;

  z-index: 3;

  padding-top: 170px;

  color: var(--white);
}

.eyebrow {
  margin-bottom: 25px;

  font-size: 13px;

  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(3.2rem, 5.8vw, 5.5rem);

  font-weight: 500;

  line-height: 0.9;

  letter-spacing: -0.055em;
}

.hero .lead {
  margin-top: 30px;

  font-size: clamp(0.78rem, 1.05vw, 1.15rem);

  letter-spacing: 0.01em;

  line-height: 1.5;
}


/* =======================================================
   OM MIG — HERO
   ======================================================= */

.about-page-hero {
  min-height: 390px;
  height: 390px;
}

.about-page-hero .hero-text {
  padding-top: 125px;
}


/* =======================================================
   OM MIG — INTRO
   ======================================================= */

.about-me-section {
  background: var(--warm-white);

  padding: 100px 45px;
}

.about-me-inner {
  max-width: 1100px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}


/* Billede */

.about-me-image {
  position: relative;
}

.about-me-image img {
  display: block;

  width: 70%;

  max-width: 500px;

  margin: 0 auto;
}


/* Tekst */

.about-me-text {
  max-width: 500px;
}

.section-kicker {
  margin-bottom: 15px;

  font-size: 12px;

  letter-spacing: 0.14em;

  color: var(--muted);
}

.about-me-text h2,
.background-heading h2 {
  margin: 0 0 25px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(2.4rem, 4vw, 3.8rem);

  font-weight: 500;

  line-height: 1;
  
  color: var(--brown);
}

.about-me-text p:not(.section-kicker) {
  font-size: 15px;

  line-height: 1.8;

  margin-bottom: 18px;
}

/* =======================================================
   MIN BAGGRUND
======================================================= */

.background-section {
  background: var(--cream);
  padding: 115px 45px 125px;
}

.background-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: start;
}


/* UDDANNELSE */

.background-heading {
  position: relative;
}

.background-heading h2 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--brown);
}

.education-university {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}


/* UDDANNELSESPOST */

.education-item {
  position: relative;
  margin-top: 48px;
  padding-left: 22px;
  border-left: 1px solid rgba(61, 47, 43, 0.22);
}

.education-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
}

.education-meta span:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brown);
}

.education-meta span:last-child {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.education-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-item li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 13px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}

.education-item li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--taupe-dark);
}


/* FRI TEKST */

.background-text {
  max-width: 600px;
  padding-top: 155px;
  font-size: 15px;
  line-height: 1.85;
}

.background-text p {
  margin: 0 0 25px;
}

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


/* =======================================================
   TABLET
======================================================= */

@media (max-width: 991.98px) {

  .background-section {
    padding: 90px 35px 100px;
  }

  .background-inner {
    grid-template-columns: 1fr;
    gap: 55px;
    max-width: 700px;
  }

  .background-text {
    padding-top: 0;
    max-width: 650px;
  }

}


/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 575.98px) {

  .background-section {
    padding: 70px 25px 80px;
  }

  .background-inner {
    gap: 45px;
  }

  .education-item {
    margin-top: 38px;
  }

  .background-text {
    font-size: 14px;
    line-height: 1.8;
  }

}

/* =======================================================
   FOOTER
   ======================================================= */

.site-footer {
  background: var(--brown);

  color: var(--white);

  padding: 70px 45px 25px;
}

.footer-inner {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1.4fr repeat(3, 1fr);

  gap: 60px;
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;

  font-size: 2rem;

  letter-spacing: 0.08em;
}

.footer-brand p {
  margin-top: 10px;

  font-size: 13px;

  opacity: 0.7;
}

.footer-column {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.footer-heading {
  margin-bottom: 8px;

  font-size: 11px;

  letter-spacing: 0.15em;

  opacity: 0.55;
}

.footer-column a {
  text-decoration: none;

  font-size: 13px;

  opacity: 0.8;

  transition: opacity 0.2s ease;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;

  margin: 55px auto 0;

  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,0.18);

  font-size: 11px;

  opacity: 0.5;
}


/* =======================================================
   TABLET
   ======================================================= */

@media (max-width: 991.98px) {

  .about-me-inner {
    grid-template-columns: 1fr;

    gap: 50px;

    max-width: 700px;
  }

  .about-me-image img {
    max-width: 450px;
  }

  .about-me-text {
    max-width: 650px;

    margin: 0 auto;
  }

  .background-inner {
    grid-template-columns: 1fr;

    gap: 35px;

    max-width: 700px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;

    gap: 45px;
  }
}


/* =======================================================
   MOBILE
   ======================================================= */

@media (max-width: 575.98px) {

  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 105px;

    font-size: 15px;
  }

  .about-page-hero {
    min-height: 330px;
    height: 330px;
  }

  .about-page-hero .hero-text {
    padding-top: 105px;
  }

  .about-me-section,
  .background-section {
    padding: 70px 25px;
  }

  .about-me-inner {
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .site-footer {
    padding: 60px 25px 25px;
  }
}