:root {
  --paper: oklch(0.955 0.014 84);
  --paper-2: oklch(0.915 0.022 78);
  --ink: oklch(0.28 0.032 46);
  --muted: oklch(0.42 0.028 48);
  --seal: oklch(0.38 0.105 32);
  --seal-deep: oklch(0.32 0.09 30);
  --line: oklch(0.28 0.032 46 / 0.16);
  --font: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 4.2vw, 3.75rem);
  --gutter: max(var(--pad), env(safe-area-inset-left), env(safe-area-inset-right));
  --measure: 66ch;
  --header: 4.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: calc(var(--header) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.02rem, 0.96rem + 0.28vw, 1.1875rem);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--seal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--seal-deep);
}

::selection {
  background: var(--seal);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus {
  top: 0.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: calc(var(--header) + env(safe-area-inset-top));
  padding: 0.45rem var(--gutter);
  padding-top: calc(0.45rem + env(safe-area-inset-top));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}

.brand img {
  width: 36px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-legal {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 1.6rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--seal);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 1.35rem var(--gutter) 1.75rem;
}

.place-kicker {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2.05rem, 1.35rem + 4.8vw, 3.05rem);
}

.hero h1 span {
  display: block;
  color: var(--seal);
}

.lead,
.dek {
  margin: 0;
  max-width: 38em;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.32rem);
  line-height: 1.45;
}

.hero-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  order: -1;
  background: var(--paper-2);
}

.hero-frame {
  position: relative;
  min-height: min(38svh, 17.5rem);
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 42%;
}

figcaption {
  margin: 0;
  padding: 0.5rem var(--gutter) 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-photo figcaption {
  padding-inline: var(--gutter);
}

.band {
  background: var(--seal);
  color: var(--paper);
  padding: clamp(1.8rem, 6vw, 5.4rem) var(--gutter);
}

.band p {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.45rem, 1.05rem + 2.1vw, 3.05rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.for-whom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: clamp(2rem, 5.5vw, 4.5rem) var(--gutter);
  background: var(--paper-2);
}

.for-whom h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.for-whom p {
  margin: 0;
  max-width: 36em;
}

.doings {
  padding: clamp(2.2rem, 5.5vw, 4.8rem) var(--gutter) clamp(1.1rem, 3vw, 2rem);
}

.doings h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem);
  letter-spacing: -0.03em;
}

.doings dl {
  margin: 0;
  display: grid;
  gap: 0;
  max-width: 72rem;
}

.doings div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.doings dt {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doings dd {
  margin: 0;
  max-width: 52em;
}

.doings .after {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.5rem;
}

.works-intro,
.work,
.plate,
.portrait,
.page-head,
.prose,
.site-footer {
  padding-inline: var(--gutter);
}

.page-head {
  padding-top: clamp(1.6rem, 4.5vw, 4.2rem);
  padding-bottom: 0.35rem;
}

.crumb {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
}

.page-head h1 {
  max-width: 16em;
  font-size: clamp(2.05rem, 1.2rem + 3.6vw, 4.4rem);
  margin-bottom: 0.85rem;
  line-height: 1.02;
}

.prose {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  padding-bottom: clamp(2.2rem, 6vw, 4.5rem);
}

.prose h2 {
  margin: 1.7rem 0 0.5rem;
  font-size: clamp(1.32rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.prose p {
  margin: 0.7rem 0 0;
}

.page-photo {
  margin: 0.5rem 0 0;
  padding-inline: var(--gutter);
}

.page-photo img {
  width: 100%;
  max-height: min(62svh, 28rem);
  object-fit: cover;
}

.page-photo.tall img {
  max-height: min(72svh, 34rem);
  object-position: center 28%;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
}

.plate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding-top: clamp(2.2rem, 7vw, 6.5rem);
  padding-bottom: clamp(2.2rem, 7vw, 6.5rem);
  align-items: start;
}

.plate h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plate address {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.45rem, 0.85rem + 3.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.plate address a {
  color: var(--seal);
}

.plate-note {
  margin: 0;
  max-width: 34em;
}

.plate-note + .plate-note {
  margin-top: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding: 0 var(--gutter) clamp(2.4rem, 7vw, 5rem);
  align-items: start;
}

.contact-card address {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.45rem, 1rem + 2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.pec-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.45rem;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.45rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.map-wrap {
  background: var(--paper-2);
  min-width: 0;
}

.map-wrap iframe {
  width: 100%;
  height: clamp(16rem, 52vw, 28rem);
  border: 0;
}

.map-wrap p {
  margin: 0;
  padding: 0.7rem 0.9rem 0.9rem;
}

.map-wrap a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(1.7rem, 4.5vw, 3.2rem);
  padding-bottom: max(clamp(1.7rem, 4.5vw, 3.2rem), env(safe-area-inset-bottom));
}

.site-footer a {
  color: var(--paper);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 36px;
  height: 38px;
}

.footer-brand strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  margin-bottom: 1.1rem;
}

.footer-nav a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
}

.fine {
  margin: 0.35rem 0 0;
  max-width: 68ch;
  color: oklch(0.86 0.02 78);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--header) + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 28;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
    background: var(--paper);
    overflow: auto;
  }

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

  .site-nav a {
    font-size: 1.45rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 720px) {
  .brand img {
    width: 40px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .for-whom {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .doings div {
    grid-template-columns: minmax(8.5rem, 0.28fr) minmax(0, 1fr);
    gap: 0.8rem 1.5rem;
    padding: 1.15rem 0;
    align-items: baseline;
  }

  .hero-frame {
    min-height: min(44svh, 22rem);
  }

  .page-photo img {
    max-height: min(70svh, 36rem);
  }
}

@media (min-width: 900px) {
  .plate,
  .contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
  }

  .plate {
    align-items: end;
  }
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    min-height: calc(100svh - var(--header));
  }

  .hero-copy {
    justify-content: flex-end;
    gap: 1.15rem;
    padding: clamp(1.75rem, 4vw, 3.25rem) var(--gutter) clamp(2rem, 5vw, 3.75rem);
  }

  .hero-photo {
    order: 0;
    min-height: 64vh;
  }

  .hero-photo figcaption {
    padding-inline: 0.85rem;
  }

  .hero-frame {
    flex: 1;
    min-height: 42vh;
  }

  .hero h1 {
    max-width: 12em;
    font-size: clamp(2.35rem, 1.2rem + 6.5cqi, 4.55rem);
    line-height: 0.96;
  }

  .page-photo img,
  .page-photo.tall img {
    max-height: 78vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lead,
  .hero-frame {
    animation: rise 880ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero .lead {
    animation-delay: 90ms;
  }

  .hero-frame {
    animation-delay: 40ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
