:root {
  --ink: #171713;
  --paper: #f1eee6;
  --lime: #dce275;
  --line: #c9c6bd;
  --wood: #715b39;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

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

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

button {
  cursor: pointer;
}

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

[id] {
  scroll-margin-top: 100px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.2s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 3.5%;
  border-bottom: 1px solid var(--ink);
  background: rgb(241 238 230 / 94%);
  backdrop-filter: blur(10px);
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.09em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav nav a {
  font-size: 13px;
}

.book-link {
  border-bottom: 1px solid var(--ink);
}

.hero {
  display: grid;
  min-height: 630px;
  grid-template-columns: 1.55fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.hero-photo {
  min-height: 630px;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8% 11% 9%;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.booking h2 {
  margin: 0 0 28px;
  font-size: clamp(45px, 6.1vw, 89px);
  font-weight: 400;
  line-height: 0.89;
  letter-spacing: -0.075em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 270px;
  margin: 0 0 38px;
  font-size: 18px;
}

.button {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  background: var(--lime);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button:disabled:hover {
  background: var(--lime);
  color: var(--ink);
}

.button i {
  font-size: 18px;
  font-style: normal;
}

.image-slot {
  position: relative;
  overflow: hidden;
  background-color: #705d41;
  background-image:
    linear-gradient(125deg, rgb(23 23 19 / 8%), rgb(23 23 19 / 40%)),
    radial-gradient(ellipse at 67% 35%, #e1b75f 0 3%, transparent 3.5%),
    linear-gradient(90deg, #332b21 0 20%, #7c643e 20% 23%, #a48047 23% 57%, #604e34 57% 59%, #887047 59% 100%);
  background-position: center;
  background-size: cover;
}

.hero-image {
  --hero-image: url("assets/forma-01-desk-daylight.webp");
  background-image:
    var(--hero-image),
    linear-gradient(125deg, rgb(23 23 19 / 8%), rgb(23 23 19 / 40%)),
    radial-gradient(ellipse at 67% 35%, #e1b75f 0 3%, transparent 3.5%),
    linear-gradient(90deg, #332b21 0 20%, #7c643e 20% 23%, #a48047 23% 57%, #604e34 57% 59%, #887047 59% 100%);
  background-position: 50% 62%;
}

.image-slot::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgb(23 23 19 / 35%), transparent);
  content: "";
  opacity: 1;
}

.intro {
  padding: 145px 18% 125px;
  border-bottom: 1px solid var(--ink);
}

.intro h2 {
  max-width: 850px;
}

.lede {
  max-width: 470px;
  margin: 45px 0 0;
  font-size: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tile {
  height: 470px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.tile-copy {
  display: flex;
  min-height: 470px;
  justify-content: flex-end;
  padding: 17%;
  flex-direction: column;
  border-bottom: 1px solid var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.lounge {
  --lounge-image: url("assets/forma-02-lounge.webp");
  background-image:
    var(--lounge-image),
    linear-gradient(145deg, transparent 50%, rgb(17 17 13 / 55%)),
    radial-gradient(ellipse at 35% 68%, #3c5e47 0 16%, transparent 16.5%),
    linear-gradient(90deg, #594530 0 30%, #8b6d42 30% 33%, #6f593a 33%);
  background-position: 50% 64%;
}

.sound {
  --sound-image: url("assets/forma-03-listening-room.webp");
  background-image:
    var(--sound-image),
    linear-gradient(135deg, transparent, #2d2a21),
    radial-gradient(circle at 36% 63%, #171713 0 9%, #9a8155 9.5% 11%, transparent 11.5%),
    radial-gradient(circle at 69% 64%, #171713 0 9%, #9a8155 9.5% 11%, transparent 11.5%),
    linear-gradient(90deg, #6b5437, #a8864d);
  background-position: 50% 70%;
}

.wall {
  --wall-image: url("assets/forma-04-wood-panel-study.webp");
  background-image:
    var(--wall-image),
    linear-gradient(90deg, #3e3225 0 20%, #7e633c 20% 22%, #a7834a 22% 48%, #715a38 48% 50%, #967643 50% 100%);
  background-position: 50% 60%;
}

.details {
  padding: 120px 6% 100px;
}

.facts {
  display: grid;
  margin: 45px 0 95px;
  grid-template-columns: repeat(4, 1fr);
}

.facts div {
  display: flex;
  padding-left: 15px;
  flex-direction: column;
  border-left: 1px solid var(--ink);
}

.facts b {
  font-size: clamp(42px, 5vw, 75px);
  font-weight: 400;
  letter-spacing: -0.08em;
}

.facts span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.columns {
  display: grid;
  max-width: 850px;
  gap: 10%;
  grid-template-columns: 1.5fr 1fr;
  font-size: 19px;
  line-height: 1.25;
}

.columns p {
  margin: 0;
}

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

.columns li {
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}

.policy {
  padding: 90px 18%;
  background: var(--ink);
  color: var(--paper);
}

.policy > p:last-child {
  max-width: 690px;
  font-size: 24px;
  line-height: 1.16;
}

.booking {
  display: grid;
  gap: 10%;
  padding: 125px 11%;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.booking > div p:not(.eyebrow) {
  max-width: 285px;
  font-size: 17px;
}

.booking-disclaimer {
  margin-top: 26px;
  color: #504f49;
  font-size: 14px !important;
  line-height: 1.45;
}

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

.booking label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-detail {
  color: #5b5952;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.booking input,
.booking select,
.booking textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 10px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline-offset: 1px;
  background: transparent;
  color: var(--ink);
  font: 16px Helvetica, Arial, sans-serif;
}

.booking textarea {
  min-height: 89px;
  resize: vertical;
}

.booking .button {
  margin-top: 13px;
}

.form-note {
  min-height: 1.35em;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.form-note.is-error {
  color: #9f1d1d;
}

.form-note.is-success {
  color: #2c5725;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 3.5%;
  font-size: 11px;
  letter-spacing: 0.08em;
}

footer address {
  font-style: normal;
}

@media (max-width: 768px) {
  .nav {
    height: 67px;
  }

  .nav nav {
    gap: 0;
  }

  .nav nav a:not(.book-link) {
    display: none;
  }

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

  .hero {
    min-height: 0;
  }

  .hero-photo {
    min-height: 455px;
  }

  .hero-image {
    --hero-image: url("assets/forma-01-desk-daylight-mobile.webp");
    background-position: 50% 52%;
  }

  .hero-copy {
    padding: 70px 7%;
  }

  .intro {
    padding: 92px 7%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .tile {
    height: 380px;
    border-right: 0;
  }

  .lounge {
    --lounge-image: url("assets/forma-02-lounge-mobile.webp");
    background-position: 50% 60%;
  }

  .sound {
    --sound-image: url("assets/forma-03-listening-room-mobile.webp");
    background-position: 50% 66%;
  }

  .wall {
    --wall-image: url("assets/forma-04-wood-panel-study-mobile.webp");
    background-position: 50% 58%;
  }

  .tile-copy {
    min-height: 300px;
    padding: 18%;
  }

  .facts {
    gap: 30px 0;
    margin-bottom: 65px;
    grid-template-columns: 1fr 1fr;
  }

  .columns {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .details {
    padding: 85px 7%;
  }

  .policy {
    padding: 75px 7%;
  }

  .booking {
    gap: 55px;
    padding: 85px 7%;
  }

  footer {
    flex-wrap: wrap;
  }

  .hero h1,
  .intro h2,
  .booking h2 {
    font-size: clamp(45px, 13vw, 54px);
  }
}

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

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