:root {
  --paper: #f6f1e9;
  --paper-deep: #efe6da;
  --ink: #221d19;
  --muted: #7b7066;
  --line: #dbd0c2;
  --accent: #a24a38;
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Golos Text", system-ui, -apple-system, sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.brand-mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav-link {
  position: relative;
  padding-block: 4px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.header-phone:hover {
  color: var(--ink);
}

.header-cta {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.header-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 10vw, 128px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  animation: rise-in 0.9s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.kicker-line {
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 10.5vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.hero-line-1,
.hero-line-2 {
  display: block;
  animation: rise-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-line-2 {
  padding-left: 0.72em;
  font-style: italic;
  animation-delay: 0.12s;
}

.hero-lead {
  max-width: 46ch;
  margin: clamp(26px, 3.5vw, 38px) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
  animation: rise-in 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: clamp(28px, 4vw, 40px);
  animation: rise-in 1s 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.quiet-link {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.25s ease;
}

.quiet-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.quiet-link:hover {
  color: var(--ink);
}

.hero-mark {
  max-width: 360px;
  width: 100%;
  justify-self: end;
  color: var(--ink);
  animation: mark-in 1.4s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.decay-heart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.heart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.9s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.decay-dots {
  animation: dots-in 1.6s 0.8s ease both;
}

.decay-dots circle {
  animation: dot-drift ease-in-out infinite alternate;
}

/* Sections */

.section {
  padding-block: clamp(60px, 8vw, 104px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(34px, 4.5vw, 54px);
}

.section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
}

h2 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.012em;
}

.section-note {
  max-width: 34ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Services */

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

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px 32px;
  margin-inline: -14px;
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.service-main h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
  transition: color 0.25s ease;
}

.service-main p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.service-meta {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 15px;
  white-space: nowrap;
}

.service-meta .price {
  font-variant-numeric: tabular-nums;
}

.service-meta .time {
  min-width: 78px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .service:hover {
    background: var(--paper-deep);
  }

  .service:hover h3 {
    color: var(--accent);
  }
}

.services-note {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Palette */

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2vw, 26px);
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.swatch-nail {
  width: 100%;
  aspect-ratio: 4 / 7;
  border-radius: 50% 50% 14px 14px / 34% 34% 8px 8px;
  background:
    radial-gradient(120% 55% at 30% 6%, rgba(255, 255, 255, 0.35), transparent 62%),
    var(--shade);
  box-shadow:
    inset 0 0 0 1px rgba(34, 29, 25, 0.09),
    inset 0 -22px 34px rgba(34, 29, 25, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s ease;
}

.swatch-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.swatch-name {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.25;
}

.swatch-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (hover: hover) {
  .swatch-nail:hover {
    transform: translateY(-8px);
    box-shadow:
      inset 0 0 0 1px rgba(34, 29, 25, 0.09),
      inset 0 -22px 34px rgba(34, 29, 25, 0.07),
      0 18px 28px -18px rgba(34, 29, 25, 0.45);
  }
}

/* Studio */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.studio-text h2 {
  margin-bottom: clamp(24px, 3vw, 34px);
}

.studio-text p:not(.section-label) {
  max-width: 52ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.studio-facts {
  display: grid;
  gap: 26px;
  margin: 0;
  padding-top: 6px;
}

.studio-facts > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.studio-facts dt {
  color: var(--muted);
  font-size: 13.5px;
}

.studio-facts dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.studio-facts a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.studio-facts a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Quote */

.quote {
  padding-block: clamp(52px, 7vw, 88px);
}

.quote-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 60px);
  padding-top: clamp(36px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

.quote-half {
  color: var(--accent);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(76px, 11vw, 148px);
  line-height: 0.72;
  font-weight: 400;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  max-width: 22ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.3vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Booking */

.booking {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(60px, 8vw, 104px);
}

.booking-intro h2 {
  margin: 14px 0 clamp(22px, 3vw, 30px);
}

.booking-intro p:not(.section-label) {
  max-width: 42ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.booking-intro p a {
  border-bottom: 1px solid #b9ab9b;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.booking-intro p a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.booking-phone {
  margin-top: 26px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--muted);
}

.booking-phone a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.booking-phone a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.booking-form {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 470px;
  justify-self: end;
  align-content: start;
}

.booking-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #c3b5a5;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.25s ease;
}

.booking-form input::placeholder {
  color: #a99b8b;
}

.booking-form select {
  padding-right: 26px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%237b7066' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--ink);
}

.booking-form .btn {
  justify-self: start;
  margin-top: 6px;
}

.form-note {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.form-done {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  align-content: start;
  padding-top: 8px;
}

.form-done:not([hidden]) {
  animation: rise-in 0.5s ease both;
}

.form-done-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1;
}

.form-done p:not(.form-done-title) {
  max-width: 40ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  padding-block: 42px 34px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
}

/* Motion */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dots-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dot-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(var(--dx, 0), var(--dy, 0));
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: clamp(56px, 9vw, 88px);
  }

  .hero-mark {
    justify-self: end;
    width: min(46vw, 230px);
    margin-top: -8px;
  }

  .studio,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-form,
  .form-done {
    justify-self: start;
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }

  .header-side {
    margin-left: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-note {
    max-width: 46ch;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 66px;
    gap: 16px;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-line-2 {
    padding-left: 0.5em;
  }

  .hero-mark {
    width: 180px;
    margin-top: 4px;
  }

  .hero-actions .btn {
    padding: 13px 24px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-inline: -10px;
    padding: 18px 10px;
  }

  .service-meta {
    justify-content: space-between;
    gap: 16px;
  }

  .service-meta .time {
    min-width: 0;
  }

  .swatches {
    grid-auto-flow: column;
    grid-auto-columns: 40vw;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .swatch {
    scroll-snap-align: start;
  }

  .swatch-note {
    font-size: 12px;
  }

  .studio-facts > div {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .quote-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quote-half {
    line-height: 0.6;
    font-size: 70px;
  }

  .quote blockquote p {
    max-width: none;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .heart-line {
    stroke-dashoffset: 0;
  }

  .decay-dots circle {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
