/* Forsiden er en redaksjonell indeks, ikke en produktkatalog. */
body {
  background-image: none;
}

.lead,
.question,
.serious-card p {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.42;
}

.kai-sea {
  height: 70%;
  opacity: .72;
}

.hero {
  min-height: 72vh;
}

.note {
  align-self: end;
  margin-bottom: 50px;
  padding: 10px 0 10px 20px;
  border-left: 5px solid var(--blue);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.projects {
  display: block;
  border-top: 1px solid var(--ink);
}

.card,
.card.featured,
.card.wide {
  min-height: 0;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) minmax(230px, 310px);
  grid-template-rows: auto auto;
  column-gap: 34px;
  align-items: start;
  padding: 36px 0 38px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  overflow: visible;
  transition: padding-left .18s ease, background .18s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 5px;
  background: var(--tile-tone);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .18s ease;
}

.card:hover {
  padding-left: 20px;
  transform: none;
  box-shadow: none;
  background: rgba(250, 248, 241, .52);
}

.card:hover::before {
  transform: scaleY(1);
}

.card .meta {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: .55rem;
}

.card h2,
.card:not(.featured) h2 {
  grid-column: 2;
  grid-row: 1;
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.45rem, 4.4vw, 4.7rem);
  line-height: .9;
}

.card .question {
  grid-column: 3;
  grid-row: 1 / 3;
  padding-top: .45rem;
  font-size: 1rem;
}

.card footer {
  grid-column: 2;
  grid-row: 2;
  margin: 28px 0 0;
  padding: 0;
}

#feilet {
  margin-top: 40px;
}

.failed {
  grid-template-columns: 180px 1fr;
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.failed-label {
  padding: 20px 0;
  border-right: 0;
}

.failed a {
  padding: 20px 0;
}

.failed a:hover {
  background: transparent;
  color: var(--accent-ink);
}

.serious-grid {
  gap: 36px;
  border-top: 1px solid var(--ink);
}

.serious-card {
  min-height: 380px;
  padding: 28px 0 0;
  border: 0;
  background: transparent;
}

.serious-card h3 {
  margin-top: 52px;
}

.serious-card:hover {
  transform: none;
  box-shadow: none;
}

.serious-card:hover h3,
.serious-card:hover footer {
  color: #6b5793;
}

@media (max-width: 900px) {
  .card,
  .card.featured,
  .card.wide {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .card .question {
    grid-column: 2;
    grid-row: 2;
    padding-top: 20px;
  }

  .card footer {
    grid-row: 3;
  }
}

@media (max-width: 760px) {
  .kai-sea {
    height: 55%;
  }

  .hero {
    min-height: auto;
  }

  .note {
    width: min(300px, 88%);
    margin: 0 0 0 auto;
  }

  .projects {
    border-top-color: var(--ink);
  }

  .card,
  .card.featured,
  .card.wide {
    display: block;
    min-height: 0;
    padding: 24px 0 28px;
  }

  .card:hover {
    padding-left: 12px;
  }

  .card .meta {
    padding: 0;
  }

  .card h2,
  .card:not(.featured) h2 {
    margin: 32px 0 16px;
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .card .question {
    padding: 0;
  }

  .card footer {
    margin-top: 28px;
  }

  .failed {
    grid-template-columns: 1fr;
  }

  .failed-label {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .failed a {
    padding-top: 8px;
  }

  .serious-grid {
    gap: 0;
  }

  .serious-card {
    min-height: 0;
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before {
    transition: none;
  }
}
