/* ==========================================================
   Innstikk – Frigitt
   Mobile first. Selvhostede fonter.
   ========================================================== */

/* ---------- Fonter ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f3ea;
  --ink: #1d1712;
  --ink-soft: #3a3028;
  --muted: #5d5246;
  --rule: #cdc3b1;
  --brown: #7b5a3e;
  --brown-dark: #5f4229;
  --cream-text: #f6efe2;

  --serif-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --serif-text: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: 1.5rem;
  --content: 58rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}

/* ---------- Felles: label ---------- */
.label {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}
.label::after {
  content: "";
  height: 1px;
  background: var(--rule);
}
.label--full::after  { flex: 1; }
.label--short::after { width: 4.5rem; }

/* ---------- Brand (logo) ---------- */
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink);
}
.brand__mtn { width: 2.9rem; height: 1.2rem; }
.brand__word {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: 0.3em; /* optisk sentrering for letter-spacing */
  line-height: 1;
}
.brand__sep {
  width: 1px;
  height: 1.7rem;
  background: currentColor;
  opacity: 0.35;
}
.brand__section {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 35rem;
  padding: 1.25rem var(--gutter) 3rem;
  background: url("../assets/header.jpg") 28% center / cover no-repeat;
  color: var(--ink);
}
/* lys sløyfe bak teksten så den alltid er lesbar */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 62% at 50% 62%, rgba(255, 250, 240, 0.86) 0%, rgba(255, 250, 240, 0.6) 45%, rgba(255, 250, 240, 0) 82%),
    radial-gradient(ellipse 34% 30% at 6% 8%, rgba(255, 250, 240, 0.85), rgba(255, 250, 240, 0) 100%),
    linear-gradient(to bottom, rgba(255, 250, 240, 0.3), rgba(255, 250, 240, 0) 30%);
}

.hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.toplink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--serif-text);
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}
.toplink svg { width: 0.7rem; height: 0.7rem; }
.toplink:hover { color: var(--brown-dark); }

.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
  text-align: center;
}

.hero__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(3.8rem, 17vw, 6.3rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero__by {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(100%, 22rem);
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  line-height: 1;
}
.hero__by::before,
.hero__by::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.hero__by span { padding-left: 0.5em; }

.hero__tagline {
  margin-top: 1.6rem;
  font-size: clamp(1.45rem, 5.6vw, 2rem);
  line-height: 1.22;
  color: var(--ink);
}
.hero__tagline span { display: block; }

.hero__lead {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Innhold ---------- */
.page {
  padding: 2.25rem var(--gutter) 0;
}
.latest,
.more {
  max-width: var(--content);
  margin-inline: auto;
}

/* Album */
.album {
  display: grid;
  gap: 2rem;
  margin-top: 1.6rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--rule);
}
.album__cover {
  display: block;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  box-shadow: 0 6px 20px rgba(58, 40, 22, 0.28), 0 1px 3px rgba(58, 40, 22, 0.2);
}
.album__cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.album__text { align-self: center; }

.album__title {
  margin-top: 1.1rem;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 11vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.album__sub {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
}
.album__desc {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.22rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.8rem;
  padding: 1.05rem 1.9rem;
  background: var(--brown);
  color: var(--cream-text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.2s ease;
}
.btn svg { width: 1.4rem; height: 0.7rem; transition: transform 0.2s ease; }
.btn:hover { background: var(--brown-dark); }
.btn:hover svg { transform: translateX(4px); }

/* Flere album + sitat */
.more {
  display: grid;
  gap: 2.25rem;
  padding: 1.75rem 0 3rem;
}
.more__info { display: grid; gap: 1.1rem; align-content: start; }
.more__head {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}
.more__sub {
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}

.quote {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  color: var(--muted);
}
.quote__plant {
  width: 2.6rem;
  height: auto;
  color: #6b5d4c;
}
.quote blockquote {
  max-width: 17rem;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.quote figcaption {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}
.quote figcaption::before {
  content: "";
  width: 0.9rem;
  height: 1px;
  background: currentColor;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 11rem;
  padding: 3rem var(--gutter) 1.6rem;
  background: url("../assets/footer.jpg") center bottom / cover no-repeat;
  color: var(--cream-text);
}
/* glir inn fra papiret øverst, mørknes litt nederst for lesbarhet */
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--paper) 0%, rgba(247, 243, 234, 0) 55%),
    linear-gradient(to top, rgba(26, 18, 10, 0.5), rgba(26, 18, 10, 0) 65%);
}
.foot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.brand__logo--light { color: var(--cream-text); }
.brand__logo--light .brand__word { font-size: 0.6rem; }
.brand__logo--light .brand__mtn { width: 2.6rem; height: 1.05rem; }
.brand__sep--light { display: none; }

.foot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}
.foot__rule { width: 2.4rem; height: 1px; background: currentColor; opacity: 0.7; }
.foot__link svg { width: 0.85rem; height: 0.45rem; }
.foot__link:hover { opacity: 0.8; }

/* ==========================================================
   ≥ 40rem (nettbrett)
   ========================================================== */
@media (min-width: 40rem) {
  :root { --gutter: 2.5rem; }

  .hero { min-height: 30rem; padding-top: 1.6rem; background-position: 32% center; }
  .brand__mtn { width: 3.3rem; height: 1.35rem; }
  .brand__word { font-size: 0.72rem; }
  .brand__section { font-size: 0.8rem; }
  .toplink { font-size: 1.05rem; }
  .hero__by { width: min(100%, 26rem); font-size: 0.92rem; }
  .hero__lead { font-size: 1.08rem; }

  .album__cover { max-width: 30rem; }
}

/* ==========================================================
   ≥ 56rem (desktop) – speiler mockupen
   ========================================================== */
@media (min-width: 56rem) {
  :root { --gutter: 3rem; }

  .hero { min-height: 28.5rem; padding-bottom: 2.25rem; background-position: center 45%; }
  .hero__body { padding-top: 0.5rem; }
  .hero__tagline { margin-top: 1.4rem; }

  .page { padding-top: 2.4rem; }

  .album {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    gap: 3.6rem;
    margin-top: 1.9rem;
    padding-bottom: 2.6rem;
  }
  .album__cover { max-width: none; margin: 0; }
  .album__text { padding-top: 0.2rem; }
  .album__title { margin-top: 1.2rem; }

  .more {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-top: 1.4rem;
  }
  .more__info {
    grid-template-columns: 8.4rem 1fr;
    align-items: start;
    gap: 0;
  }
  .more__info .label { padding-top: 0.25rem; white-space: nowrap; }
  .more__info .label::after { width: 2rem; }
  .more__info > div { padding-left: 1.2rem; padding-top: 0.6rem; }
  .more__head { font-size: 1.3rem; }

  .foot { min-height: 12.5rem; padding-bottom: 1.4rem; }
  .foot__inner {
    flex-direction: row;
    gap: 1.3rem;
  }
  .brand__sep--light { display: block; height: 1.3rem; background: var(--cream-text); }
}

/* ==========================================================
   ≥ 80rem (bred skjerm)
   ========================================================== */
@media (min-width: 80rem) {
  .hero { min-height: min(30vw, 36rem); }
}

/* ---------- Redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
