:root {
  --white: #ffffff;
  --paper: #f2f2f2;
  --line: #d6d6d6;
  --mid: #8d8d8d;
  --ink: #161616;
  --black: #0a0a0a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  z-index: 21;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.site-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.site-footer p {
  margin: 0;
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Home */

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  scroll-margin-top: 76px;
  color: var(--white);
  background: var(--black);
}

.hero img {
  position: absolute;
  inset: 0;
  filter: grayscale(1);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 76px);
  padding: 64px 40px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.08) 55%);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 12ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 400;
  line-height: 0.92;
}

.hero p {
  margin: 0;
  max-width: 42ch;
  color: #cfcfcf;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 88px 40px;
  border-bottom: 1px solid var(--line);
}

.intro h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.intro p {
  margin: 0;
  max-width: 46ch;
  color: #4a4a4a;
}

.preview {
  padding: 72px 40px 96px;
  scroll-margin-top: 76px;
}

.preview .room-grid {
  padding: 0;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.preview-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.preview-head a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.tile {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  background: var(--paper);
}

.tile.large {
  grid-row: span 2;
  min-height: 576px;
}

.tile img {
  filter: grayscale(1);
  transition: transform 400ms ease;
}

.tile:hover img {
  transform: scale(1.03);
}

.tile span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

/* Rooms */

.page-head {
  padding: 56px 40px 28px;
  scroll-margin-top: 76px;
}

.page-head h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 40px 96px;
}

.room-card {
  display: block;
  background: var(--white);
}

.room-card .frame {
  height: 340px;
  overflow: hidden;
  background: var(--paper);
}

.room-card img {
  filter: grayscale(1);
  transition: transform 400ms ease;
}

.room-card:hover img {
  transform: scale(1.03);
}

.room-card h2 {
  margin: 16px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.room-card p {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

.detail {
  position: fixed;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: none;
  background: var(--white);
  overflow: auto;
}

.detail:target {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-photo {
  position: relative;
  min-height: calc(100vh - 76px);
  background: var(--black);
}

.compare {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  --pos: 50%;
}

.compare-after,
.compare-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  filter: grayscale(1);
}

.compare-before {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-cursor::before,
.compare-cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compare-cursor::before {
  width: 44px;
  height: 44px;
  border: 2px solid var(--white);
  background: var(--black);
  border-radius: 50%;
}

.compare-cursor::after {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--white);
  border-right: 2px solid var(--white);
}

.compare-label {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  padding: 6px 10px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-label-before {
  left: 16px;
}

.compare-label-after {
  right: 16px;
}

.detail-copy {
  padding: 40px 40px 64px;
}

.close {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
}

.close:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.detail-copy h2 {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 0 0 28px;
  padding: 0;
}

.facts div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.facts dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

.facts dd {
  margin: 6px 0 0;
}

.detail-copy > p {
  margin: 0;
  max-width: 44ch;
  color: #444;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 76px - 69px);
}

.contact-visual {
  position: relative;
  min-height: 520px;
  background: var(--black);
}

.contact-visual img {
  filter: grayscale(1);
}

.contact-visual .caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-panel {
  padding: 56px 40px 72px;
}

.contact-panel h1 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

.contact-panel .lede {
  margin: 0 0 32px;
  max-width: 42ch;
  color: #4a4a4a;
}

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.studio span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

.studio a,
.text-link {
  border-bottom: 1px solid var(--ink);
}

.text-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-block {
  scroll-margin-top: 76px;
  padding: 72px 40px 96px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-block-inner {
  max-width: 720px;
}

.contact-block h2 {
  margin: 0 0 32px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
}

.contact-block form {
  max-width: none;
}

.about {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 420px;
  scroll-margin-top: 76px;
  border-top: 1px solid var(--line);
}

.about-flip {
  flex-direction: row-reverse;
}

.about + .about {
  margin-top: 64px;
}

.about-photo {
  flex: 0 0 42%;
  width: 42%;
  background: #d8d8d8;
  overflow: hidden;
}

.about-photo img,
.about-photo svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-copy {
  flex: 1 1 58%;
  width: 58%;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h1 {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

.about-copy p {
  margin: 0 0 16px;
  max-width: 48ch;
  color: #444;
}

.about-copy .facts {
  margin-top: 36px;
}

form {
  display: grid;
  gap: 16px;
  max-width: 460px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.submit {
  justify-self: start;
  margin-top: 6px;
  border: 0;
  background: var(--black);
  color: var(--white);
  padding: 14px 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit:hover {
  background: #2a2a2a;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .hero-copy,
  .intro,
  .preview,
  .page-head,
  .room-grid,
  .contact-panel,
  .contact-block,
  .about-copy,
  .detail-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro,
  .preview-grid,
  .room-grid,
  .contact,
  .detail:target,
  .studio,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 32px 24px;
  }

  .about-photo img,
  .about-photo svg {
    min-height: 280px;
  }

  .tile.large,
  .detail-photo,
  .compare {
    min-height: 320px;
  }

  .nav {
    gap: 18px;
  }
}
