/* ==========================================================================
   Layout — header, hero, sections, footer
   Nasjonalmuseet Guide — Editorial Brutalist
   ========================================================================== */

/* Notice strip — black ticker bar at very top */
.notice {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.55rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  height: var(--notice-h);
}
.notice::before {
  content: "● LIVE";
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.28em;
  flex-shrink: 0;
}
.notice strong { color: var(--accent); font-weight: 700; }

/* Header — paper, hard ink baseline */
.site-header {
  position: sticky;
  top: var(--notice-h);
  left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: var(--rule-w-med) solid var(--ink);
  transition: none;
}

/* All header states unify (no more transparent over hero) */
.site-header.is-scrolled,
.site-header.is-inverted {
  background: var(--paper);
  border-bottom: var(--rule-w-med) solid var(--ink);
  backdrop-filter: none;
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}

.site-header.is-scrolled .brand,
.site-header.is-inverted .brand { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.4rem; }

.nav__links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav__link {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}

.site-header.is-scrolled .nav__link,
.site-header.is-inverted .nav__link { color: var(--ink); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width 0.18s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--accent); }

/* Language switcher — bracketed mono [EN / NO] */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  border: var(--rule-w-med) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang::before { content: "["; opacity: 0.6; margin-right: 0.1em; }
.lang::after  { content: "]"; opacity: 0.6; margin-left: 0.1em; }
.lang:hover { background: var(--ink); color: var(--paper); }
.lang__sep { opacity: 0.4; }
.lang__active { color: var(--accent); }
.lang:hover .lang__active { color: var(--accent); }

.site-header.is-scrolled .lang,
.site-header.is-inverted .lang {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}
.site-header.is-scrolled .lang:hover,
.site-header.is-inverted .lang:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-header.is-scrolled .lang__active,
.site-header.is-inverted .lang__active { color: var(--accent); }

/* Square hard CTA in header */
.nav__cta {
  background: var(--accent);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: var(--rule-w-med) solid var(--accent);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav__cta::after {
  content: " ↗";
  margin-left: 0.3em;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
  border: var(--rule-w-med) solid var(--ink);
}
.site-header.is-scrolled .nav__toggle,
.site-header.is-inverted .nav__toggle { color: var(--ink); }

.nav__toggle-bar {
  display: block; width: 18px; height: 2px;
  background: currentColor; position: relative;
}
.nav__toggle-bar::before, .nav__toggle-bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor;
}
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after  { top: 6px; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Drawer (mobile menu) */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: translateX(100%);
  transition: transform 0.25s var(--ease);
  color: var(--paper);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer::before {
  content: "MENU / 08";
  position: absolute;
  top: 1.5rem; left: 2rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
}
.drawer__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  font-size: 1.5rem;
  font-family: var(--mono);
  color: var(--paper);
  border: var(--rule-w-med) solid var(--paper);
}
.drawer__link {
  font-family: var(--display);
  font-size: clamp(1.875rem, 7vw, 2.5rem);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.025em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.9rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  counter-increment: drawer-item;
}
.drawer { counter-reset: drawer-item; }
.drawer__link::before {
  content: "0" counter(drawer-item);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  flex-shrink: 0;
}
.drawer__link:hover { color: var(--accent); }
.drawer__lang {
  margin-top: auto;
  padding-top: var(--s-3);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.drawer__lang a { color: var(--accent); }

/* ==========================================================================
   Hero — asymmetric editorial brutalist
   Image on the right, hammered display type on the left, mono index strip
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h) - var(--notice-h));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  border-bottom: var(--rule-w-thick) solid var(--ink);
}

/* Image rail — right column, full height */
.hero__media {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  inset: auto;
  border-left: var(--rule-w-med) solid var(--ink);
  overflow: hidden;
  min-height: 60vh;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero__media img,
.hero__media .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

/* Plate sticker on hero image */
.hero__media::before {
  content: "PL.001 / FACADE / OSLO";
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ink);
}

/* Content column (left) */
.hero__content {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2rem clamp(1.25rem, 4vw, 3rem);
  max-width: none;
  width: 100%;
  border-right: 0;
}

/* Top-of-hero data strip */
.hero__content::before {
  content: "ISSUE 01 / SPRING 26 / OSLO ⌂ FREE GUIDE / VOL.II";
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: var(--rule-w-thin) solid var(--ink);
  margin-bottom: 2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom-of-hero index strip */
.hero__content::after {
  content: ".01 — A NATIONAL HOUSE / .02 — THE COLLECTIONS / .03 — ROOM 60";
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--mute);
  padding-top: 0.75rem;
  border-top: var(--rule-w-thin) solid var(--ink);
  margin-top: 2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__title {
  font-family: var(--display);
  font-size: var(--fs-d1);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
}

.hero__sub {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  line-height: 1.45;
  max-width: 38ch;
  color: var(--ink-soft);
  letter-spacing: 0;
  border-left: var(--rule-w-thick) solid var(--accent);
  padding-left: var(--s-2);
}

.hero__meta {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: var(--rule-w-thin) solid var(--ink);
}
.hero__meta-item {
  display: flex; flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.85rem 0.85rem 0;
  border-right: var(--rule-w-thin) solid var(--ink);
}
.hero__meta-item:last-child { border-right: 0; }
.hero__meta-item::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 0;
  margin-bottom: 0.15rem;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero__media {
    grid-column: 1;
    grid-row: 1;
    border-left: 0;
    border-bottom: var(--rule-w-med) solid var(--ink);
    min-height: 45vh;
    aspect-ratio: 4 / 5;
  }
  .hero__content { grid-column: 1; grid-row: 2; padding: 1.5rem clamp(1.25rem, 4vw, 3rem); }
  .hero__content::before { font-size: 0.6rem; }
  .hero__content::after { display: none; }
}

/* ==========================================================================
   Section header — brutalist asymmetric
   ========================================================================== */
.s-head {
  display: grid;
  grid-template-columns: minmax(80px, 0.5fr) 1.6fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  align-items: start;
  padding-top: var(--s-2);
  border-top: var(--rule-w-thick) solid var(--ink);
  counter-increment: section-num;
  position: relative;
}
.s-head::before {
  content: "§ " counter(section-num, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 0.5rem;
}
.s-head__lead {
  font-family: var(--display);
  font-size: var(--fs-d3);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.s-head__lead em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.s-head__intro {
  font-size: var(--fs-md);
  max-width: 55ch;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 0.5rem;
}
.surface-ink .s-head { border-top-color: var(--paper); }
.surface-ink .s-head::before { color: var(--accent); }
.surface-ink .s-head__lead { color: var(--paper); }
.surface-ink .s-head__intro { color: rgba(255,255,255,0.78); }

@media (max-width: 880px) {
  .s-head { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ==========================================================================
   Footer — brutalist editorial colophon
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-6) 0 var(--s-3);
  font-size: var(--fs-sm);
  border-top: var(--rule-w-thick) solid var(--accent);
}
.footer h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
  padding-bottom: 0.5rem;
  border-bottom: var(--rule-w-thin) solid rgba(255,255,255,0.2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: var(--rule-w-thin) solid rgba(255, 255, 255, 0.18);
}
.footer__brand .brand {
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.footer__brand .brand__mark { color: var(--accent); }
.footer__about {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}
.footer__col a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--body);
  transition: color 0.15s var(--ease), padding 0.15s var(--ease);
}
.footer__col a:hover { color: var(--accent); padding-left: 0; }
.footer__col a:hover::before {
  content: "→ ";
  color: var(--accent);
  margin-left: -1.1em;
  margin-right: 0.2em;
}

.footer__address {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.footer__bottom {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3); align-items: center;
  justify-content: space-between;
  padding-top: var(--s-3);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__legal a:hover { color: var(--accent); }

@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 var(--s-6);
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
  border-bottom: var(--rule-w-thick) solid var(--accent);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
}
.page-hero__media img,
.page-hero__media .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding-right: 2rem;
}

.page-hero__title {
  font-family: var(--display);
  font-size: var(--fs-d2);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-wrap: balance;
}
.page-hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}

.page-hero__intro {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  border-left: var(--rule-w-thick) solid var(--accent);
  padding-left: var(--s-2);
}

/* Crumb — mono brutalist */
.crumb {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--s-3);
  font-weight: 700;
}
.crumb a { color: var(--accent); }
.crumb a:hover { color: var(--paper); }

/* Big section number that bleeds in the page hero corner */
.page-hero::before {
  content: "/ FROM THE GUIDE";
  position: absolute;
  top: 1.5rem; right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
}

/* logo (brand) */
.brand__logo {
  display: inline-block;
  height: clamp(48px, 5.5vw, 64px); margin: -10px 0;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
