h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}
:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6f6f6f;
  --background: #ffffff;
  --spacing: clamp(24px, 4vw, 48px);
  --font: "Lyon", "Times New Roman", serif;
  --right-gutter: 200px;
  --tile-gap: 60px;
  --tile-gap-x: 54px;
}

@font-face {
  font-family: "Lyon";
  src: url("assets/fonts/Lyon-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-family: var(--font);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--background);
}

.landing-page {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  width: 420px;
  padding: var(--spacing);
  padding-right: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: inherit;
  line-height: inherit;
}

.side-nav__links {
  padding-top: calc(var(--tile-gap) * 2);
}

.side-nav__title {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: calc(var(--tile-gap) * 2 - 6px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-nav__logo {
  width: 48px;
  height: auto;
}
.site-logo {
  display: block;
  width: 180px;
  height: auto;
}

.side-nav__footer {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0.12em;
  align-content: start;
}

.nav-projects {
  display: block;
}

.nav-projects summary {
  list-style: none;
  cursor: pointer;
}

.nav-projects summary a {
  color: inherit;
  text-decoration: none;
}


.nav-projects summary::-webkit-details-marker {
  display: none;
}

.nav-projects__list {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.side-nav__links a {
  white-space: nowrap;
}

.page {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-right: var(--right-gutter);
}

.page-header {
  position: fixed;
  top: var(--spacing);
  right: var(--spacing);
  width: var(--right-gutter);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  font-size: 0;
  z-index: 2;
}

.page-header__logo {
  width: var(--right-gutter);
  height: auto;
  margin: 0;
  display: block;
  vertical-align: top;
  transform: translateY(-13px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing);
}

.site-title {
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main {
  padding: var(--spacing) var(--spacing) var(--spacing);
  flex: 1;
}

.page-header + main {
  padding-top: calc(var(--spacing) + var(--tile-gap) * 2);
}

.projects-page .page-header + main {
  padding-top: calc(var(--spacing) + var(--tile-gap) * 2 + 24px);
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-page .landing {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.landing-page .side-nav {
  position: relative;
  z-index: 2;
}

.landing__logo {
  width: clamp(180px, 28vw, 320px);
  height: auto;
  display: block;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 16px;
}

.projects {
  padding-top: 0;
}

.projects-page .projects {
  padding-right: 40px;
  padding-left: 4px;
}


.home-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--tile-gap) var(--tile-gap-x);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects {
  padding-top: 0;
}

.home-grid li {
  display: flex;
}

.home-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f3f3f3;
}

.home-tile__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.home-tile__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: transparent;
}

.home-tile:hover .home-tile__image,
.home-tile:focus-visible .home-tile__image {
  opacity: 0.2;
}

.home-tile:hover .home-tile__title,
.home-tile:focus-visible .home-tile__title {
  opacity: 1;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    height: auto;
    position: static;
    padding-right: var(--spacing);
  }

  .side-nav__links {
    padding-top: var(--tile-gap);
  }

  .page {
    padding-right: 0;
  }

  .page-header {
    position: static;
    width: auto;
    padding: var(--spacing) var(--content-gap) 0;
    justify-content: flex-end;
  }

  .page-header__logo {
    width: 120px;
    transform: translateY(0);
  }

  main {
    padding: var(--spacing) var(--content-gap) var(--spacing);
  }

  .page-header + main {
    padding-top: var(--tile-gap);
  }

  .projects-page .page-header + main {
    padding-top: calc(var(--tile-gap) + 12px);
  }

  .project-hero img {
    width: 100%;
  }
}

.project-page {
  max-width: 720px;
  margin-top: 0;
  padding-top: 21px;
}

.project-page__title {
  font-size: inherit;
  letter-spacing: 0.12em;
  margin: 0 0 var(--tile-gap);
}

.project-hero {
  position: relative;
  margin-bottom: var(--tile-gap);
}

.project-hero img {
  width: 90%;
  height: auto;
  display: block;
}

.project-hero__trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 28px;
  border: 0;
}

.project-hero:hover .project-hero__trigger,
.project-hero:focus-within .project-hero__trigger {
  opacity: 1;
}

.project-hero:hover img,
.project-hero:focus-within img {
  filter: grayscale(1);
  opacity: 0.7;
}

.project-gallery {
  margin-top: 0;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal__content {
  width: min(900px, 90vw);
  position: relative;
}

.gallery-modal__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  height: auto;
  display: block;
}

.gallery-modal__close,
.gallery-modal__prev,
.gallery-modal__next {
  position: fixed;
  top: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 2;
}

.gallery-modal__close {
  right: 16px;
}

.gallery-modal__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}



.about,
.contact,
.about-page,
.contact-page {
  margin-top: 27px;
  max-width: 680px;
}

.section-text {
  font-size: inherit;
  color: var(--ink);
}

.section-text p {
  margin: 0 0 12px;
}

.working-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 16px 0 24px;
}

.section-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.section-text li {
  margin: 0 0 8px;
  position: relative;
  padding-left: 16px;
}

.section-text li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
}

.about-images {
  margin-top: 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.about-images img {
  width: 80%;
  height: auto;
  display: block;
}

.contact-map {
  margin-top: 24px;
  max-width: 720px;
}

.contact-image {
  margin-top: 24px;
  max-width: 720px;
}

.contact-image img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map iframe {
  width: 100%;
  height: clamp(240px, 40vw, 360px);
  border: 0;
  display: block;
  filter: grayscale(1) contrast(0.9) brightness(1.05);
}

.site-footer {
  padding: var(--spacing);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-top: auto;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .site-title {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    height: auto;
    padding-bottom: 0;
  }

  .side-nav__links {
    grid-auto-flow: column;
    justify-content: start;
    gap: 24px;
  }
}
