
/* =====================================
   FÄRGER OCH TYPSNITT
===================================== */

:root {
  --background: #EDE8DF;
  --surface: #F7F4EE;
  --hero-background: #EAE7DD;
  --green: #35483E;
  --sage: #A5B5A0;
  --pink: #C9A99C;
  --text: #171B17;
  --border: #35483E;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --font-handwriting: "Caveat", cursive;
}

/* =====================================
   GRUNDINSTÄLLNINGAR
===================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================================
   SIDANS RAM
===================================== */

.page-wrapper {
  width: min(100% - 40px, 1100px);
  margin: 35px auto;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 6px;

  overflow: visible;
}

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

.site-header {
  height: 75px;
  padding: 0 35px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--surface);
  border-bottom: 1px solid rgba(53, 72, 62, 0.15);

  position: relative;
  z-index: 100;

  border-radius: 6px 6px 0 0;
}

/* Logotyp */

.logo {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 35px;

  margin-left: auto;
  margin-right: 35px;
}

.desktop-nav a {
  font-size: 12px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #748D79;
}

.desktop-nav a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* =====================================
   HAMBURGERMENY
===================================== */

.menu-dropdown {
  position: relative;
  flex-shrink: 0;
}

.hamburger {
  width: 30px;
  height: 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  cursor: pointer;
  list-style: none;

  position: relative;
  z-index: 102;
}

/* Ta bort standardpilen */

.hamburger::-webkit-details-marker {
  display: none;
}

.hamburger::marker {
  content: "";
}

/* De tre strecken */

.hamburger span {
  display: block;

  width: 23px;
  height: 2px;

  background: var(--text);
  border-radius: 2px;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Hamburgaren blir ett kryss */

.menu-dropdown[open] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-dropdown[open] .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-dropdown[open] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown */

.dropdown-nav {
  position: absolute;
  top: calc(100% + 18px);
  right: -15px;

  width: 210px;

  display: flex;
  flex-direction: column;

  padding: 12px 0;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 5px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

  z-index: 101;
}

.dropdown-nav a {
  display: block;

  padding: 12px 22px;

  font-size: 13px;
  font-weight: 500;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-nav a:hover {
  background: var(--sage);
  color: #172B24;
}

.hamburger:focus-visible,
.dropdown-nav a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

/* =====================================
   STARTSIDA – HERO
===================================== */

.hero {
  min-height: 430px;

  display: flex;
  align-items: center;

  padding: 60px 12%;

  background-color: var(--hero-background);
  background-image: url("images/startsida-helbild.png");

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

.hero-content {
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-handwriting);
  font-size: clamp(55px, 7vw, 88px);
  font-weight: 400;

  line-height: 0.88;
  margin-bottom: 30px;
}

.hero p {
  max-width: 310px;

  font-size: 15px;
  line-height: 1.6;

  margin-bottom: 25px;
}

/* =====================================
   KNAPPAR
===================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: var(--green);
  color: #FFFFFF;

  padding: 14px 24px;
  border-radius: 5px;

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  background: #496755;
  transform: translateY(-2px);
}

/* =====================================
   STARTSIDA – PROJEKT
===================================== */

.projects-section {
  padding: 35px 6% 45px;
  background: var(--surface);
}

.projects-section h2 {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 500;

  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 18px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-image {
  width: 100%;
  aspect-ratio: 2 / 1;

  overflow: hidden;
  border-radius: 5px;

  background: #E4DED4;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;

  margin-top: 9px;
  line-height: 1.3;
}

.project-card p {
  font-size: 12px;
  margin-top: 3px;
}

/* =====================================
   OM MIG – BANNER MED BLAD
===================================== */

/* Ingen bladbild på hela main */

.about-page .about-main {
  background: var(--surface);
}

/* Bladbild ENDAST bakom
   profilbild och presentation */

.about-page .about-intro {
  background-color: var(--hero-background);
  background-image: url("images/helsida.png");

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

  padding: 50px 6% 55px;
}

/* =====================================
   OM MIG – PROFIL OCH TEXT
===================================== */

.about-page .about-layout {
  display: grid;

  grid-template-columns: 43% 1fr;

  align-items: center;
  gap: 45px;
}

/* Profilbild */

.about-page .about-photo {
  position: relative;
  min-width: 0;
}

.about-page .about-photo picture {
  display: block;
  width: 100%;
}

.about-page .profile-image {
  display: block;

  width: 100%;
  height: 390px;

  object-fit: cover;
  object-position: center;

  border-radius: 4px;
}

/* Presentation */

.about-page .about-text {
  max-width: 420px;
}

.about-page .about-text h1 {
  font-family: var(--font-heading);

  font-size: 43px;
  font-weight: 500;
  line-height: 1.2;

  margin-bottom: 16px;
}

.about-page .about-text p {
  font-family: var(--font-body);

  font-size: 14px;
  line-height: 1.8;

  margin-bottom: 22px;
}

.about-page .about-text .btn {
  font-size: 11px;
  padding: 12px 20px;
}

/* =====================================
   OM MIG – EGENSKAPER
===================================== */

.about-page .about-skills {
  padding: 35px 6% 40px;
  background: var(--surface);
}

.about-page .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.about-page .skill-card {
  text-align: center;
  min-width: 0;
}

.about-page .skill-icon {
  width: 60px;
  height: 60px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--green);
}

.about-page .skill-icon svg {
  width: 55px;
  height: 55px;
}

.about-page .heart-icon svg {
  fill: var(--sage);
}

.about-page .skill-card h2 {
  font-family: var(--font-heading);

  font-size: 18px;
  font-weight: 500;

  margin-bottom: 8px;
}

.about-page .skill-card p {
  max-width: 190px;
  margin: 0 auto;

  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.7;
}

/* =====================================
   OM MIG – MIN BAKGRUND
===================================== */

.about-page .about-background {
  padding: 30px 6% 45px;
  background: var(--surface);
}

.about-page .about-background h2 {
  font-family: var(--font-heading);

  font-size: 27px;
  font-weight: 500;

  margin-bottom: 18px;
}

.about-page .background-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-page .background-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;

  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.5;
}

.about-page .background-year {
  white-space: nowrap;
}

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

.site-footer {
  background: var(--green);
  color: #FFFFFF;

  padding: 22px 35px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  border-radius: 0 0 5px 5px;
}

.site-footer p {
  font-family: var(--font-heading);
  font-size: 12px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.65;
}

.social-links svg {
  width: 19px;
  height: 19px;
}

.social-text {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
}

/* =====================================
   MOBILANPASSNING
===================================== */

@media (max-width: 700px) {

  body {
    font-size: 13px;
  }

  .page-wrapper {
    width: min(100% - 24px, 390px);
    margin: 15px auto;
  }

  /* Header */

  .site-header {
    height: 65px;
    padding: 0 18px;
  }

  .logo {
    font-size: 27px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-dropdown {
    margin-left: auto;
  }

  .dropdown-nav {
    right: -10px;
    top: calc(100% + 13px);
    width: 190px;
  }

  /* Startsida – hero */

  .hero {
    min-height: 360px;
    padding: 45px 22px;
    background-position: center;
  }

  .hero-content {
    max-width: 230px;
  }

  .hero h1 {
    font-size: 58px;
    margin-bottom: 22px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .btn {
    font-size: 10px;
    padding: 12px 16px;
  }

  /* Startsida – projekt */

  .projects-section {
    padding: 25px 20px 30px;
  }

  .projects-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-image {
    aspect-ratio: 1.8 / 1;
  }

  .project-card h3 {
    font-size: 17px;
  }

  .project-card p {
    font-size: 11px;
  }

  /* Om mig – banner */

  .about-page .about-intro {
    padding: 20px 18px 30px;

    background-size: cover;
    background-position: center;
  }

  .about-page .about-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-page .profile-image {
    width: 100%;
    height: 280px;

    object-fit: cover;
    object-position: center 35%;
  }

  /* Om mig – text */

  .about-page .about-text {
    max-width: 100%;
  }

  .about-page .about-text h1 {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .about-page .about-text p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .about-page .about-text .btn {
    font-size: 10px;
    padding: 12px 16px;
  }

  /* Om mig – egenskaper */

  .about-page .about-skills {
    padding: 30px 18px;
  }

  .about-page .skills-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-page .skill-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 8px;
  }

  .about-page .skill-icon svg {
    width: 50px;
    height: 50px;
  }

  .about-page .skill-card h2 {
    font-size: 17px;
  }

  .about-page .skill-card p {
    max-width: 220px;
    font-size: 12px;
  }

  /* Om mig – bakgrund */

  .about-page .about-background {
    padding: 25px 18px 35px;
  }

  .about-page .about-background h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .about-page .background-list {
    gap: 15px;
  }

  .about-page .background-item {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 13px;
  }

  .about-page .background-year {
    font-weight: 600;
  }

  /* Footer */

  .site-footer {
    padding: 18px;
  }

  .site-footer p {
    font-size: 10px;
  }

  .social-links {
    gap: 13px;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .social-text {
    font-size: 17px;
  }

}

/* =====================================
   DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  :root {
    --background: #0C1915;
    --surface: #172B24;
    --hero-background: #152A22;
    --text: #F7F4EE;
    --border: #A5B5A0;
  }

  /* Header */

  .site-header {
    background: #11221D;
    border-bottom-color: #53665A;
  }

  /* Startsida – mörk hero */

  .hero {
    background-image:
      url("images/startsida-helbild-darkmode.png");
  }

  /* Knappar */

  .btn {
    background: #E5C6B8;
    color: #172B24;
  }

  .btn:hover {
    background: #F1D9CB;
  }

  /* Projektbilder */

  .project-image {
    background: #30463B;
  }

  /* Om mig – mörk bladbanner */

  .about-page .about-intro {
    background-color: #152A22;

    background-image:
      url("images/helsida-darkmode.png");

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

  /* Om mig – vanliga mörka sektioner */

  .about-page .about-main,
  .about-page .about-skills,
  .about-page .about-background {
    background-color: var(--surface);
  }

  /* Ikoner */

  .about-page .skill-icon {
    color: var(--sage);
  }

  .about-page .heart-icon svg {
    fill: var(--green);
  }

  /* Footer */

  .site-footer {
    background: #10221D;
  }

}

/* =====================================
   CV OCH PERSONLIGT BREV
===================================== */

/* Bilden fyller sidans innehåll */

.cv-page .cv-main {
  width: 100%;
  padding: 0;
  margin: 0;

  background: var(--surface);
}

/* Själva CV-bilden */

.cv-page .cv-image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;

  margin: 0;
  padding: 0;
}

/* =====================================
   CV – MOBILANPASSNING
===================================== */

@media (max-width: 700px) {

  .cv-page .cv-main {
    width: 100%;
    padding: 0;
  }

  .cv-page .cv-image {
    width: 100%;
    height: auto;
  }

}

/* =====================================
   CV – DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  .cv-page .cv-main {
    background: var(--surface);
  }

}

/* =====================================
   KONTAKTSIDA
===================================== */

.contact-page .contact-main {
  background: #EEEAE1;

  min-height: 580px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 65px 25px;
}

/* Innehållet i mitten */

.contact-section {
  width: 100%;
  max-width: 570px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Dekorativt blad */

.contact-leaf {
  width: 55px;
  height: 55px;

  color: #718875;

  margin-bottom: 15px;
}

.contact-leaf svg {
  width: 100%;
  height: 100%;
}

/* Rubrik */

.contact-section h1 {
  font-family: var(--font-heading);
  font-size: 45px;
  font-weight: 500;

  margin-bottom: 18px;
}

/* Introduktion */

.contact-intro {
  max-width: 410px;

  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;

  margin-bottom: 35px;
}

/* =====================================
   KONTAKTKORT
===================================== */

.contact-links {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Klickbara kort */

.contact-card {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 20px 22px;

  background: #F7F4EE;

  border: 1px solid #D6D3C8;
  border-radius: 8px;

  text-align: left;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Hover */

.contact-card:hover {
  transform: translateY(-3px);

  border-color: #A5B5A0;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Ikonruta */

.contact-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #E5E9E0;
  color: #35483E;

  border-radius: 8px;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
}

/* Text */

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
}

.contact-card-description {
  font-family: var(--font-body);
  font-size: 12px;

  color: #53665A;

  overflow-wrap: anywhere;
}

/* Pil till höger */

.contact-arrow {
  margin-left: auto;

  font-size: 24px;
  color: #35483E;

  transition: transform 0.25s ease;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
}

/* Avslutande text */

.contact-message {
  margin-top: 35px;

  font-family: var(--font-handwriting);
  font-size: 27px;

  color: #718875;
}

/* Tangentbordsnavigation */

.contact-card:focus-visible {
  outline: 3px solid #718875;
  outline-offset: 4px;
}


/* =====================================
   KONTAKT – MOBIL
===================================== */

@media (max-width: 700px) {

  .contact-page .contact-main {
    min-height: 520px;
    padding: 45px 18px;
  }

  .contact-leaf {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }

  .contact-section h1 {
    font-size: 34px;
    margin-bottom: 15px;
  }

  .contact-intro {
    font-size: 12px;
    line-height: 1.8;

    margin-bottom: 28px;
  }

  .contact-links {
    gap: 12px;
  }

  .contact-card {
    padding: 15px 12px;
    gap: 12px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-icon svg {
    width: 21px;
    height: 21px;
  }

  .contact-card-title {
    font-size: 17px;
  }

  .contact-card-description {
    font-size: 10px;
  }

  .contact-arrow {
    font-size: 19px;
  }

  .contact-message {
    margin-top: 30px;
    font-size: 24px;
  }

}


/* =====================================
   KONTAKT – DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  .contact-page .contact-main {
    background: #172B24;
  }

  .contact-leaf {
    color: #A5B5A0;
  }

  .contact-card {
    background: #22382E;
    border-color: #52675A;
  }

  .contact-card:hover {
    border-color: #A5B5A0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .contact-icon {
    background: #35483E;
    color: #E5E9E0;
  }

  .contact-card-title {
    color: #F7F4EE;
  }

  .contact-card-description {
    color: #C9D4C6;
  }

  .contact-arrow {
    color: #A5B5A0;
  }

  .contact-message {
    color: #C9A99C;
  }

}

/* =====================================
   PROJEKTSIDA – GRUND
===================================== */

.project-page .project-overview {
  background: var(--surface);
  padding: 65px 6% 55px;
}


/* =====================================
   INTRODUKTION
===================================== */

.project-page .project-intro {
  margin-bottom: 45px;
}

/* Liten text ovanför rubriken */

.project-page .project-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-bottom: 25px;

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;

  color: var(--green);
}

/* Linje bredvid texten */

.project-page .eyebrow-line {
  display: block;

  width: 90px;
  height: 1px;

  background: var(--sage);
}

/* Stor rubrik */

.project-page .project-intro h1 {
  font-family: var(--font-heading);

  font-size: clamp(42px, 6vw, 75px);
  font-weight: 500;
  line-height: 1.15;

  margin-bottom: 18px;
}

/* Introduktionstext */

.project-page .project-intro p {
  max-width: 650px;

  font-family: var(--font-heading);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
}


/* =====================================
   LISTA MED PROJEKT
===================================== */

.project-page .project-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}


/* =====================================
   STORA PROJEKTKORT
===================================== */

.project-page .project-feature {
  display: grid;

  grid-template-columns: 40% minmax(0, 1fr);

  align-items: stretch;
  gap: 30px;

  padding: 16px;

  background: var(--surface);

  border: 1px solid #DDD8CE;
  border-radius: 9px;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */

.project-page .project-feature:hover {
  border-color: var(--sage);

  box-shadow: 0 6px 20px
    rgba(0, 0, 0, 0.05);
}


/* =====================================
   PROJEKTBILDER
===================================== */

.project-page .feature-image {
  display: block;

  width: 100%;
  height: 220px;

  overflow: hidden;

  border-radius: 6px;
  background: #E4DED4;
}

.project-page .feature-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.35s ease;
}

.project-page .feature-image:hover img {
  transform: scale(1.04);
}


/* =====================================
   PROJEKTINFORMATION
===================================== */

.project-page .feature-content {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 10px 0;
}

/* Kategori */

.project-page .feature-category {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 12px;

  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;

  color: var(--green);
}

.project-page .category-line {
  width: 80px;
  height: 1px;

  background: var(--sage);
}

/* Projektrubrik */

.project-page .feature-content h2 {
  font-family: var(--font-heading);

  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.2;

  margin-bottom: 8px;
}

/* Beskrivning */

.project-page .feature-description {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;

  margin-bottom: 20px;
}


/* =====================================
   TEKNIKER OCH KNAPP
===================================== */

.project-page .feature-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  flex-wrap: wrap;
  gap: 20px;

  margin-top: auto;
}

/* Tekniketiketter */

.project-page .feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.project-page .feature-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  background: #EAE6DE;
  color: #27382F;

  border-radius: 5px;

  font-family: var(--font-heading);
  font-size: 12px;

  white-space: nowrap;
}

/* Projektknapp */

.project-page .feature-button {
  white-space: nowrap;

  font-size: 10px;
  letter-spacing: 1px;

  padding: 13px 18px;
}


/* =====================================
   FLER PROJEKT KOMMER
===================================== */

.project-page .more-projects {
  padding: 50px 0 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Linjer och bladikon */

.project-page .more-projects-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  width: 100%;
}

.project-page .decoration-line {
  width: 120px;
  max-width: 30%;
  height: 1px;

  background: var(--sage);
}

.project-page .more-projects-decoration svg {
  width: 38px;
  height: 38px;

  color: var(--green);
}

/* Handstilstext */

.project-page .more-projects p {
  font-family: var(--font-handwriting);

  font-size: 30px;
  letter-spacing: 1px;

  text-align: center;
}


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

@media (max-width: 950px) {

  .project-page .project-overview {
    padding: 45px 5%;
  }

  .project-page .project-feature {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 20px;
  }

  .project-page .feature-image {
    height: 240px;
  }

  .project-page .feature-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

}


/* =====================================
   MOBILANPASSNING
===================================== */

@media (max-width: 700px) {

  .project-page .project-overview {
    padding: 35px 18px 40px;
  }

  /* Introduktion */

  .project-page .project-intro {
    margin-bottom: 30px;
  }

  .project-page .project-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;

    margin-bottom: 18px;
  }

  .project-page .eyebrow-line {
    width: 55px;
  }

  .project-page .project-intro h1 {
    font-size: 38px;
    line-height: 1.2;
  }

  .project-page .project-intro p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Projektkorten blir vertikala */

  .project-page .project-list {
    gap: 20px;
  }

  .project-page .project-feature {
    grid-template-columns: 1fr;

    gap: 18px;
    padding: 12px;
  }

  /* Bild överst */

  .project-page .feature-image {
    width: 100%;
    height: 190px;
  }

  /* Text under bilden */

  .project-page .feature-content {
    padding: 5px 4px 8px;
  }

  .project-page .feature-category {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .project-page .category-line {
    width: 55px;
  }

  .project-page .feature-content h2 {
    font-size: 27px;
  }

  .project-page .feature-description {
    font-size: 14px;
    margin-bottom: 18px;
  }

  /* Tekniker och knapp */

  .project-page .feature-bottom {
    flex-direction: column;
    align-items: stretch;

    gap: 18px;
  }

  .project-page .feature-tags {
    gap: 7px;
  }

  .project-page .feature-tags span {
    font-size: 11px;
    padding: 7px 10px;
  }

  .project-page .feature-button {
    width: 100%;
    font-size: 10px;
    padding: 13px 12px;
  }

  /* Fler projekt */

  .project-page .more-projects {
    padding-top: 40px;
    gap: 15px;
  }

  .project-page .decoration-line {
    width: 65px;
  }

  .project-page .more-projects p {
    font-size: 25px;
  }

}


/* =====================================
   DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  .project-page .project-overview {
    background: var(--surface);
  }

  /* Kategorier */

  .project-page .project-eyebrow,
  .project-page .feature-category {
    color: #A5B5A0;
  }

  /* Projektkort */

  .project-page .project-feature {
    background: #1B3028;
    border-color: #52675A;
  }

  .project-page .project-feature:hover {
    border-color: #A5B5A0;

    box-shadow: 0 6px 20px
      rgba(0, 0, 0, 0.15);
  }

  /* Bilder */

  .project-page .feature-image {
    background: #30463B;
  }

  /* Tekniketiketter */

  .project-page .feature-tags span {
    background: #35483E;
    color: #F7F4EE;
  }

  /* Dekorativt blad */

  .project-page .more-projects-decoration svg {
    color: #A5B5A0;
  }

}

/* =====================================
   PORTFOLIO – PROJEKTDETALJ
===================================== */

.portfolio-detail-page .portfolio-detail-main {
  background: var(--surface, #F7F4EE);
  padding: 45px 5% 55px;
}

/* =====================================
   ÖVERSTA SEKTIONEN
===================================== */

.portfolio-detail-page .portfolio-detail-hero {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 35px;
  align-items: center;
  margin-bottom: 30px;
}

.portfolio-detail-page .portfolio-hero-text {
  min-width: 0;
}

.portfolio-detail-page .portfolio-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;

  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #35483E;
}

.portfolio-detail-page .portfolio-line {
  display: block;
  width: 75px;
  height: 1px;
  background: #A5B5A0;
}

.portfolio-detail-page .portfolio-hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 65px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 18px;
}

.portfolio-detail-page .portfolio-hero-text > p {
  max-width: 440px;
  margin-bottom: 0;

  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.55;
}

/* Stor bild */

.portfolio-detail-page .portfolio-hero-image {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.portfolio-detail-page .portfolio-hero-image img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
}

/* =====================================
   TRE FÖRHANDSVISNINGAR
===================================== */

.portfolio-detail-page .portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.portfolio-detail-page .portfolio-preview-card {
  min-width: 0;
}

.portfolio-detail-page .portfolio-preview-image {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  padding: 10px;

  background: #E3DDD3;
  border-radius: 6px;
  overflow: hidden;
}

.portfolio-detail-page .portfolio-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.portfolio-detail-page .portfolio-preview-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
  margin: 12px 5px 5px;
}

.portfolio-detail-page .portfolio-preview-card p {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 5px;
}

/* =====================================
   OM PROJEKTET OCH MÅL
===================================== */

.portfolio-detail-page .portfolio-info-section {
  display: grid;
  grid-template-columns: 56% minmax(0, 1fr);
  gap: 30px;

  padding: 30px 15px;
  border-top: 1px solid #A5B5A0;
  border-bottom: 1px solid #A5B5A0;
}

.portfolio-detail-page .portfolio-info-left {
  padding-right: 25px;
}

.portfolio-detail-page .portfolio-info-left h2,
.portfolio-detail-page .portfolio-info-right h2,
.portfolio-detail-page .portfolio-process-left h2,
.portfolio-detail-page .portfolio-process-right h2,
.portfolio-detail-page .portfolio-result h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}

.portfolio-detail-page .portfolio-info-left p {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.7;
}

.portfolio-detail-page .portfolio-info-right {
  border-left: 1px solid #A5B5A0;
  padding-left: 30px;
}

/* Mål och syfte */

.portfolio-detail-page .portfolio-goals {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portfolio-detail-page .portfolio-goal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portfolio-detail-page .portfolio-goal-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #EAE6DE;
  color: #172B24;
}

.portfolio-detail-page .portfolio-goal-icon svg {
  width: 29px;
  height: 29px;
}

.portfolio-detail-page .portfolio-goal p {
  font-family: "Playfair Display", serif;
  font-size: 14px;
  line-height: 1.5;
}

/* =====================================
   ARBETSPROCESS OCH TEKNIK
===================================== */

.portfolio-detail-page .portfolio-process-section {
  display: grid;
  grid-template-columns: 56% minmax(0, 1fr);
  gap: 30px;
  padding: 30px 15px;
}

.portfolio-detail-page .portfolio-process-left {
  padding-right: 25px;
}

.portfolio-detail-page .portfolio-process-left p {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.portfolio-detail-page .portfolio-process-left p:last-child {
  margin-bottom: 0;
}

.portfolio-detail-page .portfolio-process-right {
  border-left: 1px solid #A5B5A0;
  padding-left: 30px;
}

/* Tekniketiketter */

.portfolio-detail-page .portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}

.portfolio-detail-page .portfolio-tech-tags span {
  padding: 9px 13px;
  background: #EAE6DE;
  color: #172B24;
  border-radius: 5px;

  font-family: "Playfair Display", serif;
  font-size: 12px;
  white-space: nowrap;
}

/* Vad jag har lärt mig */

.portfolio-detail-page .portfolio-learning-title {
  margin-top: 15px;
}

.portfolio-detail-page .portfolio-learning-list {
  padding-left: 22px;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  line-height: 1.75;
}

.portfolio-detail-page .portfolio-learning-list li {
  padding-left: 3px;
}

/* =====================================
   RESULTAT
===================================== */

.portfolio-detail-page .portfolio-result {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 35px;

  margin-top: 10px;
  padding: 25px 35px;

  background: #EAE8DE;
  border-radius: 9px;
}

.portfolio-detail-page .portfolio-result h2 {
  margin-bottom: 8px;
}

.portfolio-detail-page .portfolio-result-text p {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.65;
}

.portfolio-detail-page .portfolio-result-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.portfolio-detail-page .portfolio-result-decoration svg {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  color: currentColor;
}

.portfolio-detail-page .portfolio-result-decoration p {
  font-family: "Caveat", cursive;
  font-size: 29px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-7deg);
}

/* =====================================
   BRED DESKTOPLAYOUT
===================================== */

@media (min-width: 951px) {

  .page-wrapper.portfolio-detail-page {
    width: min(100% - 40px, 1350px);
  }

  .portfolio-detail-page .portfolio-detail-main {
    padding-left: 5%;
    padding-right: 5%;
  }

}

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

@media (max-width: 950px) {

  .portfolio-detail-page .portfolio-detail-hero {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .portfolio-detail-page .portfolio-hero-text h1 {
    font-size: 42px;
  }

  .portfolio-detail-page .portfolio-hero-text > p {
    font-size: 15px;
  }

  .portfolio-detail-page .portfolio-hero-image img {
    height: 300px;
  }

  .portfolio-detail-page .portfolio-info-section,
  .portfolio-detail-page .portfolio-process-section {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .portfolio-detail-page .portfolio-info-right,
  .portfolio-detail-page .portfolio-process-right {
    padding-left: 20px;
  }

}

/* =====================================
   MOBILANPASSNING
===================================== */

@media (max-width: 700px) {

  .portfolio-detail-page .portfolio-detail-main {
    padding: 25px 18px 35px;
  }

  /* Presentation */

  .portfolio-detail-page .portfolio-detail-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
  }

  .portfolio-detail-page .portfolio-eyebrow {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .portfolio-detail-page .portfolio-hero-text h1 {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .portfolio-detail-page .portfolio-hero-text > p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .portfolio-detail-page .portfolio-hero-image img {
    height: 220px;
  }

  /* Förhandsvisningar */

  .portfolio-detail-page .portfolio-preview-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .portfolio-detail-page .portfolio-preview-image {
    aspect-ratio: 1.5 / 1;
  }

  .portfolio-detail-page .portfolio-preview-card h2 {
    font-size: 20px;
  }

  .portfolio-detail-page .portfolio-preview-card p {
    font-size: 14px;
  }

  /* Om projektet */

  .portfolio-detail-page .portfolio-info-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px 0;
  }

  .portfolio-detail-page .portfolio-info-left {
    padding-right: 0;
  }

  .portfolio-detail-page .portfolio-info-right {
    border-left: none;
    border-top: 1px solid #A5B5A0;
    padding-left: 0;
    padding-top: 25px;
  }

  .portfolio-detail-page .portfolio-info-left h2,
  .portfolio-detail-page .portfolio-info-right h2,
  .portfolio-detail-page .portfolio-process-left h2,
  .portfolio-detail-page .portfolio-process-right h2,
  .portfolio-detail-page .portfolio-result h2 {
    font-size: 25px;
  }

  .portfolio-detail-page .portfolio-info-left p,
  .portfolio-detail-page .portfolio-process-left p {
    font-size: 14px;
  }

  .portfolio-detail-page .portfolio-goal p {
    font-size: 13px;
  }

  /* Arbetsprocess */

  .portfolio-detail-page .portfolio-process-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px 0;
  }

  .portfolio-detail-page .portfolio-process-left {
    padding-right: 0;
  }

  .portfolio-detail-page .portfolio-process-right {
    border-left: none;
    border-top: 1px solid #A5B5A0;
    padding-left: 0;
    padding-top: 25px;
  }

  .portfolio-detail-page .portfolio-learning-list {
    font-size: 13px;
  }

  /* Resultat */

  .portfolio-detail-page .portfolio-result {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 20px;
  }

  .portfolio-detail-page .portfolio-result-text p {
    font-size: 14px;
  }

  .portfolio-detail-page .portfolio-result-decoration {
    gap: 15px;
  }

  .portfolio-detail-page .portfolio-result-decoration svg {
    width: 60px;
    height: 60px;
  }

  .portfolio-detail-page .portfolio-result-decoration p {
    font-size: 26px;
  }

}

/* =====================================
   DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  .portfolio-detail-page .portfolio-detail-main {
    background: var(--surface, #172B24);
  }

  .portfolio-detail-page .portfolio-eyebrow {
    color: #A5B5A0;
  }

  .portfolio-detail-page .portfolio-preview-image {
    background: #30463B;
  }

  .portfolio-detail-page .portfolio-goal-icon {
    background: #35483E;
    color: #F7F4EE;
  }

  .portfolio-detail-page .portfolio-tech-tags span {
    background: #35483E;
    color: #F7F4EE;
  }

  .portfolio-detail-page .portfolio-result {
    background: #22382E;
  }

}

/* =====================================
   IRIS BLOMMOR – PROJEKTSIDA
===================================== */

/* Samma layout som portfolio-projektet */

.iris-detail-page .portfolio-detail-main {
  padding-top: 45px;
}

/* Presentation */

.iris-detail-page .portfolio-hero-text h1 {
  font-size: clamp(38px, 5vw, 65px);
}

.iris-detail-page .portfolio-hero-text > p {
  max-width: 470px;
  font-size: 17px;
  line-height: 1.5;
}

/* Stor projektbild */

.iris-detail-page .portfolio-hero-image img {
  height: 330px;
  object-fit: cover;
  object-position: center;
}

/* Förhandsvisningar */

.iris-detail-page .portfolio-preview-image {
  aspect-ratio: 1.12 / 1;
}

.iris-detail-page .portfolio-preview-image img {
  object-fit: cover;
  object-position: top center;
}

/* Arbetsprocessen har mer text */

.iris-detail-page .portfolio-process-left p {
  margin-bottom: 13px;
  line-height: 1.55;
}

/* Resultat */

.iris-detail-page .portfolio-result-decoration svg {
  width: 85px;
  height: 85px;
}

.iris-detail-page .portfolio-result-decoration p {
  font-size: 27px;
}

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

@media (max-width: 950px) {

  .iris-detail-page .portfolio-hero-text h1 {
    font-size: 40px;
  }

  .iris-detail-page .portfolio-hero-text > p {
    font-size: 15px;
  }

  .iris-detail-page .portfolio-hero-image img {
    height: 290px;
  }

}

/* =====================================
   MOBIL
===================================== */

@media (max-width: 700px) {

  .iris-detail-page .portfolio-detail-main {
    padding-top: 25px;
  }

  .iris-detail-page .portfolio-hero-text h1 {
    font-size: 38px;
  }

  .iris-detail-page .portfolio-hero-text > p {
    font-size: 15px;
  }

  .iris-detail-page .portfolio-hero-image img {
    height: 220px;
  }

  .iris-detail-page .portfolio-preview-image {
    aspect-ratio: 1.3 / 1;
  }

  .iris-detail-page .portfolio-process-left p {
    line-height: 1.65;
  }

  .iris-detail-page .portfolio-result-decoration svg {
    width: 65px;
    height: 65px;
  }

  .iris-detail-page .portfolio-result-decoration p {
    font-size: 24px;
  }

}

/* =====================================
   DARK MODE
===================================== */

@media (prefers-color-scheme: dark) {

  .iris-detail-page .portfolio-detail-main {
    background: var(--surface, #172B24);
  }

}
