:root {
  color-scheme: light;
  --ivory: #f7f3ee;
  --paper: #fffdfa;
  --rose: #d6b2a9;
  --wine: #77424a;
  --wine-dark: #5a3037;
  --ink: #2d2928;
  --muted: #716966;
  --beige: #e9ded6;
  --line: #dfd5ce;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hero-image,
.service-image-wrap img,
.studio-photo img,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0.875rem;
  line-height: 1.4;
  object-fit: cover;
}

a {
  color: inherit;
}

a:focus-visible,
main:focus-visible,
section:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 4px;
}

main:focus-visible,
section:focus-visible {
  outline-offset: -3px;
}

.contact:focus-visible,
.contact a:focus-visible {
  outline-color: var(--ivory);
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--ivory);
  outline-offset: -4px;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.3%;
  border-bottom: 1px solid rgba(119, 66, 74, 0.12);
  background: var(--ivory);
}

.header-top {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  line-height: 1;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: 0.12em;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.23em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
}

.main-nav a,
.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--wine);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 23px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--wine-dark);
}

.button-small {
  min-height: 44px;
  margin-left: 32px;
  padding: 0 17px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 675px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  padding-top: 48px;
  padding-bottom: 83px;
}

.section-wrap {
  width: min(1120px, 85.4%);
  margin-right: auto;
  margin-left: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 16px 0 15px 3.5%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--wine);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow-line {
  display: inline-block;
  flex: 0 0 auto;
  width: 29px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.25rem, 6vw, 4.8125rem);
  line-height: 1.02;
}

h1 em,
h2 em {
  color: var(--wine);
  font-weight: inherit;
}

.hero-description {
  max-width: 370px;
  margin: 24px 0 27px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 535px;
  padding: 0 38px 31px 0;
}

.hero-visual::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 73%;
  height: 79%;
  border: 1px solid var(--rose);
  content: "";
}

.hero-image {
  position: relative;
  background: var(--beige);
  object-position: center 38%;
}

.hero-image-caption {
  position: absolute;
  right: 38px;
  bottom: 31px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(45, 41, 40, 0.73);
  color: white;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.hero-stamp {
  position: absolute;
  top: 24px;
  right: 7px;
  display: grid;
  width: 53px;
  height: 53px;
  place-content: center;
  border: 1px solid var(--wine);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--wine);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 0.9;
  text-align: center;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 53px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.4;
}

.note-mark {
  color: var(--wine);
  font-size: 27px;
  font-style: normal;
}

.scroll-cue {
  position: absolute;
  bottom: 31px;
  left: 3.5%;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.scroll-cue span {
  color: var(--wine);
  font-size: 18px;
}

.section-space {
  padding-top: 112px;
  padding-bottom: 112px;
}

.services {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(2.5625rem, 4.5vw, 3.625rem);
  line-height: 1.14;
}

.section-intro {
  max-width: 330px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}

.service-card {
  min-width: 0;
}

.service-image-wrap {
  position: relative;
  height: 295px;
  overflow: hidden;
  background: var(--beige);
}

.service-image-wrap img,
.gallery-item img {
  transition: transform 450ms ease;
}

.service-card:hover .service-image-wrap img,
.gallery-item:hover img {
  transform: scale(1.035);
}

.service-number {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--wine);
  font-size: 0.6875rem;
  font-weight: 600;
}

.service-text {
  padding: 18px 2px 0;
}

.service-text h3 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}

.service-text p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding-right: max(7.3%, calc((100% - 1120px) / 2));
  padding-left: max(7.3%, calc((100% - 1120px) / 2));
  background: var(--beige);
}

.studio-photo {
  position: relative;
  height: 520px;
  padding: 0 22px 22px 0;
}

.studio-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 65%;
  height: 55%;
  border: 1px solid var(--wine);
  content: "";
}

.studio-photo img {
  position: relative;
  z-index: 1;
  background: var(--line);
}

.photo-label {
  position: absolute;
  z-index: 2;
  bottom: 41px;
  left: 18px;
  max-width: calc(100% - 50px);
  padding: 8px 12px;
  background: var(--paper);
  color: var(--wine);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.studio-copy {
  position: relative;
  padding: 10px 0 47px;
}

.studio-copy .eyebrow {
  margin-bottom: 21px;
}

.studio-copy h2 {
  margin-bottom: 24px;
}

.studio-copy > p:not(.eyebrow) {
  color: #625a56;
  font-size: 0.9375rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.studio-signature {
  position: absolute;
  right: 0;
  bottom: -3px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.studio-signature span {
  margin: 0 7px;
  color: var(--wine);
}

.gallery-heading {
  margin-bottom: 43px;
  text-align: center;
}

.gallery-heading .eyebrow {
  justify-content: center;
}

.gallery-heading h2 {
  margin-bottom: 13px;
}

.gallery-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 245px 245px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--beige);
}

.gallery-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 106px;
  background: linear-gradient(transparent, rgb(28 22 21 / 68%) 48px);
  content: "";
}

.gallery-item figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 13px;
  left: 16px;
  color: white;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.25;
}

.gallery-item-tall {
  grid-column: 4;
  grid-row: 1 / 3;
}

.gallery-item-short {
  height: 100%;
}

.gallery-item-wide {
  grid-column: 1 / 4;
  grid-row: 2;
}

.contact {
  background: var(--wine);
  color: white;
}

.contact-inner {
  position: relative;
  display: grid;
  width: min(920px, 80%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 100px;
  margin: 0 auto;
}

.eyebrow-light {
  color: #f0d7d0;
}

.contact h2 {
  margin-bottom: 23px;
}

.contact h2 em {
  color: #f0d7d0;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 365px;
  margin-bottom: 27px;
  color: #f0e5e1;
  font-size: 0.9375rem;
}

.button-light {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--wine);
}

.button-light:hover {
  background: white;
  color: var(--wine-dark);
}

.contact-details {
  align-self: center;
  margin: 0;
  padding: 16px 0 25px 31px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-detail {
  margin-bottom: 26px;
}

.contact-detail:last-of-type {
  margin-bottom: 0;
}

.detail-label {
  color: #f0d7d0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.contact-detail dd {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.5;
}

.contact-detail:last-of-type dd {
  color: #ead9d5;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.contact-flower {
  position: absolute;
  right: 3px;
  top: calc(100% + 8px);
  color: #e1b8b2;
  font-size: 29px;
  line-height: 1;
}

.site-footer {
  padding: 36px 7.3% 18px;
  background: var(--ivory);
}

.footer-main {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 27px;
}

.footer-brand .brand-name {
  font-size: 25px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-nav a {
  color: var(--muted);
}

.back-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35em;
  color: var(--wine);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-note p {
  margin: 0;
  text-align: right;
}

@media (min-width: 1440px) {
  .hero {
    min-height: 740px;
  }

  .hero-visual {
    height: 585px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }

  .main-nav {
    gap: 0 clamp(8px, 2vw, 20px);
  }

  .button-small {
    margin-left: 20px;
  }

  .section-wrap {
    width: 90%;
  }

  .hero {
    min-height: 590px;
  }

  .hero-visual {
    height: 450px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .service-image-wrap {
    height: 340px;
  }

  .studio {
    gap: 48px;
    padding-right: 5%;
    padding-left: 5%;
  }

  .studio-photo {
    height: 450px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 215px 215px 200px;
  }

  .gallery-item-wide {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .gallery-item-tall {
    grid-column: auto;
    grid-row: span 1;
  }

  .contact-inner {
    width: 88%;
    gap: 55px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-header {
    display: block;
    padding: 16px 5% 12px;
  }

  .header-top {
    justify-content: space-between;
  }

  .brand-name {
    font-size: 27px;
  }

  .button-small {
    margin-left: 10px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 0 0.5rem;
    margin-top: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    font-size: 0.8125rem;
  }

  .hero {
    min-height: unset;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 52px;
    padding-bottom: 78px;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 17px;
  }

  h1 {
    font-size: clamp(3.1875rem, 13vw, 4.25rem);
  }

  .hero-description {
    max-width: 390px;
    margin: 17px 0 21px;
  }

  .button {
    padding-inline: 0.875rem;
  }

  .hero-note {
    display: none;
  }

  .hero-visual {
    height: min(112vw, 430px);
    padding: 0 23px 20px 0;
  }

  .hero-image-caption {
    right: 23px;
    bottom: 20px;
    padding: 10px 11px;
  }

  .hero-stamp {
    top: 15px;
    right: 3px;
    width: 46px;
    height: 46px;
    font-size: 11px;
  }

  .scroll-cue {
    bottom: 19px;
    left: 0;
  }

  .section-space {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .section-heading {
    display: block;
    margin-bottom: 29px;
  }

  h2 {
    font-size: clamp(2.4375rem, 10vw, 3.125rem);
  }

  .section-intro {
    max-width: 420px;
    margin-top: 16px;
  }

  .service-grid {
    gap: 26px 13px;
  }

  .service-image-wrap {
    height: clamp(175px, 58vw, 270px);
  }

  .service-number {
    bottom: 8px;
    left: 8px;
    width: 27px;
    height: 27px;
  }

  .service-text {
    padding-top: 12px;
  }

  .service-text h3 {
    margin-bottom: 5px;
    font-size: clamp(1.25rem, 4.6vw, 1.375rem);
    line-height: 1.3;
  }

  .studio {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .studio-photo {
    height: min(93vw, 400px);
    padding: 0 16px 16px 0;
  }

  .photo-label {
    bottom: 30px;
    left: 11px;
  }

  .studio-copy {
    padding-bottom: 48px;
  }

  .studio-copy h2 {
    margin-bottom: 18px;
  }

  .gallery-heading {
    margin-bottom: 27px;
  }

  .gallery-grid {
    grid-template-rows: 230px 175px 220px;
    gap: 10px;
  }

  .gallery-item figcaption {
    right: 10px;
    bottom: 8px;
    left: 10px;
    font-size: 1.0625rem;
  }

  .contact-inner {
    width: 90%;
    grid-template-columns: minmax(0, 1fr);
    gap: 41px;
  }

  .contact-details {
    padding: 3px 0 4px 20px;
  }

  .contact-detail {
    margin-bottom: 20px;
  }

  .site-footer {
    padding: 27px 5% 16px;
  }

  .footer-main {
    display: grid;
    gap: 8px;
    padding-bottom: 20px;
  }

  .footer-brand {
    justify-self: start;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 0 1rem;
  }

  .back-top {
    justify-self: start;
  }

  .footer-note {
    display: block;
    line-height: 1.7;
  }

  .footer-note p {
    margin-top: 5px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
