@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-55Roman.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-56Italic.otf")
    format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-65Medium.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-66MediumItalic.otf")
    format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-75Bold.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text";
  src: url("fonts/Neue Haas Grotesk Text Family/NeueHaasGrotText-76BoldItalic.otf")
    format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background-color: #f5f2ee;
}

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

body {
  background: #f5f2ee;
  color: #1f1b16;
  letter-spacing: 0.015em;
  line-height: 1.65;
}

.with-margins .site-header,
.with-margins .page,
.with-margins .site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e1dad2;
  padding: 8px 20px 8px 0;
  position: sticky;
  top: 0;
  background: #f5f2ee;
  z-index: 20;
  transition: transform 220ms ease;
  will-change: transform;
}

.site-header--hidden {
  transform: translateY(-110%);
}

.logo {
  width: min(384px, 80vw);
  height: auto;
}

.project-header .header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.project-header .logo {
  width: min(260px, 55vw);
}

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4c433a;
  white-space: nowrap;
}

.menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  width: 24px;
  height: 18px;
  border: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  order: 2;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1f1b16;
  border-radius: 999px;
}

.menu-panel {
  position: static;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  min-width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  order: 1;
}

.menu-toggle:checked ~ .menu-panel {
  display: flex;
  animation: menu-fade-in 200ms ease-out;
}

.menu-panel a {
  text-decoration: none;
  color: #1f1b16;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@keyframes menu-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 32px;
  padding: 0;
}

.gallery-link {
  display: block;
  text-decoration: none;
}

.gallery-link:focus-visible {
  outline: 2px solid #1f1b16;
  outline-offset: 4px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 0 48px;
}

.page-hero {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #7a7066;
  font-weight: 600;
}

.page-section {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  border: 1px solid #e1dad2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fdfbf9;
}

.project-card h2 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
}

.project-meta {
  font-size: 0.85rem;
  color: #7a7066;
}

.project-tags {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  font-size: 0.85rem;
  color: #4c433a;
}

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.post-list li {
  display: grid;
  gap: 4px;
}

.post-list span {
  color: #4c433a;
}

.project-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 24px 0 48px;
}

.project-hero img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.project-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  padding: 0 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-description {
  display: grid;
  gap: 16px;
  max-width: 680px;
}

.project-description h1 {
  font-size: 2rem;
}

.project-meta-details {
  display: grid;
  gap: 24px;
  border-left: 1px solid #e1dad2;
  padding-left: 24px;
  color: #4c433a;
}

.project-meta-details ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.project-gallery {
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.gallery-row {
  display: grid;
  gap: 24px;
}

.gallery-row--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-row--full {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0;
  background: #fdfbf9;
  border: 1px solid #e1dad2;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #4c433a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d6cfc6;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.contact-form button {
  border: none;
  background: #1f1b16;
  color: #fdfbf9;
  padding: 12px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.row {
  display: grid;
  gap: 20px;
}

.row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row.one {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 720px) {
  .row.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-details {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }

  .project-gallery {
    padding: 0;
  }

  .gallery-row--pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-meta-details {
    border-left: none;
    border-top: 1px solid #e1dad2;
    padding-left: 0;
    padding-top: 24px;
  }

  .menu {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    min-width: 200px;
    background: #fdfbf9;
    border: 1px solid #e1dad2;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(31, 27, 22, 0.12);
    z-index: 10;
  }

  .project-header .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-title {
    white-space: normal;
  }
}

.site-footer {
  border-top: 1px solid #e1dad2;
  padding: 16px 0;
  text-align: center;
  font-size: 0.95rem;
  color: #5b5248;
}
