@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #f8f3eb;
  --paper-tinted: #f0e7da;
  --ink: #362924;
  --muted: #6b544c;
  --wine: #622738;
  --wine-dark: #461d29;
  --rule: #d6c6b9;
  --on-wine-muted: #ead3d4;
  --on-wine-rule: #a77c84;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(22px, 5.1vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.45 var(--sans);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

a {
  color: inherit;
}

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

section[id] {
  scroll-margin-block-start: 20px;
}

.wrap {
  width: min(1280px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--wine);
  color: var(--paper);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-top: 3px solid var(--wine);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 76px;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}

.wordmark {
  color: var(--wine);
  font: 600 48px/.92 var(--serif);
  letter-spacing: -.067em;
  text-decoration: none;
  padding-block-end: .07em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.9vw, 42px);
}

.site-nav a,
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .5em;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: .23em;
}

.site-nav .nav-booking {
  color: var(--wine);
  border: 1px solid var(--rule);
  padding-inline: 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 42px 44px;
}

.hero-copy {
  padding-bottom: 27px;
}

.studio-type {
  color: var(--wine);
  font-size: 16px;
  font-weight: 600;
}

.hero h1,
.section-title,
.service-card h3,
.draft h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.hero h1 {
  margin-block: 17px 24px;
  color: var(--wine);
  font-size: clamp(55px, 6.95vw, 103px);
  line-height: .84;
  letter-spacing: -.056em;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  margin-block-start: .07em;
}

.hero-description {
  max-width: 35ch;
  margin-block-end: 29px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.36;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: fit-content;
  min-height: 51px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--wine);
  color: var(--paper);
  font: 600 16px/1.25 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease;
}

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

.button-arrow {
  font-size: 21px;
  line-height: 1;
}

.hero-photo img,
.work img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #e4d3c1;
}

.hero-photo img {
  aspect-ratio: 1.4;
  object-position: 50% 52%;
}

.hero-photo figcaption,
.work figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.hero-photo figcaption {
  text-align: right;
}

.section-title {
  color: var(--wine);
  font-size: clamp(49px, 5.15vw, 74px);
  line-height: .92;
  letter-spacing: -.045em;
}

.services {
  display: grid;
  grid-template-columns: minmax(150px, .56fr) minmax(0, 1.44fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 49px 72px;
  border-top: 1px solid var(--rule);
}

.service-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.service-list li {
  border-bottom: 1px solid var(--rule);
}

.service-card {
  display: grid;
  grid-template:
    "name duration choose" auto
    "detail duration choose" auto
    / minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 3px clamp(16px, 3.5vw, 50px);
  padding-block: 15px 17px;
}

.service-card h3 {
  grid-area: name;
  font-size: clamp(29px, 2.65vw, 38px);
  line-height: 1;
  letter-spacing: -.025em;
}

.service-card p {
  grid-area: detail;
  color: var(--muted);
  font-size: 16px;
}

.service-card time {
  grid-area: duration;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.service-card a {
  grid-area: choose;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  color: var(--wine);
  font-size: 16px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.service-card a:hover {
  text-decoration-thickness: 2px;
}

.gallery {
  padding-block: 62px 70px;
  border-top: 1px solid var(--rule);
  background: var(--paper-tinted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.17fr 1fr 1fr;
  align-items: end;
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: 30px;
}

.work img {
  aspect-ratio: 1.13;
}

.work-french img {
  object-position: 50% 77%;
}

.work-cocoa img {
  object-position: 50% 48%;
}

.work figcaption {
  margin-top: 9px;
  border-top: 1px solid var(--rule);
}

.booking {
  padding-block: clamp(55px, 6.2vw, 90px);
  background: var(--wine-dark);
  color: var(--paper);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 9.4vw, 135px);
}

.booking .section-title {
  color: inherit;
}

.booking :focus-visible {
  outline-color: var(--paper);
}

.booking-intro p {
  max-width: 30ch;
  margin-top: 17px;
  color: var(--on-wine-muted);
  font-size: 18px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 16px;
  font-weight: 600;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 8px 12px;
  border: 1px solid var(--on-wine-rule);
  border-radius: 0;
  background: #ffffff08;
  color: var(--paper);
  color-scheme: dark;
  font: 400 16px/1.25 var(--sans);
}

.field select:invalid {
  color: var(--on-wine-muted);
}

.field option {
  background: var(--wine-dark);
  color: var(--paper);
}

.button-light {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: var(--paper);
  color: var(--wine-dark);
}

.button-light:hover {
  background: #ecd8cb;
}

.draft {
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--on-wine-rule);
}

.draft h3 {
  font-size: 35px;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.draft dl {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: 12px 18px;
  margin: 12px 0 0;
}

.draft dt {
  color: var(--on-wine-muted);
  font-size: 15px;
}

.draft dd {
  margin: 1px 0 0;
}

.footer-inner {
  min-height: 97px;
  color: var(--wine);
}

.footer-wordmark {
  font-size: 40px;
}

@media (max-width: 930px) {
  .hero h1 {
    font-size: clamp(53px, 6.8vw, 70px);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 63px;
  }

  .wordmark {
    font-size: 41px;
  }

  .site-nav {
    gap: clamp(12px, 4vw, 24px);
  }

  .site-nav a {
    font-size: 15px;
  }

  .site-nav .nav-booking {
    border: 0;
    padding-inline: 0;
  }

  .hero,
  .services,
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 29px;
    padding-block: 34px 35px;
  }

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

  .hero h1 {
    margin-block: 14px 17px;
    font-size: clamp(46px, 15.5vw, 79px);
  }

  .hero-description {
    margin-block-end: 21px;
  }

  .hero-photo img {
    aspect-ratio: 1.18;
  }

  .hero-photo figcaption,
  .work figcaption {
    font-size: 14px;
  }

  .services {
    gap: 23px;
    padding-block: 36px 47px;
  }

  .gallery {
    padding-block: 44px 50px;
  }

  .gallery-grid {
    margin-top: 25px;
  }

  .booking-grid {
    gap: 25px;
  }

  .booking-intro p {
    margin-top: 13px;
  }

  .footer-inner {
    min-height: 77px;
  }

  .footer-wordmark {
    font-size: 34px;
  }
}

@media (max-width: 510px) {
  .service-card {
    grid-template:
      "name duration" auto
      "detail detail" auto
      "choose choose" auto
      / minmax(0, 1fr) auto;
    padding-block: 15px 5px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    row-gap: 21px;
  }

  .work-milky {
    grid-column: 1 / -1;
  }

  .work-milky img {
    aspect-ratio: 1.38;
  }

  .work-french img,
  .work-cocoa img {
    aspect-ratio: .94;
  }

  .draft dl {
    grid-template-columns: 1fr 1fr;
  }

  .draft dl div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 355px) {
  .booking-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
