:root {
  --ink: #1f261f;
  --muted: #5f6a5d;
  --paper: #f7f5ee;
  --paper-strong: #fffdf7;
  --moss: #405844;
  --moss-dark: #26382c;
  --clay: #9a6f52;
  --excerpt-accent: #d3ad84;
  --line: rgba(31, 38, 31, 0.16);
  --shadow: 0 22px 70px rgba(31, 38, 31, 0.12);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

.reading-progress {
  background: var(--excerpt-accent);
  height: 3px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  z-index: 100;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 238, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.language-switcher {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.language-switcher[hidden] {
  display: none;
}

.language-switcher a {
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--ink);
}

.language-switcher a:not([aria-current="page"]):hover,
.language-switcher a:not([aria-current="page"]):focus-visible {
  color: var(--ink);
  outline: none;
}

.main-nav a,
.menu-button,
.button {
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a {
  color: var(--muted);
  padding: 8px 12px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  padding: 8px 12px;
}

.hero {
  min-height: calc(100vh - 70px);
  position: relative;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(15, 20, 15, 0.68), rgba(15, 20, 15, 0.22) 54%, rgba(15, 20, 15, 0.1)),
    url("assets/skrivebord.png") center / cover;
  inset: 0;
  position: absolute;
}

.theme-dark .hero-image {
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.74), rgba(10, 12, 10, 0.28) 56%, rgba(10, 12, 10, 0.12)),
    url("assets/bakgrunn-mork-litteraer.png") center / cover;
}

.theme-light .hero-image {
  background:
    linear-gradient(90deg, rgba(16, 22, 18, 0.62), rgba(16, 22, 18, 0.22) 52%, rgba(16, 22, 18, 0.08)),
    url("assets/bakgrunn-lys-nordisk.png") center / cover;
}

.theme-minimal .hero-image {
  background:
    linear-gradient(90deg, rgba(16, 22, 18, 0.64), rgba(16, 22, 18, 0.18) 54%, rgba(16, 22, 18, 0.04)),
    url("assets/bakgrunn-minimalistisk.png") center / cover;
}

.theme-dorapning .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.68), rgba(12, 15, 12, 0.26) 56%, rgba(12, 15, 12, 0.08)),
    url("assets/bakgrunn-dorapning.png") center / cover;
}

.theme-dorapning-forbedret .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.64), rgba(12, 15, 12, 0.22) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-dorapning-forbedret.png") center / cover;
}

.theme-hverdagsrom .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.62), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.05)),
    url("assets/bakgrunn-hverdagsrom.png") center / cover;
}

.theme-menneskelig-spor .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.6), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.05)),
    url("assets/bakgrunn-menneskelig-spor.png") center / cover;
}

.theme-dorapning-levd .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.62), rgba(12, 15, 12, 0.22) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-dorapning-levd.png") center / cover;
}

.theme-dorapning-lysere .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.18) 56%, rgba(12, 15, 12, 0.04)),
    url("assets/bakgrunn-dorapning-lysere.png") center / cover;
}

.theme-norsk-hus .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.18) 56%, rgba(12, 15, 12, 0.04)),
    url("assets/bakgrunn-norsk-hus.png") center / cover;
}

.theme-norsk-referanse .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-realism-pass-tepper-samlet-over-tid.png") center / cover;
}

.theme-norsk-karm-test .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-karm-test.png") center / cover;
}

.theme-norsk-karm-test-2 .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-karm-test-2.png") center / cover;
}

.theme-norsk-restaurert .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-restaurert.png") center / cover;
}

.theme-norsk-realism-pass .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-realism-pass.png") center / cover;
}

.theme-norsk-tepper-test .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-tepper-test.png") center / cover;
}

.theme-norsk-tepper-naturlig .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.58), rgba(12, 15, 12, 0.2) 56%, rgba(12, 15, 12, 0.06)),
    url("assets/bakgrunn-norsk-tepper-naturlig.png") center / cover;
}

.theme-trapp .hero-image {
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.7), rgba(12, 15, 12, 0.3) 58%, rgba(12, 15, 12, 0.1)),
    url("assets/bakgrunn-trapp.png") center / cover;
}

.theme-bymiljo .hero-image {
  background:
    linear-gradient(90deg, rgba(9, 13, 18, 0.68), rgba(9, 13, 18, 0.24) 55%, rgba(9, 13, 18, 0.08)),
    url("assets/bakgrunn-bymiljo.png") center / cover;
}

.hero-content {
  color: #fffdf7;
  max-width: 760px;
  min-height: calc(100vh - 70px);
  padding: clamp(68px, 9vw, 122px) clamp(22px, 7vw, 96px) 70px;
  position: relative;
}

.eyebrow,
.section-label,
.tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 253, 247, 0.78);
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 0;
}

h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0;
  max-width: 680px;
}

.hero-content h1.intro {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  border: 1px solid rgba(255, 253, 247, 0.7);
  display: inline-flex;
  justify-content: center;
  min-width: 142px;
  padding: 12px 18px;
}

.button.primary {
  background: #fffdf7;
  color: var(--moss-dark);
}

.button.secondary {
  color: #fffdf7;
}

.section {
  padding: clamp(62px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

.split,
.press,
.contact {
  display: grid;
  gap: clamp(28px, 5vw, 82px);
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.section-label,
.tag {
  color: var(--clay);
  margin-bottom: 14px;
}

#om {
  padding-bottom: clamp(6px, 1.6vw, 18px);
}

.body-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.body-copy p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 32px;
  max-width: 830px;
}

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

.project-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px;
}

.project-card p {
  color: var(--muted);
}

dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin: auto 0 0;
  padding-top: 20px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
}

.excerpt-section {
  background: var(--moss-dark);
  color: #fffdf7;
}

.excerpt-section .section-label {
  color: var(--excerpt-accent);
}

.excerpt {
  margin: 0;
  max-width: 900px;
}

blockquote {
  border-left: 4px solid var(--excerpt-accent);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.35;
  margin: 0 0 18px;
  padding-left: clamp(18px, 4vw, 36px);
}

figcaption {
  color: rgba(255, 253, 247, 0.72);
}

.press {
  background: #eeece2;
}

.press-list {
  display: grid;
  gap: 14px;
}

.press-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 100px 1fr;
  padding: 0 0 18px;
}

.press-list span {
  color: var(--clay);
  font-weight: 800;
}

.contact {
  align-items: center;
}

address {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-style: normal;
  justify-self: start;
  max-width: 640px;
  padding: 28px;
  text-align: center;
  width: 100%;
}

address a {
  color: var(--moss-dark);
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

address span {
  color: var(--muted);
  display: block;
  margin-top: 14px;
}

.subscription {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 82px);
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.subscription-intro > p:last-child {
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 640px;
}

.subscription-form {
  align-self: end;
  max-width: 640px;
  width: 100%;
}

.subscription-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.subscription-controls {
  display: flex;
  gap: 10px;
}

.subscription-controls input {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  padding: 12px 14px;
  width: 100%;
}

.subscription-controls button {
  background: var(--moss-dark);
  border: 1px solid var(--moss-dark);
  border-radius: 6px;
  color: #fffdf7;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 18px;
}

.subscription-controls input:focus-visible,
.subscription-controls button:focus-visible {
  outline: 3px solid rgba(154, 111, 82, 0.38);
  outline-offset: 2px;
}

.subscription-controls input[aria-invalid="true"] {
  border-color: #9b3d32;
}

.subscription-controls button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.subscription-status {
  color: var(--muted);
  margin: 10px 0 0;
  min-height: 1.6em;
}

.subscription-status.is-error {
  color: #87352c;
}

.subscription-status.is-success {
  color: var(--moss);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 84px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 920px) {
  .project-grid,
  .split,
  .press,
  .contact,
  .subscription {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .hero-image {
    background:
      linear-gradient(90deg, rgba(15, 20, 15, 0.72), rgba(15, 20, 15, 0.34)),
      url("assets/skrivebord.png") center / cover;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-actions {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-nav {
    order: 3;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5.2rem);
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .press-list div {
    grid-template-columns: 1fr;
  }

  .subscription-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-controls button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
.contact {
  grid-template-columns: 1fr;
}
