/* Direction C, style: Styled by Laura. Limewash plaster by day, an indigo
   room by lamplight. Gloock for the voice. Samples are lifted and laid on
   the board, softly, one by one. */

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_assets/previews/c/style/fonts/gloock-normal.9389ada8d3.woff2) format("woff2");
}

:root {
  --ground: light-dark(#EBD9CF, #161829);
  --surface: light-dark(#F6ECE6, #20233A);
  --ink: light-dark(#1C2036, #F4E9E2);
  --muted: light-dark(#4C4658, #C4B9B4);
  --accent-text: light-dark(#27346E, #B3C0FF);
  --focus: light-dark(#27346E, #FFA35C);
  --edge: light-dark(#1C2036, #F4E9E2);
  --rule: light-dark(rgb(28 32 54 / .18), rgb(244 233 226 / .18));
  --seal-paper: var(--ground);
  --seal-mark: var(--accent-text);
  --arrival-floor: var(--floor-style);
  --display: "Gloock", "Didot", "Bodoni 72", Georgia, serif;
}

body {
  background: var(--ground);
  color: var(--ink);
}

.top__name {
  font-size: 1.3rem;
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Hero: the words, the room, and the sample board laid over its foot. */
.hero {
  display: grid;
  gap: var(--s5);
  padding-block: var(--s5) var(--s8);
  grid-template-areas:
    "copy"
    "room"
    "board";
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "copy room"
      "board board";
    column-gap: var(--s7);
    align-items: center;
  }
}

.hero__copy {
  grid-area: copy;
  display: grid;
  gap: var(--s4);
  justify-items: start;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 40ch;
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
}

.room {
  grid-area: room;
}

.room__frame {
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  aspect-ratio: 4 / 3.4;
  background: var(--surface);
}

.room__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.room__cap {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* The sample board: swatches and samples laid with a stylist's tilt. */
.board {
  grid-area: board;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2) 0;
  padding: var(--s5) var(--s4);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 40px -30px rgb(28 32 54 / .55);
}

@media (min-width: 960px) {
  .board {
    margin-top: -7rem;
    margin-left: 18%;
    padding: var(--s5) var(--s6);
  }
}

.board__item {
  display: block;
  margin-inline: -0.4rem;
}

.board__item img {
  width: 100%;
  filter: drop-shadow(0 6px 5px rgb(0 0 0 / .2));
}

.board__item--chip-pink { width: 3rem; rotate: -6deg; --d: 0ms; }
.board__item--chip-indigo { width: 3rem; rotate: 4deg; --d: 90ms; }
.board__item--chip-sage { width: 3rem; rotate: 10deg; --d: 180ms; }
.board__item--indigo { width: 6.5rem; rotate: -4deg; --d: 120ms; margin-inline: 0.4rem; }
.board__item--linen { width: 6rem; rotate: 6deg; --d: 240ms; }
.board__item--oak { width: 4.5rem; rotate: -3deg; --d: 330ms; margin-inline: 0.6rem; }
.board__item--tile { width: 4.5rem; rotate: 5deg; --d: 400ms; }
.board__item--tin { width: 4.25rem; --d: 470ms; margin-inline: 0.6rem; }
.board__item--knob { width: 3rem; --d: 540ms; }
.board__item--eucalyptus { width: 4.25rem; rotate: 22deg; --d: 610ms; }

@media (min-width: 1200px) {
  .board__item--chip-pink,
  .board__item--chip-indigo,
  .board__item--chip-sage { width: 3.75rem; }
  .board__item--indigo { width: 8rem; }
  .board__item--linen { width: 7.5rem; }
  .board__item--oak,
  .board__item--tile { width: 5.5rem; }
  .board__item--tin { width: 5rem; }
  .board__item--knob { width: 3.5rem; }
  .board__item--eucalyptus { width: 5rem; }
}

@media (max-width: 599px) {
  .board__item--knob,
  .board__item--tin {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lt-js .board__item {
    animation: lay 1150ms var(--ease-out) calc(var(--d) + 350ms) both;
  }
  .lt-js .room__img {
    animation: room-in 1600ms var(--ease-out) both;
  }
  .lt-js .hero__copy > * {
    animation: drift-up 800ms var(--ease-out) both;
  }
  .lt-js .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .lt-js .hero__copy > :nth-child(3) { animation-delay: 160ms; }
  .lt-js .hero__copy > :nth-child(4) { animation-delay: 240ms; }
  html:not(.lt-ready) .board__item,
  html:not(.lt-ready) .room__img,
  html:not(.lt-ready) .hero__copy > * {
    animation-play-state: paused;
  }
}

@keyframes lay {
  from {
    transform: translateY(-90px) rotate(-14deg) scale(1.18);
  }
  60% {
    transform: translateY(4px) scale(1);
  }
}

@keyframes room-in {
  from {
    transform: scale(1.08);
  }
}

@keyframes drift-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* Prices: a paint card, lightest first. */
.prices {
  padding-block: var(--s8);
}

.prices__head {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.prices__lede {
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.chips {
  display: grid;
  gap: var(--s4);
  margin: 0;
}

@media (min-width: 640px) {
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.chip {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: var(--s2);
  padding: 0 0 var(--s4);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.chip:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 18px 26px -18px rgb(28 32 54 / .5);
}

.chip > :not(.chip__swatch) {
  margin-inline: var(--s4);
}

.chip__swatch {
  height: 5.5rem;
  margin-bottom: var(--s3);
  box-shadow: inset 0 -1px 0 var(--rule);
}

.chip--1 .chip__swatch { background: #EFD5CA; }
.chip--2 .chip__swatch { background: #D9A28C; }
.chip--3 .chip__swatch { background: #93A68E; }
.chip--4 .chip__swatch { background: #A87B4F; }
.chip--5 .chip__swatch { background: #27346E; }

.chip__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
}

.chip__price {
  color: var(--muted);
  font-weight: 600;
}

.price {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.chip__list {
  display: grid;
  gap: var(--s2);
  padding-left: 1.1rem;
  margin-block: var(--s2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.chip__list li::marker {
  color: var(--accent-text);
}

.chip__when {
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-text);
}

/* Morning and evening light */
.light {
  display: grid;
  gap: var(--s6);
  align-items: center;
  padding-block: var(--s7) var(--s8);
}

@media (min-width: 900px) {
  .light {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s8);
  }
}

.light__copy {
  display: grid;
  gap: var(--s4);
  justify-items: start;
}

.light__copy > p {
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.light__switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  padding: var(--s3) var(--s5) var(--s3) var(--s3);
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 1rem/1.2 var(--body);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}

.light__switch:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.light__dial {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #F2C46B 50%, #27346E 50%);
  border: 1.5px solid var(--edge);
  transition: transform 400ms var(--ease-out);
}

html[data-theme="dark"] .light__dial {
  transform: rotate(180deg);
}

.light__patches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}

.patch {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  box-shadow: 0 14px 22px -16px rgb(0 0 0 / .5);
}

.patch--a { background: light-dark(#C8CFE0, #5B6280); }
.patch--b { background: light-dark(#E6C3B4, #8F6B5E); }
.patch--c { background: light-dark(#B9C7B4, #5E6B58); }

.patch--b { translate: 0 1.5rem; }

/* Booking */
.booking {
  padding-block: var(--s7) var(--s8);
  border-top: 1px solid var(--rule);
}

.step__n {
  border-color: var(--accent-text);
  font-family: var(--display);
  font-weight: 400;
}

.step__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
}

.family__title {
  font-family: var(--display);
  font-weight: 400;
}

.foot {
  border-top: 1px solid var(--rule);
}
