/* Salon Mira: black, porcelain and rose metal. Bodoni Moda for display, Mona Sans for reading. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../../fonts/bodoni-moda.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../../fonts/mona-sans.woff") format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #f2ede6;
  --paper: #fbf8f4;
  --paper-2: #e7e0d6;
  --ink: #0e0d0c;
  --rose: #cf977f;
  --rose-soft: #ecd3c7;
  --muted: #675e56;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text-font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --today-bg: var(--ink);
  --today-ink: var(--bg);
  --focus: var(--ink);
  color-scheme: light;
}

.night {
  background: var(--ink);
  color: var(--bg);
  --focus: var(--rose);
  --status-bg: rgba(242, 237, 230, 0.1);
  --status-ink: var(--bg);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, color 180ms ease;
}

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

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--rose {
  background: var(--rose);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

.btn--line {
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 22px;
}

.logo {
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 26px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--rose), var(--rose)) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu a:hover {
  background-size: 100% 1.5px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 4vw, 56px) clamp(64px, 9vw, 128px);
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(3.25rem, 1.2rem + 6vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  color: rgba(242, 237, 230, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.mirror {
  grid-area: 1 / 1;
  width: 72%;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  background: var(--rose-soft);
}

.hero__art img {
  grid-area: 1 / 1;
  width: 112%;
  max-width: 112%;
  margin-top: 30%;
  rotate: -8deg;
}

/* prices */
.prices {
  padding-block: clamp(64px, 9vw, 128px);
}

.prices .section-title {
  margin-bottom: clamp(28px, 4vw, 56px);
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.prices h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(14, 13, 12, 0.16);
}

.price {
  flex: none;
  font-weight: 600;
}

/* booking */
.book {
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--paper);
}

.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

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

.book__intro p {
  max-width: 36ch;
  color: var(--muted);
}

.booking {
  display: grid;
  gap: 28px;
}

.booking fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.booking legend {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--paper-2);
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.chip input:hover + span {
  background: var(--rose-soft);
}

.chip input:checked + span {
  background: var(--ink);
  color: var(--bg);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

.chip input:disabled {
  cursor: not-allowed;
}

.chip input:disabled + span {
  background: transparent;
  color: #9a9088;
  text-decoration: line-through;
  box-shadow: inset 0 0 0 1px #d6cdc2;
}

.booking__hint {
  color: var(--muted);
}

.booking__result:empty {
  display: none;
}

.booking__result {
  padding: 16px 18px;
  background: var(--rose-soft);
  font-weight: 600;
}

.booking__result[data-state="error"] {
  background: #f6d6d6;
}

/* visit */
.visit {
  padding-block: clamp(64px, 9vw, 128px);
}

.visit .section-title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: start;
}

.hours {
  font-size: 1.125rem;
}

.hours div {
  border-radius: 0;
}

.address {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink);
  color: var(--bg);
  --focus: var(--rose);
}

.address__lines {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
}

.address__transit {
  color: rgba(242, 237, 230, 0.78);
}

.address__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* footer */
.foot {
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
}

.foot__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}

.foot .logo {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero,
  .book__grid,
  .visit__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    order: -1;
    width: min(92%, 520px);
    justify-self: center;
  }

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

@media (max-width: 560px) {
  .menu {
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .top .status {
    order: 2;
  }

  .logo {
    width: 100%;
  }
}
