@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #f6f4ef;
  --ink: #1a1a1a;
  --ink-soft: #5a5a52;
  --ink-mute: #8a8a80;
  --rule: #c9c2ae;
  --rule-soft: #e2dccc;
  --accent: #5a4a3a;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --label-col: 160px;
  --gutter: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* — Nav — */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 26px;
  height: 26px;
  display: block;
}
.brand .wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
nav ul li > a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
}
nav ul li > a:hover { color: var(--ink); }

/* — Section grid (label | body) — */
.section {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: var(--gutter);
  padding: 56px 0;
  border-top: 1px solid var(--rule-soft);
}
.section:first-of-type { border-top: 0; }

.section-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 8px;
}
.section-label .label-sep {
  margin: 0 8px;
  color: var(--rule);
}
.section-label .label-mark {
  color: var(--ink-soft);
}

/* — Intro — */
.intro { padding-top: 64px; padding-bottom: 80px; }
.intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.intro .lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* — Work / Prosjekter — */
.work { padding-bottom: 24px; }

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.work-item:first-child { padding-top: 0; }
.work-item:last-child { border-bottom: 0; }

.work-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.work-title a {
  text-decoration: none;
  color: var(--ink);
}
.work-title a:hover { color: var(--accent); }

.work-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}

.work-tags {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.work-tags span { margin: 0 6px; color: var(--rule); }

/* Featured item — image side-by-side with text */
.work-item.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0 44px;
}
.work-item.feature .work-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: #ece8dc;
  text-decoration: none;
  border: 1px solid var(--rule-soft);
}
.work-item.feature .work-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-item.feature .work-image:hover img {
  transform: scale(1.02);
}
.work-item.feature .work-title {
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work-item.feature .work-desc {
  margin-top: 10px;
  font-size: 18px;
}

/* — Contact — */
.contact dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 24px;
  max-width: 520px;
}
.contact dt {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.contact dd { font-size: 17px; }

/* — Footer — */
footer {
  border-top: 1px solid var(--rule-soft);
  padding: 22px 0 32px;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

/* — Responsiv — */
@media (max-width: 820px) {
  :root { --label-col: 1fr; --gutter: 14px; }
  main { padding: 0 22px; }
  nav { padding: 20px 0 12px; }
  nav ul { gap: 20px; }

  .section {
    grid-template-columns: 1fr;
    gap: var(--gutter);
    padding: 44px 0;
  }
  .section-label {
    padding-top: 0;
    border-bottom: 1px solid var(--rule-soft);
    padding-bottom: 12px;
  }

  .intro { padding-top: 44px; padding-bottom: 56px; }
  .intro h1 { font-size: clamp(32px, 8vw, 44px); }
  .intro .lede { font-size: 17px; margin-top: 20px; }

  .work-item.feature {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .work-item.feature .work-title { font-size: 28px; }
  .work-title { font-size: 22px; }

  .contact dl {
    grid-template-columns: 90px 1fr;
  }

  footer { flex-direction: column; gap: 6px; }
}
