@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --p-bg: #dfdedb; --p-surface: #d3d2ce; --p-ink: #26251e; --p-muted: #5a5850;
  --p-accent: #2456d6; --p-accent-ink: #fff; --p-action: #2456d6; --p-action-ink: #fff;
  --p-inv-bg: #26251e; --p-inv-surface: #313029; --p-inv-ink: #dfdedb; --p-inv-muted: #9e9d99;
  --p-inv-accent: #dfdedb; --p-inv-accent-ink: #26251e; --p-inv-action: #dfdedb; --p-inv-action-ink: #26251e;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -.035em;
  --display-tracking-xl: -.042em;
  --ly-scale: .98;
  --bg: var(--p-bg);
  --surface: var(--p-surface);
  --ink: var(--p-ink);
  --muted: var(--p-muted);
  --accent: var(--p-accent);
  --action: var(--p-action);
  --line: #aba9a1;
  --ease: cubic-bezier(.2,.8,.2,1);
  --nav: 72px;
  --gut: clamp(24px, 5.55vw, 80px);
  --pad-section: clamp(56px, 8.33vw, 120px);
  --gap: 24px;
  --r-lg: 20px;
  --r-control: 4px;
  --control-ink: #193d87;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1rem/1.6 var(--font-text); }
p, h1, h2, ul, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.wrap { width: min(calc(100% - 2 * var(--gut)), 1280px); margin-inline: auto; }
.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); }
h1 { font-size: clamp(2.5rem, 5.35vw, 4.75rem); line-height: 1.02; letter-spacing: var(--display-tracking-xl); }
h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.09; letter-spacing: var(--display-tracking); }

.nav { position: fixed; inset: 0 0 auto; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__bar { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'logo links'; align-items: center; min-height: var(--nav); }
.nav__logo { grid-area: logo; display: inline-flex; width: fit-content; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 1.125rem; font-weight: 600; letter-spacing: -.04em; }
.mark { width: 15px; height: 15px; flex: none; background: radial-gradient(circle, var(--ink) 0 2px, transparent 2.4px) 0 0 / 7.5px 7.5px; }
.nav__links { grid-area: links; justify-self: end; }
.nav__links ul, .footer__directory ul, .palette ul { padding: 0; list-style: none; }
.nav__links ul { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 500; text-decoration: underline transparent; text-underline-offset: 5px; }
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current] { text-decoration-color: currentColor; }
.nav__link[aria-current] { text-decoration-thickness: 2px; }
.nav__toggle { display: none; }
.skip-link { position: absolute; top: 8px; left: var(--gut); transform: translateY(-200%); background: var(--bg); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { transform: none; z-index: 2; }

.btn { display: inline-flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 16px; border-radius: var(--r-control); padding: 10px 18px; font-weight: 500; text-decoration: none; }
.btn--primary { border: 1px solid var(--control-ink); color: var(--control-ink); }
html[data-buttons="outline"] .btn--primary:hover { background: #f0efeb; }
html[data-buttons="outline"] .btn--primary:active { background: #c9c8c3; }
.btn-row { display: flex; margin-top: 32px; }
.link { text-underline-offset: 4px; }
.text-action { --s-2: 8px; --m-rest: currentColor; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--control-ink); }

.hero { padding: calc(var(--nav) + clamp(24px, 3.33vw, 48px)) 0 64px; }
.hero--split { min-height: 100svh; }
.hero--split .hero-text { align-items: start; }
.hero__name { font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -.03em; margin-top: 24px; }
.hero__lead { max-width: 42ch; margin-top: 24px; font-size: clamp(1.0625rem, 1.55vw, 1.25rem); line-height: 1.48; }
.hero__name + .hero__lead { margin-top: 8px; }
.frame { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media { height: max(360px, calc(100svh - var(--nav) - clamp(24px, 3.33vw, 48px) - 64px)); }
.hero__media img { object-position: center 46%; }

.section { padding: var(--pad-section) 0 72px; min-height: 100svh; }
.section-head { align-items: start; margin-bottom: 32px; }
.section-head p { max-width: 42ch; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.45; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.photo-pair .frame { aspect-ratio: 3 / 2; }
.room-notes > p { margin-top: 20px; max-width: 46ch; }
.room-notes .room-name { margin-top: 12px; font-weight: 600; color: var(--muted); }
.room-name + p { margin-top: 8px; }
.notes { margin: 28px 0 16px; max-width: 54ch; }
.notes > div { display: grid; grid-template-columns: minmax(66px, 1fr) 4fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.notes > div:last-child { border-bottom: 1px solid var(--line); }
.notes dt { font-weight: 600; }
.room-image { aspect-ratio: 3 / 2; }
.section:not(.room) .room-image { aspect-ratio: 1 / 1; }
.palette { margin-bottom: 18px; }
.palette ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.palette li { min-width: 0; font-size: .875rem; }
.palette li > span { display: block; height: clamp(32px, 4.17vw, 60px); border: 1px solid #26251e33; border-radius: 5px 5px 0 0; margin-bottom: 6px; background: var(--swatch); }

.utility { min-height: min(72svh, 690px); padding-bottom: var(--pad-section); }
.utility h1 { font-size: clamp(2.5rem, 6.2vw, 5.625rem); }
.utility__copy { max-width: 61ch; }
.utility__copy h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.utility__copy :is(p, address, ul) { margin-top: 16px; }
.utility__copy address { font-weight: 600; }
.utility__copy > h2:not(:first-child), .photo-credits { margin-top: 32px; }
.photo-credits ul { padding-inline-start: 20px; }
.photo-credits li { margin-bottom: 8px; }

.closing { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.closing--photo { padding-top: 72px; min-height: 100svh; }
.close--photo { margin-bottom: 32px; }
.closing__photo { height: clamp(200px, 30svh, 420px); }
.closing__photo img { object-position: center 77%; }
.footer__directory { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer__label { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.footer__directory nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1023px) {
  :root { --nav: 64px; }
  .nav__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
  .nav__links { order: 1; width: 100%; }
  .nav__links ul { justify-content: space-between; }
  html:not(.has-menu) { --nav: 112px; }
  .has-menu .nav__toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--bg); padding: 6px 12px; color: var(--ink); }
  .has-menu .nav__links { display: none; }
  .has-menu .nav.is-open .nav__links { display: block; position: fixed; inset: var(--nav) 0 0; background: var(--bg); border-top: 1px solid var(--line); padding: 20px var(--gut); overflow: auto; }
  .nav.is-open .nav__links ul { display: block; }
  .nav.is-open .nav__link { width: 100%; min-height: 56px; font-size: 1.25rem; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  :root { --gut: 64px; }
  .photo-pair { grid-template-columns: minmax(0, 1fr); }
  .photo-pair .frame { height: clamp(165px, 27svh, 320px); aspect-ratio: auto; }
}

@media (max-width: 899px) {
  .city-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.5rem, 8.4vw, 4.5rem); }
  .hero { padding-bottom: 32px; }
  .hero--split .hero-text { min-height: max(560px, calc(100svh - var(--nav) - 64px)); grid-template-rows: auto minmax(280px, 1fr); }
  .hero__media { align-self: stretch; height: auto; }
  .hero__media img { position: absolute; inset: 0; }
  .section { padding-bottom: 48px; }
  .utility { min-height: auto; }
  .closing__photo { height: clamp(200px, 35vw, 340px); }
  .footer__directory { grid-template-columns: 1fr 1fr; }
  .footer__directory > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  :root { --gap: 18px; --r-lg: 14px; }
  .hero__name { margin-top: 16px; }
  .hero__lead { margin-top: 16px; }
  .btn-row { margin-top: 20px; }
  .btn-row .btn { width: 100%; }
  .hero--split .hero-text { gap: 24px; }
  .photo-pair { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 24px; }
  .closing--photo { padding-top: 48px; }
  .close--photo { margin-bottom: 24px; }
  .closing__photo { height: 176px; }
  .footer__legal { display: block; }
  .footer__legal small { display: block; }
}

@media (max-width: 360px) {
  .nav__link { font-size: .875rem; }
  .nav__links ul { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
