/* =========================================================
   PORTEFØLJE – stilark
   Bytt ut fargene under for å gjøre siden til din egen.
   Resten av filen trenger du normalt ikke røre.
   ========================================================= */

:root{
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --ink: #16181D;
  --ink-soft: #5B6068;
  --line: #E7E7E3;
  --accent: #3654E0;      /* hovedfarge – knapper, lenker, ikoner */
  --accent-soft: #EDF0FD; /* lys variant av hovedfargen */
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22,24,29,.04), 0 10px 28px rgba(22,24,29,.06);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*{ box-sizing: border-box; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; }
img{ display:block; max-width:100%; }

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ---------- Profil ---------- */
.profile{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.profile img{
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.profile h1{
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.profile .title{
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 4px;
}
.profile .education{
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
  margin: 4px 0 20px;
}

.contact-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.contact-pill{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.contact-pill:hover{
  border-color: var(--accent);
  background: var(--accent-soft);
}
.contact-pill .icon{ font-size: 14px; }

/* ---------- Seksjonstittel ---------- */
.section-title{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ---------- Prosjektkort ---------- */
.projects{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
}
.project-info h2{
  font-size: 17.5px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.project-info p{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 46ch;
}

.project-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.project-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 650;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.project-link:active{ transform: scale(.97); }
.project-link.site{
  background: var(--accent);
  color: #fff;
}
.project-link.github{
  background: var(--ink);
  color: #fff;
}
.project-link .icon{ font-size: 14px; line-height: 1; }

/* ---------- Footer ---------- */
footer{
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 56px;
}

/* ---------- Mobil: kortet stables ---------- */
@media (max-width: 560px){
  .project-card{
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .project-links{
    flex-direction: row;
  }
  .project-link{
    flex: 1;
    justify-content: center;
  }
}
