:root {
  --home-bg: #e7df8e;
  --about-bg: #fefff5;
  --social-bg: #d0e5f1;
  --ink: #131313;
  --gallery-bg: #131313;
  --frame-width: 440px;
  --side-padding: 20px;
  --nav-gap: 32px;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: 0;
  background: #fff;
}

body.is-page-exiting .site-shell {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

p,
h1,
h2,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
}

.site-shell {
  width: 100%;
  animation: page-dissolve-in 260ms ease-out both;
  transition: opacity 260ms ease-in;
}

.page-about {
  background: var(--about-bg);
}

.page-portfolio {
  background: var(--about-bg);
}

.page-socials {
  background: var(--social-bg);
}

.page-home {
  overflow: hidden;
  background: var(--home-bg);
}

body.menu-open {
  overflow: hidden;
}

@keyframes page-dissolve-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.screen {
  display: flex;
  justify-content: center;
  width: 100%;
}

.screen-frame {
  width: min(100%, var(--frame-width));
  min-width: 0;
  background: inherit;
}

.screen--home {
  height: 100svh;
  overflow: hidden;
  background: var(--home-bg);
}

.screen--home .screen-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.screen--home .topbar {
  flex: 0 0 120px;
}

.screen--about {
  background: var(--about-bg);
}

.screen--portfolio {
  min-height: 100svh;
  background: var(--about-bg);
}

.screen--socials {
  min-height: 100svh;
  background: var(--social-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 120px;
  padding: 12px var(--side-padding);
  background: inherit;
}

.topbar__row {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: space-between;
  height: 33px;
  min-width: 0;
  width: 100%;
}

.logo-link,
.logo {
  width: 110px;
  height: 33px;
}

.logo-link {
  flex: 0 0 auto;
}

.logo {
  object-fit: cover;
}

.role-label {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  white-space: nowrap;
}

.home-nav {
  display: flex;
  flex: 1 1 230px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 0 var(--side-padding) 26px;
  background: inherit;
}

.home-nav__row {
  display: flex;
  flex: 1 0 0;
  align-items: flex-end;
  gap: var(--nav-gap);
  min-width: 0;
  width: 100%;
  font-size: 22px;
  line-height: normal;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.home-nav__row a {
  flex: 0 0 auto;
}

.portrait-panel {
  display: flex;
  flex: 0 1 606px;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin-top: 32px;
  padding: 0 var(--side-padding);
  background: inherit;
}

.portrait-panel__image {
  flex: 1 0 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.portrait-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.screen--about .topbar {
  background: inherit;
}

.back-link,
.menu-toggle {
  flex: 0 0 auto;
  width: 61px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

.menu-toggle {
  cursor: pointer;
}

.menu-toggle:focus-visible,
.site-menu a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.site-menu {
  position: fixed;
  top: 120px;
  left: 50%;
  z-index: 9;
  width: min(100%, var(--frame-width));
  height: calc(100svh - 120px);
  min-height: 0;
  padding: 60px 25px 0;
  background: var(--about-bg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
  visibility: hidden;
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.page-socials .site-menu {
  background: var(--social-bg);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  min-width: 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
  line-height: 26px;
}

.site-menu a {
  display: block;
  width: 100%;
}

.site-menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-position: from-font;
}

@media (prefers-reduced-motion: reduce) {
  .site-shell {
    animation: none;
    transition: none;
  }

  .site-menu {
    transition: none;
  }
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 60px var(--side-padding) 78px;
  background: inherit;
}

.about-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  min-width: 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}

.about-text h1 {
  width: 100%;
  font-size: 22px;
  font-weight: 400;
  line-height: normal;
}

.about-copy {
  width: 100%;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  white-space: normal;
}

.about-copy p + p {
  margin-top: 20.25px;
}

.about-photo {
  flex: 0 0 auto;
  width: 260px;
  height: 386px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.section-title {
  width: 100%;
  font-size: 22px;
  font-weight: 400;
  line-height: normal;
}

.portfolio-intro {
  min-height: 591px;
  padding: 60px var(--side-padding) 80px;
  background: inherit;
}

.portfolio-intro .section-title {
  margin-bottom: 60px;
}

.portfolio-project {
  display: flex;
  flex-direction: column;
  gap: 39px;
  width: 100%;
  min-width: 0;
}

.portfolio-project__title {
  width: 100%;
  font-size: 22px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.portfolio-project__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.portfolio-project__body--compact {
  width: 370px;
  max-width: 100%;
}

.portfolio-project__lead {
  width: min(100%, 336px);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
}

.portfolio-list {
  width: 100%;
  min-width: 0;
  padding-left: 22.5px;
  font-size: 15px;
  line-height: 1.35;
}

.portfolio-list li {
  padding-left: 0;
}

.portfolio-gallery {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--gallery-bg);
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.portfolio-gallery:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.portfolio-gallery.is-dragging {
  cursor: grabbing;
}

.portfolio-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.gallery-item {
  position: absolute;
  top: var(--gallery-item-top, 50%);
  left: 50%;
  display: block;
  width: min(var(--gallery-item-width), calc(100% - 40px));
  height: auto;
  max-height: calc(100% - 40px);
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transform: translateX(-50%);
  user-select: none;
}

.gallery-item--hotel-collage {
  --gallery-item-top: 95px;
  --gallery-item-width: 340px;
}

.gallery-item--hotel-page-1 {
  --gallery-item-top: 62px;
  --gallery-item-width: 260px;
}

.gallery-item--hotel-page-2 {
  --gallery-item-top: 31px;
  --gallery-item-width: 260px;
}

.gallery-item--hotel-social {
  --gallery-item-top: 89px;
  --gallery-item-width: 288px;
}

.portfolio-copy-section {
  background: inherit;
}

.portfolio-copy-section--cake {
  min-height: 440px;
  padding: 100px 50px 80px var(--side-padding);
}

.gallery-item--cake-packaging {
  --gallery-item-top: 60px;
  --gallery-item-width: 262px;
}

.gallery-item--cake-pricelist {
  --gallery-item-top: 98px;
  --gallery-item-width: 355px;
}

.gallery-item--cake-social {
  --gallery-item-top: 58px;
  --gallery-item-width: 340px;
}

.gallery-item--cake-card {
  --gallery-item-top: 87px;
  --gallery-item-width: 347px;
}

.portfolio-ux {
  min-height: 326px;
  padding: 100px var(--side-padding) 80px;
  background: inherit;
}

.portfolio-ux__inner,
.portfolio-ux__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.portfolio-ux__inner {
  gap: 20px;
  width: 100%;
}

.portfolio-ux__copy {
  gap: 20px;
}

.portfolio-ux__text {
  width: min(100%, 356px);
  font-size: 15px;
  line-height: 1.35;
}

.portfolio-link {
  font-size: 15px;
  line-height: 1.35;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-position: from-font;
}

.gallery-item--ux-events {
  --gallery-item-top: 54px;
  --gallery-item-width: 318px;
}

.gallery-item--ux-mobile {
  --gallery-item-top: 94px;
  --gallery-item-width: 320px;
}

.gallery-item--ux-hero {
  --gallery-item-top: 147px;
  --gallery-item-width: 358px;
}

.socials-card {
  min-height: calc(100svh - 120px);
  padding: 60px var(--side-padding);
  background: inherit;
}

.socials-card__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
  min-width: 0;
}

.socials-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}

.socials-list a {
  width: 100%;
}

.socials-list a[href^="http"] {
  text-decoration: underline;
  text-underline-position: from-font;
}

@media (max-width: 399px) {
  .role-label,
  .home-nav__row,
  .back-link,
  .menu-toggle,
  .site-menu__list,
  .about-text h1,
  .section-title,
  .portfolio-project__title {
    font-size: 20px;
  }

  .home-nav__row {
    gap: 20px;
  }
}

@media (max-width: 359px) {
  .role-label,
  .home-nav__row,
  .back-link,
  .menu-toggle,
  .site-menu__list,
  .about-text h1,
  .section-title,
  .portfolio-project__title {
    font-size: 18px;
  }

  .home-nav__row {
    gap: 16px;
  }
}
