:root {
  --bg: #fcfaf7;
  --surface: #ffffff;
  --surface-soft: #faf7f3;
  --text: #1e1a17;
  --muted: #7c7269;
  --line: rgba(30, 26, 23, 0.1);
  --accent: #b09178;
  --shadow: 0 20px 50px rgba(31, 24, 19, 0.05);
  --container: min(1380px, calc(100vw - 56px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: 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;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 8px 0 28px;
}

.brand,
.site-nav a,
.eyebrow,
.contact-meta span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  font-size: 0.84rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition:
    transform 220ms ease,
    opacity 180ms ease;
  transform-origin: center;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  justify-content: flex-end;
}

.hero-section {
  display: grid;
  gap: 34px;
  justify-items: center;
  width: 100%;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #ece4db;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active .hero-image {
  animation: heroZoom 7.2s ease forwards;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.hero-arrow:hover {
  color: rgba(255, 255, 255, 1);
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

.hero-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hero-index {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  color: var(--text);
}

.hero-index span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0 0;
  width: 100%;
  max-width: 620px;
  scroll-margin-top: 24px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 0.96;
}

h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
}

.hero-text,
.about-copy p,
.contact-meta p,
.form-note {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 58ch;
}

.hero-copy .hero-text {
  color: var(--text);
}

.hero-description {
  display: grid;
  gap: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-actions-top {
  margin-top: 2px;
}

.button-wide {
  width: min(420px, 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.button.is-hidden {
  display: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.button-light {
  border-color: var(--line);
  color: var(--text);
}

.hero-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 26, 23, 0.18);
  padding: 0;
}

.hero-dot.is-active {
  background: var(--text);
}

.about-section {
  margin-top: 28px;
}

.contact-section {
  margin-top: 68px;
}

.about-copy {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  width: min(960px, 100%);
  margin: 0 auto;
}

.about-copy p {
  max-width: 56ch;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image:
    linear-gradient(180deg, rgba(20, 16, 13, 0.06), rgba(20, 16, 13, 0.12)),
    url("./images/about-photo.jpg");
  background-size: cover;
  background-position: center;
  background-color: #e8ddd3;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.about-photo-one {
  background-image:
    linear-gradient(180deg, rgba(20, 16, 13, 0.06), rgba(20, 16, 13, 0.12)),
    url("./images/about-photo-01.jpg");
}

.about-photo-two {
  background-image:
    linear-gradient(180deg, rgba(20, 16, 13, 0.06), rgba(20, 16, 13, 0.12)),
    url("./images/about-photo-02.jpg");
}

.about-photo-three {
  background-image:
    linear-gradient(180deg, rgba(20, 16, 13, 0.06), rgba(20, 16, 13, 0.12)),
    url("./images/about-photo-03.jpg");
}

.about-description {
  display: grid;
  gap: 12px;
  max-width: 58ch;
}

.about-description .hero-text {
  color: var(--text);
}

.about-section .hero-actions {
  margin-top: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: min(620px, 100%);
  margin: 0 auto;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-form-wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.field-error {
  min-height: 1.2em;
  color: #9f3a2d;
  font-size: 0.76rem;
  letter-spacing: normal;
  text-transform: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 14px 0;
  border-radius: 0;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form input[aria-invalid="true"] {
  border-bottom-color: #9f3a2d;
}

.form-note {
  font-size: 0.92rem;
}

.form-success {
  display: none;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.form-success.is-visible {
  display: flex;
}

.contact-meta {
  display: grid;
  justify-items: center;
  text-align: center;
  align-content: start;
  gap: 20px;
}

.contact-meta span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-meta a,
.contact-meta p {
  display: block;
  margin-top: 10px;
}

.site-footer {
  margin-top: 96px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(620px, 100%);
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

  .hero-stage {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 16px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 14px 16px;
    padding: 4px 0 20px;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 32px;
    min-height: 32px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    z-index: 30;
    display: flex;
    min-width: 168px;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    background: rgba(252, 250, 247, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 180ms ease,
      transform 240ms ease,
      visibility 0s linear 240ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .site-nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.7rem);
  }

  h2 {
    max-width: none;
  }

  .hero-stage {
    width: min(calc(100vw - 24px), 100%);
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }

  .hero-arrow {
    min-width: 24px;
    min-height: 24px;
    font-size: 1.65rem;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }

  .hero-dots {
    gap: 6px;
    max-width: 320px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
