@font-face {
  font-family: "DIN Next";
  src: url("./fonts/din-next-light.woff2") format("woff2");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "Helvetica Katrix";
  src: url("./fonts/helvetica-roman.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --ink: #111;
  --muted: #555;
  --line: #e9a4a4;
  --border: #d7d7d7;
  --button: #b7c0c8;
  --page-width: 980px;
  --content-width: 850px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DIN Next", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-shell--projects {
  --page-width: 1280px;
  --content-width: 1200px;
  --project-accent: #9f3030;
  --project-rule: #e1dedb;
}

.site-header {
  padding-top: 18px;
}

.brand {
  display: block;
  width: 290px;
  margin: 0 auto 18px;
}

.brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 578 / 252;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-transform: uppercase;
}

.site-nav {
  border-bottom: 1px solid var(--line);
}

.site-nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  color: #222;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #888;
}

.site-nav a:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

.site-main {
  flex: 1;
  padding: 50px 0 60px;
}

.site-main--home {
  padding-top: 20px;
}

.home-visuals {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 10px;
}

.home-visuals img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.home-copy {
  width: min(100%, 550px);
  margin: 34px auto 0;
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.12;
  text-align: justify;
}

.home-copy p {
  margin: 0 0 24px;
}

.projects-grid {
  width: min(100%, 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 54px;
}

.project-card h1,
.project-card h2 {
  margin: 0 0 20px;
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.sold-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128%;
  padding: 13px 0 11px;
  color: #fff;
  background: #e32120;
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-31deg);
  pointer-events: none;
}

.project-card__copy {
  margin-top: 22px;
  color: #444;
  font-size: 15px;
  line-height: 1.2;
}

.project-card__copy p {
  margin: 0 0 10px;
}

.project-card__copy ul {
  margin: 0 0 2px;
  padding-left: 22px;
}

.project-card--wide {
  grid-column: 1;
}

.projects-grid + .gallery {
  margin-top: 64px;
}

.archive-notice {
  width: min(100%, 900px);
  margin: 0 auto 32px;
  color: var(--muted);
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.gallery {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 36px 32px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.gallery-trigger img {
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-trigger__expand {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  pointer-events: none;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}

.gallery-trigger__expand svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-trigger:hover img {
    transform: scale(1.025);
  }

  .gallery-trigger:hover .gallery-trigger__expand {
    color: #fff;
    background: var(--project-accent);
  }
}

.gallery-trigger:focus-visible {
  outline: 3px solid var(--project-accent);
  outline-offset: 5px;
}

.gallery-trigger:focus-visible .gallery-trigger__expand {
  color: #fff;
  background: var(--project-accent);
}

.gallery-card figcaption {
  flex: 1;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--project-rule);
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.35;
  text-align: left;
}

.gallery-card__title {
  margin: 0;
  font: inherit;
  text-wrap: pretty;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgb(0 0 0 / 0.94);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.88);
}

.lightbox__stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: 64px 22px 28px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
}

.lightbox__figure {
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  gap: 16px;
}

.lightbox__image {
  max-width: min(1100px, 100%);
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.lightbox__caption {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: "Helvetica Katrix", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
}

.lightbox__counter {
  color: #bcbcbc;
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 12px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgb(255 255 255 / 0.18);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
}

.lightbox__nav--prev {
  justify-self: end;
}

.lightbox__nav--next {
  justify-self: start;
}

.contact-layout {
  width: min(100%, 850px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-person,
.company-details {
  font-size: 18px;
}

.contact-person p,
.company-details p {
  margin: 0 0 40px;
}

.contact-form {
  width: 100%;
  max-width: 345px;
  margin-top: 84px;
}

.contact-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  display: block;
  margin-left: auto;
  padding: 8px 10px;
  border: 0;
  color: #fff;
  background: var(--button);
  cursor: pointer;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-person a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.site-footer {
  padding: 14px 12px 44px;
  border-top: 1px solid var(--line);
  color: #444;
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .site-header {
    padding-top: 12px;
  }

  .brand {
    width: min(240px, 72vw);
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav ul {
    display: none;
    grid-template-columns: 1fr;
    padding: 6px 0;
  }

  .site-nav[data-open="true"] ul {
    display: grid;
  }

  .site-nav a {
    min-height: 42px;
  }

  .site-main,
  .site-main--home {
    padding: 28px 0 44px;
  }

  .home-visuals,
  .projects-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .home-visuals img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-copy {
    margin-top: 26px;
    font-size: 16px;
    text-align: left;
  }

  .projects-grid {
    gap: 48px;
  }

  .project-card--wide {
    grid-column: auto;
  }

  .gallery {
    gap: 28px 20px;
  }

  .gallery-card figcaption {
    padding: 14px 0 16px;
    font-size: 18px;
  }

  .gallery-trigger__expand {
    right: 12px;
    bottom: 12px;
  }

  .lightbox__stage {
    padding: 62px 10px 18px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
  }

  .lightbox__close,
  .lightbox__nav {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
  }

  .lightbox__image {
    max-height: calc(100dvh - 132px);
  }

  .lightbox__caption {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
  }

  .contact-layout {
    gap: 15px;
  }

  .contact-form {
    max-width: none;
    margin-top: 15px;
  }

  .site-footer {
    padding-bottom: 28px;
    line-height: 1.45;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .gallery-trigger img,
  .gallery-trigger__expand {
    transition: none;
  }

  .gallery-trigger:hover img {
    transform: none;
  }
}
