:root {
  --cream: #f4f2ed;
  --cream-soft: #f1efe9;
  --beige: #ede6de;
  --beige-soft: #eae3da;
  --ink: #3e3a34;
  --muted: #3e3a34; 
  --sage: #8a9a6e;
  --sage-dark: #7c8c61;
  --pine: #2e5b4e;
  --line: #c9c4ba;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  padding: 26px 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 120px;
  height: auto;
  display: block;
}
.brand-name {
  font-size: 20px;
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-size: 20px;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a.active {
  border-bottom-color: var(--ink);
}

.site-nav a:hover {
  color: var(--sage-dark);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sage);
  color: #f6f4ee;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--sage-dark); }
.btn .arrow { font-size: 16px; line-height: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.text-link .arrow { font-size: 18px; }
.text-link:hover { color: var(--sage-dark); }

.eyebrow {
  font-size: 30px;
  color: var(--muted);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: 60px 0 70px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.2;
  margin: 26px 0 30px;
}
.hero .lede {
  color: var(--muted);
  font-size: 30px;
  max-width: 440px;
  margin-bottom: 46px;
}
.hero-photo {
  border-radius: 50px;
  overflow: hidden;
  transform: translateX(30px);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About teaser ---------- */
.about-teaser { background: var(--beige); padding: 40px 0; }
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
.about-teaser h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
  margin: 30px 0 34px;
  max-width: 680px;
}
.about-teaser p { color: var(--muted); max-width: 650px; margin-bottom: 22px; }
.about-teaser .text-link { margin-top: 16px; }

/* ---------- Projects ---------- */
.projects { background: var(--cream-soft); padding: 80px 0; }
.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.projects-head h2 {
  font-size: 32px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.projects-head h2::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--muted);
}
.projects-sub { color: var(--ink); margin: 18px 0 34px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card { background: var(--beige); display: block; border-radius: 25px 25px 0 0;
  overflow: hidden; }
.project-card .thumb { overflow: hidden; }
.project-card .thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.35s ease; }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
}
.project-card .meta .title { font-size: 19px; }
.project-card .meta .arrow { font-size: 20px; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--cream-soft); padding: 40px 0 90px; }
.contact h2 { font-size: 32px; font-weight: 500; margin-bottom: 20px; }
.contact .intro { color: var(--muted); margin-bottom: 40px; }
.contact-form { max-width: 760px; display: grid; gap: 22px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.contact-form textarea { min-height: 190px; resize: vertical; }
.contact-form ::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus { outline: 1px solid var(--sage); border-color: var(--sage); }
.contact-form .btn { justify-self: start; margin-top: 8px; }

#form-status {
  margin-top: 20px;
  color: var(--pine);
  font-size: 22px;
  line-height: 1.5;
}
.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--beige); }
.footer-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  height: 220px;
}
.footer-photo { overflow: hidden; }
.footer-photo img { width: 100%; height: 100%; object-fit: cover; }
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 25px 45px;
}
.footer-row { display: flex; align-items: center; gap: 20px; font-size: 20px; }
.footer-row svg { width: 30px; height: 30px; stroke: var(--pine); flex: none; fill: none; stroke-width: 1.5; }
.footer-bottom {
  background: var(--beige-soft);
  padding: 26px 0;
}
.footer-bottom .container { font-size: 20px; }

/* ---------- Projects index ---------- */

.page-intro { background: var(--cream); text-align: center; padding: 80px 0 60px; }
.page-intro h1 { font-size: 44px; font-weight: 500; margin-bottom: 34px;}
.page-intro p { color: var(--muted); font-size: 25px; max-width: 560px; margin: 0 auto; }

/* Projektlista */
.pcard-list { background: var(--cream); padding: 0 0 60px; }

/* Ett projekt */
.pcard { display: grid; grid-template-columns: 42% 58%; background: var(--beige); border-radius: 30px; overflow: hidden; margin-bottom: 60px; min-height: 390px; }
.pcard:last-child { margin-bottom: 0; }

/* Projektbild */
.pcard .img { display: block; height: 100%; }
.pcard .img img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }

/* Textdelen */
.pcard .body { position: relative; padding: 50px 60px; display: flex; align-items: center; justify-content: space-between; }

/* Rubrik + beskrivning */
.pcard .project-info { display: flex; flex-direction: column; gap: 50px; max-width: 560px;}
.pcard .title { font-size: 30px; font-weight: 500; line-height: 1.2; }
.pcard .body p { margin: 0; font-size: 20px;  line-height: 1.55;  color: var(--ink);  max-width: 560px; }

/* Pil */
.pcard .body .arrow { position: absolute; right: 50px; bottom: 40px; font-size: 32px; color: var(--ink); }

/* ---------- Project detail ---------- */
:root { --terracotta: #b5714c; }

.detail { background: var(--cream); padding: 40px 0 80px; }
.back-link { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); font-size: 20px; margin-bottom: 26px; }
.back-link:hover { color: var(--ink); }
.detail h1 { font-size: 44px; font-weight: 500; margin-bottom: 40px; }
.detail-hero img { width: 100%; height: 440px; object-fit: cover; border-radius: 12px; }
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 180px; margin: 46px 0 30px; }
.meta-item .dot {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
}
.meta-item:nth-child(odd) .dot { background: var(--sage); }
.meta-item:nth-child(even) .dot { background: var(--terracotta); }
.meta-item .dot svg { width: 34px; height: 34px; stroke: #f6f4ee; fill: none; stroke-width: 1.6; }
.meta-item .label { color: var(--muted); font-size: 17px; }

.section-block { border-top: 2px solid var(--line); padding: 44px 0; max-width: 1440px; }
.section-block h2 { font-size: 26px; font-weight: 500; margin-bottom: 24px; }
.section-block p { color: var(--muted); margin-bottom: 18px; max-width: 650px;}
.section-block .sub-label { color: var(--muted); margin: 26px 0 12px; }
.section-block ul { color: var(--muted); padding-left: 22px; display: grid; gap: 8px; }


/* ---------- Projekttext med bild ---------- */

.project-overview { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: center; }
.project-overview-text { min-width: 0;}
.project-overview-text h2 { font-size: 26px; font-weight: 500; margin-bottom: 24px;}
.project-overview-text p { color: var(--muted); margin-bottom: 18px; max-width: 650px; }
.project-overview-text ul { color: var(--muted); padding-left: 22px; display: grid; gap: 8px;}
.project-overview-image { display: flex; justify-content: center; align-items: center; }
.project-overview-image img { display: block; width: 100%; max-width: 200px; height: auto; object-fit: contain; border-radius: 8px; }


/* ---------- Bilder i projektet ---------- */

.project-images { display: flex; justify-content: center; align-items: center; gap: 24px;}
.project-images img { width: calc(50% - 12px); height: auto; object-fit: contain;}


/* ---------- CV page ---------- */
.cv-intro { background: var(--cream); padding: 70px 0 30px; }
.cv-intro h1 { font-size: 44px; font-weight: 500; margin-bottom: 34px; }
.cv-intro p { color: var(--muted); font-size: 20px; max-width: 620px; }

.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 60px 0 20px; }
.cv-col h2 { font-size: 32px; font-weight: 500; margin-bottom: 50px; }

.t-item { position: relative; margin-left: 8px; border-left: 2px solid var(--line); padding: 0 0 56px 56px; }
.t-item:last-child { padding-bottom: 10px; }
.t-item::before { content: ""; position: absolute; left: -9px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--sage); }
.t-item .date { color: var(--muted); font-size: 20px; }
.t-item h3 { font-size: 24px; font-weight: 500; margin: 20px 0 18px; }
.t-item p { color: var(--muted); font-size: 20px; }

.cv-divider { border: none; border-top: 2px solid var(--line); margin: 60px 0; max-width: 1440px; }

.dot-list { list-style: none; margin-left: 8px; border-left: 2px solid var(--line); }
.dot-list li { position: relative; padding: 0 0 40px 56px; font-size: 20px; color: var(--ink); }
.dot-list li:last-child { padding-bottom: 10px; }
.dot-list li::before { content: ""; position: absolute; left: -9px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--sage);
}

/* ---------- About page ---------- */
.about-hero { background: var(--cream); padding: 70px 0 80px; }
.about-hero h1 { font-size: 44px; font-weight: 500; margin-bottom: 40px; }
.about-hero .sub { font-size: 26px; font-weight: 500; line-height: 1.35; max-width: 700px; margin-bottom: 40px; }
.about-hero-inner { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: start; }
.about-hero-inner p { color: var(--muted); margin-bottom: 20px; max-width: 700px; }

.values { background: var(--beige); padding: 60px 0; }
.values-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { text-align: center; padding: 10px 40px; }
.value + .value { border-left: 1px solid var(--line); }
.value svg { width: 46px; height: 46px; stroke: var(--muted); fill: none; stroke-width: 1.6; margin: 0 auto 26px; display: block; }
.value h3 { font-size: 24px; font-weight: 500; line-height: 1.3; margin-bottom: 20px; }
.value p { color: var(--muted); font-size: 18px; }

.hobbies { background: var(--cream); padding: 80px 0; }
.hobbies .eyebrow { font-size: 22px; color: var(--ink); }
.hobbies p { color: var(--muted); max-width: 760px; margin: 34px 0 26px; }
.hobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 46px; }
.hobby img { width: 100%; height: 250px; object-fit: cover; border-radius: 14px; }
.hobby .caption { display: block; margin-top: 20px; font-size: 20px; }

.footer-simple { background: var(--beige-soft); padding: 30px 0; margin-top: 40px; }
.footer-simple .container { font-size: 18px; }

/* ---------- Språkväxlare ---------- */

.language-switcher { position: absolute; top: 100px; right: 14px; z-index: 1000; font-family: var(--serif); }
.language-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 88px; padding: 10px 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); font-family: inherit;
  font-size: 16px; cursor: pointer; }
.language-button:hover { background: var(--cream-soft); }
.language-arrow { font-size: 16px; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 125px; padding: 8px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / 8%); }
.language-menu[hidden] { display: none; }
.language-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 16px; }
.language-menu a:hover { background: var(--beige); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream);
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }
  .site-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 1px; background: var(--ink); display: block; }
  .hero { padding: 30px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-photo { border-radius: 50px; max-width: 420px; transform: translateX(0);}
  .about-teaser { padding: 60px 0; }
  .about-teaser-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-teaser h2 { font-size: 26px; }
  .projects { padding: 60px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .projects-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact { padding: 20px 0 70px; }
 .footer-top { display: block;
    height: auto;
  }


@media (max-width: 900px) {
  .about-hero { padding: 40px 0 50px; }
  .about-hero h1 { font-size: 30px; margin-bottom: 26px; }
  .about-hero .sub { font-size: 22px; margin-bottom: 34px; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .values { padding: 40px 0; }
  .values-inner { grid-template-columns: 1fr; gap: 40px; }
  .value + .value { border-left: none; border-top: 1px solid var(--line); padding-top: 40px; }
  .hobbies { padding: 50px 0; }
  .hobby-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-intro { padding: 50px 0 40px; }
  .page-intro h1 { font-size: 30px; margin-bottom: 22px; }
  .page-intro p { font-size: 18px; }
  .pcard { grid-template-columns: 1fr; margin-bottom: 40px; min-height: 0; border-radius: 25px;}
  .pcard .img { height: 260px;}
  .pcard .img img { height: 260px; min-height: 0;}
  .pcard .body { padding: 30px 26px 70px; align-items: flex-start; }
  .pcard .project-info { gap: 14px;}
  .pcard .title { font-size: 26px;}
  .pcard .body p { font-size: 18px; line-height: 1.5;}
  .pcard .body .arrow { right: 26px; bottom: 26px; font-size: 30px;}
  .detail h1 { font-size: 30px; margin-bottom: 26px; }
  .detail-hero img { height: 220px; }
  .meta-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .meta-item .dot { width: 62px; height: 62px; }
  .meta-item .dot svg { width: 26px; height: 26px; }
  .cv-intro { padding: 40px 0 20px; }
  .cv-intro h1 { font-size: 30px; margin-bottom: 22px; }
  .cv-intro p { font-size: 18px; }
  .cv-grid { grid-template-columns: 1fr; gap: 50px; padding: 40px 0 10px; }
  .t-item { padding-left: 40px; }
  .dot-list li { padding-left: 40px; font-size: 20px; }
  .project-overview { grid-template-columns: 1fr; gap: 30px; }
  .project-overview-image img { max-width: 180px; } }
  .footer-photo { height: 275px;
    min-height: 0; }
  .footer-contact { padding: 30px 32px;
    gap: 20px; }

    @media (max-width: 900px) {
  .language-switcher { top: 150px; right: 5px; } }

}
.footer-bottom { padding: 20px 0; }
.footer-bottom .container { font-size: 16px; }
