* {
  margin: 0;
  box-sizing: border-box;
}

:root {
  --background-main: #ffffff;
  --background-secondary: #c4c4c4;
  --color-three: #2a2a2a;
  --color-attention: #ff484c;
  --overlay-bg: color-mix(in srgb, var(--background-main) 100%, transparent);
  --menu-text: #2a2a2a;
  --font: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-footer-height: 60px;
  --card-gap: 36px;
  --cards-per-view: 3;
  --mobile: 640px;
  --side-margins: 24px;
  --card-pad: 16px;
  --card-content-gap: 16px;
  --card-thumb-radius: 16px;
  --card-square-aspect: 2 / 3;
}

@font-face {
  font-family: "Geist Variable";
  src: url("/fonts/geist/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 200;
  background: var(--background-main);
  color: #2a2a2a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 8px 24px 8px 24px;
  height: var(--header-footer-height);
  border-bottom: 1px solid rgba(42, 42, 42, 0.08);
  background: none;
}

main {
  flex: 1;
  padding-bottom: var(--header-footer-height);
}

.logo a {
  text-decoration: none;
  color: inherit;
  font-weight: 200;
  text-transform: uppercase;
}

.logo-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-quote {
  display: none;
}

@media (min-width: 640px) {
  .logo-quote {
    display: inline-block;
    white-space: nowrap;
  }
}

/* Hamburger menu button */
.menu-btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  position: relative;
  z-index: 1001;
}

.burger path {
  fill: none;
  stroke: var(--color-three);
  stroke-width: 1;
  stroke-linecap: round;
  transition: transform 0.4s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)), opacity 0.2s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)), stroke 0.28s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  transform-origin: 12px 12px;
}

/* hover expands lines to form square */
.menu-btn:not([aria-expanded="true"]):hover .l1 {
  transform: translateY(-4px);
}

.menu-btn:not([aria-expanded="true"]):hover .l2 {
  transform: translateY(4px);
}

/* active (X) */
.menu-btn[aria-expanded="true"] .l1 {
  transform: translateY(2px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .l2 {
  transform: translateY(-2px) rotate(-45deg);
}

.menu-btn[aria-expanded="true"] .burger path {
  stroke: var(--color-attention);
}

.site-links {
  display: none;
}

.site-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: flex-end;
}

.site-links__link {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-three);
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  cursor: pointer;
}

.site-links__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 400ms cubic-bezier(.2,.51,.56,.44);
}

.site-links__link:hover::after,
.site-links__link:focus-visible::after {
  transform: scaleX(1);
}

.site-links__link:active {
  transform: translateY(1px);
}

.site-links__link--contact {
  color: var(--color-three);
}

.site-links__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .burger path {
    transition: none;
  }
}

/* Fullscreen overlay menu */
.menu {
  position: fixed;
  inset: 0;
  background: rgba(242, 242, 242);
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 1s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)), opacity 0.25s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  z-index: 1000;
  color: var(--menu-text);
}

.menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu a {
  display: inline-block;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  color: var(--menu-text);
  text-decoration: none;
  padding: 0.4em 0;
}

.menu button {
  display: inline-block;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  background: transparent;
  border: none;
  color: var(--menu-text);
  padding: 0.4em 0;
  cursor: pointer;
}

.menu [data-contact-toggle] {
  color: var(--color-three);
}

.menu a:hover,
.menu a:focus-visible,
.menu button:hover,
.menu button:focus-visible {
  text-decoration: underline;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .site-links {
    display: block;
    min-width: 0;
  }

  .menu-btn {
    display: none;
  }

  .menu {
    display: none !important;
  }
}

h3 {
  font-weight: 200;
  font-family: var(--font);
  margin: 0;
}

h3Title {
  font-weight: 200;
  font-size: large;
  font-family: var(--font);
  margin: 0 0 0 24px;
}

h4 {
  font-weight: 200;
  text-align: left;
  font-family: var(--font);
  font-size: clamp(12px, 2vh, 16px);
}

h5{
  font-weight: 100;
  text-align: left;
  font-family: var(--font);
  color: #2a2a2a80;
  margin: 0;
}

.catalog {
  --card-gap: clamp(16px, 3vw, 48px);
  --catalog-padding-inline: clamp(16px, 4vw, var(--side-margins));
  --catalog-height: calc(100dvh - (var(--header-footer-height) * 2));
  --card-max-height: calc(var(--catalog-height) - 16px);
  --card-available-width: calc(
    (
      100%
      - (var(--cards-per-view) - 1) * var(--card-gap)
      - (var(--catalog-padding-inline) * 2)
    ) / var(--cards-per-view)
  );
  --card-mobile-width: clamp(0px, calc(var(--mobile) - 12px), var(--mobile));
  --card-available-width-trimmed: clamp(
    0px,
    calc(var(--card-available-width) - 12px),
    var(--card-available-width)
  );
  --card-width: min(
    var(--card-mobile-width),
    var(--card-available-width-trimmed),
    calc(var(--card-max-height) * 3 / 4)
  );
  height: var(--catalog-height);
  display: flex;
  gap: var(--card-gap);
  padding-block: 12px;
  padding-inline: var(--catalog-padding-inline);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.catalog::-webkit-scrollbar {
  display: none;
}

.catalog-indicators {
  position: relative;
  width: 20dvw;
  max-width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: inset 2px 2px #2a2a2a35;
  overflow: hidden;
  min-width: 0;
  margin: 0 auto;
}

.catalog-indicator__fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-attention);
  box-shadow: inset -1px -1px #cf2a2c50, inset .5px .5px #ffffff50;
  border-radius: 50%;
  transform: translateX(0) translateY(-50%);
  transition: transform 180ms ease;
}

.card {
  position: relative;
  flex: 0 0 var(--card-width, 280px);
  width: var(--card-width, 280px);
  max-height: var(--card-max-height, calc(100dvh - 120px));
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  display: flex;
  aspect-ratio: var(--card-aspect, 3 / 4);
}

.card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--card-content-gap);
  padding: var(--card-pad);
  flex: 1;
  height: 100%;
  background: var(--background-main);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 4px 8px #2a2a2a50;
  transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
  will-change: transform;
  transform-origin: center;
}

.card__inner > * {
  position: relative;
  z-index: 1;
}

.card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset .5px .5px 0 1px #ffffff85,
    inset 4px 4px 8px #ffffff,
    inset -8px -8px 12px rgba(42, 42, 42, 0.12);
  pointer-events: none;
  transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
  z-index: 0;
}

.card:hover .card__inner {
  box-shadow: 2px 2px 2px #2a2a2a70;
  transform: scale(0.99);
}

.card:active .card__inner {
  transform: scale(0.98);
  box-shadow: inset 8px 8px 12px rgba(42, 42, 42, 0.12), inset -8px -8px 12px rgba(42, 42, 42, 0.25), inset 0px 0px 4px 0px #2a2a2a80;
}

.card:active .card__inner::after {
  box-shadow: none;
}

.card:focus-visible {
  outline: 2px solid #2a2a2a;
  outline-offset: 4px;
}

.card .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  align-self: center;
  margin: 0;
  border-radius: var(--card-thumb-radius);
  background: #000;
  aspect-ratio: var(--card-thumb-aspect, 3 / 4);
  max-height: 100%;
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .info {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  width: 100%;
}

.tag-chip {
  position: static;
  align-self: flex-end;
  margin: 0 24px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 10px;
  min-height: 24px;
  max-width: 100%;
  border: 1px solid var(--background-secondary);
  border-radius: 12px;
  background: transparent;
  color: var(--background-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 1;
  transition: border-color 160ms ease, color 160ms ease;
}

.card--square {
  --card-thumb-aspect: 1;
}

.card:hover .tag-chip,
.card:focus-visible .tag-chip {
  border-color: color-mix(in srgb, var(--background-secondary) 70%, #2a2a2a 30%);
  color: color-mix(in srgb, var(--background-secondary) 70%, #2a2a2a 30%);
}

@media (max-width: 480px) {
  .tag-chip {
    white-space: normal;
    justify-content: flex-end;
    text-align: right;
  }
}

footer {
  text-align: center;
  padding: 0px 24px 24px;
  font-weight: 200;
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  background: var(--background-main);
}

.site-footer {
  display: block;
  height: var(--header-footer-height);
  padding: 0 24px calc(env(safe-area-inset-bottom, 0px));
  background: var(--background-main);
  border-top: 1px solid rgba(42, 42, 42, 0.08);
  z-index: 40;
  text-align: initial;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-footer-height);
  gap: 12px;
}

.site-footer__indicators {
  min-width: 0;
}

.site-footer__spacer {
  grid-area: spacer;
}

.contact-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(.2, .7, .2, 1);
  z-index: 100;
}

.contact-dialog.is-visible {
  visibility: visible;
  opacity: 1;
}

.contact-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.2);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 500ms cubic-bezier(.2, .7, .2, 1);
  cursor: pointer;
}

.contact-dialog.is-visible .contact-dialog__overlay {
  opacity: 1;
}

.contact-dialog__sheet {
  position: relative;
  background: var(--background-main);
  color: inherit;
  width: min(540px, 100%);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -1px 0 rgba(42, 42, 42, 0.08);
  transform: translateY(20vh);
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
}

.contact-dialog.is-visible .contact-dialog__sheet {
  transform: translateY(0);
}

.contact-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-dialog__title {
  font-size: 1.25rem;
  font-weight: 400;
}

.contact-dialog__close {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms cubic-bezier(.2, .7, .2, 1);
}

.contact-dialog__close:hover,
.contact-dialog__close:focus-visible,
.contact-dialog__close:active {
  background: rgba(42, 42, 42, 0.08);
  transform: scale(0.98);
}

.contact-dialog__close:focus-visible {
  outline: 2px solid #2a2a2a;
  outline-offset: 2px;
}

.contact-dialog__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-dialog__link {
  display: block;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(42, 42, 42, 0.06);
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  transition: background-color 150ms ease, transform 120ms cubic-bezier(.2, .7, .2, 1);
}

.contact-dialog__link:hover,
.contact-dialog__link:focus-visible,
.contact-dialog__link:active {
  background: rgba(42, 42, 42, 0.12);
  transform: scale(0.98);
}

.contact-dialog__link:focus-visible {
  outline: 2px solid #2a2a2a;
  outline-offset: 2px;
}

body.is-modal-open {
  overflow: hidden;
}

.icon-group {
  display: inline-flex;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.5rem;
  isolation: isolate;
}

.icon-group > .icon-btn {
  border-inline-start: 1px solid #e5e7eb;
}

.icon-group > .icon-btn:first-child {
  border-inline-start: none;
}

[dir="rtl"] .icon-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .icon-group > .icon-btn {
  border-inline-start: 0;
  border-inline-end: 1px solid #ffffff;
}

[dir="rtl"] .icon-group > .icon-btn:last-child {
  border-inline-end: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .icon-btn {
    padding: 0.5rem 1.5rem;
  }

  .icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  .icon-group {
    background: #2a2a2a;
  }

  .icon-btn {
    color: #ffffff;
  }
}

.mobile-footer {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  justify-content: center;
}


@media (max-width: 1200px) {
  .catalog {
    --cards-per-view: 3;
  }
}

@media (max-width: 1000px) {
  .catalog {
    --cards-per-view: 2;
  }
}

@media (max-width: 640px) {
  header {
    position: relative;
    justify-content: space-between;
    padding: 8px 24px;
  }

  .logo {
    margin: 0;
  }

  main {
    padding-bottom: calc(var(--header-footer-height) + env(safe-area-inset-bottom, 0px));
  }

  .catalog {
    --card-gap: max(48px, 8vw);
    --cards-per-view: 1;
    --card-width: min(
      calc(100vw - 48px),
      calc(var(--card-max-height) * 3 / 4)
    );
    --catalog-mobile-side-padding: max(24px, calc((100vw - var(--card-width)) / 2));
    --catalog-padding-inline: var(--catalog-mobile-side-padding);
    padding-inline: var(--catalog-mobile-side-padding);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--catalog-mobile-side-padding);
  }

  .card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  footer .contact-info {
    display: none;
  }

  .site-footer {
    height: var(--header-footer-height);
    display: block;
  }

  .site-footer__inner {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .mobile-footer {
    display: inline-flex;
  }
}
