:root {
  --ink: #080707;
  --ivory: #eee9df;
  --muted: rgba(238, 233, 223, 0.62);
  --line: rgba(238, 233, 223, 0.32);
  --red: #5d050d;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.experience {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #080808;
  transition: background-color 300ms ease;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.08) brightness(0.82);
}

.film--wine {
  opacity: 0;
  pointer-events: none;
}

.film--themed {
  display: none;
  filter: none;
  opacity: 0;
  pointer-events: none;
}

.location-map {
  display: block;
  width: 42vw;
  max-width: 300px;
  height: auto;
  margin: 2rem auto 0;
  opacity: 0.82;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(
    ellipse 58% 52% at center,
    black 18%,
    rgba(0, 0, 0, 0.76) 42%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 58% 52% at center,
    black 18%,
    rgba(0, 0, 0, 0.76) 42%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
}

.red-wash,
.vignette,
.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.red-wash {
  background: #6d0713;
  mix-blend-mode: multiply;
  opacity: 0.34;
}

.vignette {
  background:
    radial-gradient(circle at center, transparent 22%, rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0.7) 120%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 25%, transparent 72%, rgba(0, 0, 0, 0.32));
}

.frame {
  inset: clamp(12px, 2vw, 28px);
  border: 1px solid var(--line);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid var(--ivory);
  opacity: 0.62;
}

.color-studies {
  position: fixed;
  z-index: 22;
  top: clamp(74px, 8vw, 96px);
  left: 50%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.color-studies button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: currentColor;
  background: transparent;
  font-size: 0.5rem;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.color-studies button:is(:hover, :focus-visible, .is-active) {
  border-color: currentColor;
  opacity: 1;
}

body.theme-wine-on-black,
body.theme-wine-opening-white-content,
body.theme-white-on-wine,
body.theme-black-on-wine {
  --line: currentColor;
  --muted: currentColor;
}

body.theme-wine-on-black {
  --ivory: rgb(126, 38, 55);
  color: rgb(126, 38, 55);
  background: #000;
}

body.theme-wine-opening-white-content {
  --ivory: rgb(126, 38, 55);
  color: rgb(126, 38, 55);
  background: #000;
}

body.theme-wine-opening-white-content .experience {
  background: #000;
}

body.theme-wine-opening-white-content .monogram img,
body.theme-wine-opening-white-content .hero-logo,
body.theme-wine-opening-white-content .closing-mark img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(24%) saturate(1913%) hue-rotate(300deg) brightness(84%) contrast(95%);
}

body.theme-wine-opening-white-content .location-map {
  filter: grayscale(1) invert(1) contrast(1.3);
  mix-blend-mode: screen;
}

body.theme-wine-opening-white-content .film--original {
  opacity: 0;
}

body.theme-wine-opening-white-content .film--themed {
  display: block;
  opacity: 1;
}

body.theme-wine-opening-white-content.is-past-hero .content,
body.theme-wine-opening-white-content.is-past-hero .site-nav,
body.theme-wine-opening-white-content.is-past-hero .menu-button {
  color: #fff;
}

body.theme-wine-opening-white-content.is-past-hero .content {
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.32);
}

body.theme-wine-opening-white-content.is-past-hero .closing-mark img {
  filter: brightness(0) invert(1);
}

body.theme-wine-on-black .experience {
  background: #000;
}

body.theme-wine-on-black .monogram img,
body.theme-wine-on-black .hero-logo,
body.theme-wine-on-black .closing-mark img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(24%) saturate(1913%) hue-rotate(300deg) brightness(84%) contrast(95%);
}

body.theme-wine-on-black .location-map {
  filter: grayscale(1) invert(1) contrast(1.3) sepia(1) saturate(3.4) hue-rotate(300deg) brightness(0.72);
  mix-blend-mode: screen;
}

body.theme-wine-on-black .film--original {
  opacity: 0;
}

body.theme-wine-on-black .film--themed {
  display: block;
  opacity: 1;
}

body.theme-white-on-wine {
  --ivory: #fff;
  color: #fff;
  background: rgb(83, 22, 36);
}

body.theme-white-on-wine .experience {
  background: rgb(83, 22, 36);
}

body.theme-white-on-wine .film--original {
  opacity: 0;
}

body.theme-white-on-wine .film--wine {
  opacity: 0;
}

body.theme-white-on-wine .film--themed {
  display: block;
  opacity: 1;
}

body.theme-white-on-wine .monogram img,
body.theme-white-on-wine .hero-logo,
body.theme-white-on-wine .closing-mark img {
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}

body.theme-current-white-logo .monogram img,
body.theme-current-white-logo .hero-logo,
body.theme-current-white-logo .closing-mark img {
  filter: brightness(0) invert(1);
}

body.theme-black-on-wine {
  --ivory: #000;
  color: #000;
  background: rgb(83, 22, 35);
}

body.theme-black-on-wine .experience {
  background: rgb(83, 22, 35);
}

body.theme-black-on-wine .film {
  filter: grayscale(1) invert(1) contrast(1.3);
  mix-blend-mode: multiply;
}

body.theme-black-on-wine .monogram img,
body.theme-black-on-wine .hero-logo,
body.theme-black-on-wine .closing-mark img {
  filter: brightness(0);
  mix-blend-mode: multiply;
}

body.theme-black-on-wine .location-map {
  opacity: 0.5;
}

body.theme-white-on-wine .location-map {
  opacity: 0.2;
  filter: grayscale(1) invert(1) contrast(1.3);
  mix-blend-mode: multiply;
}

body.theme-black-on-wine .location-map {
  filter: grayscale(1) brightness(2.2) contrast(1.2);
  mix-blend-mode: screen;
}

body:is(.theme-wine-on-black, .theme-wine-opening-white-content, .theme-white-on-wine, .theme-black-on-wine) .red-wash,
body:is(.theme-wine-on-black, .theme-wine-opening-white-content, .theme-white-on-wine, .theme-black-on-wine) .vignette {
  opacity: 0;
}

body.theme-white-on-wine .site-nav,
body.theme-black-on-wine .site-nav {
  color: currentColor;
}

body.theme-white-on-wine .site-nav {
  background: rgb(83, 22, 36);
}

body.theme-black-on-wine .site-nav {
  background: rgb(83, 22, 35);
}

.frame::before {
  top: -3px;
  left: -3px;
}

.frame::after {
  right: -3px;
  bottom: -3px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(27px, 4vw, 50px);
  pointer-events: none;
}

.topbar a,
.topbar button {
  pointer-events: auto;
}

.monogram {
  display: block;
  width: 38px;
  height: 38px;
  text-decoration: none;
}

.monogram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-button {
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  opacity: 0.68;
  transition: opacity 250ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

main {
  position: relative;
  z-index: 2;
}

.panel {
  position: relative;
  min-height: 125vh;
  display: grid;
  place-items: center;
  padding: 14vh max(30px, 8vw);
}

.panel--hero {
  min-height: 115vh;
}

.panel--hours {
  min-height: 145vh;
}

.content {
  width: min(620px, 100%);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.is-active .content {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 1.4rem;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  display: flex;
  flex-direction: column;
  line-height: 0.82;
}

.hero-logo {
  display: block;
  width: clamp(160px, 30vw, 330px);
  height: auto;
  margin: 0 auto;
}

h1 span:last-child {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  letter-spacing: 0.43em;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(4.3rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero-foot {
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.hero--editorial {
  text-align: left;
  transform: translateY(28px) rotate(-3deg);
}

.panel.is-active .hero--editorial {
  transform: rotate(-3deg);
}

.hero--editorial .eyebrow,
.hero--editorial .hero-foot {
  margin-left: 1rem;
}

.hero--minimal .eyebrow,
.hero--minimal .hero-foot {
  display: none;
}

.hero--minimal h1 span:last-child {
  margin-top: 2rem;
  letter-spacing: 0.62em;
}

.title-studies {
  position: absolute;
  right: clamp(28px, 4vw, 52px);
  bottom: clamp(30px, 4vw, 52px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  z-index: 4;
}

.title-studies > span {
  margin-right: 0.35rem;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.title-studies button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 0.55rem;
  opacity: 0.5;
  transition: 180ms ease;
}

.title-studies button:hover,
.title-studies button.is-active {
  border-color: var(--ivory);
  opacity: 1;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(30px, 4vw, 52px);
  left: clamp(28px, 4vw, 52px);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.scroll-cue i {
  width: 38px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: breathe 2s ease-in-out infinite;
}

.contact-list {
  width: min(530px, 100%);
  margin: 3rem auto 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 0;
  text-align: left;
}

.contact-row a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(0.85rem, 2.1vw, 1.1rem);
  overflow-wrap: anywhere;
}

.contact-row > span,
.copy-button {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.48rem;
  letter-spacing: 0.19em;
  color: var(--muted);
}

.copy-button {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.25rem;
  background: transparent;
  cursor: pointer;
}

address {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: normal;
  line-height: 1.55;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
}

.text-link span {
  margin-left: 0.5rem;
}

.hours {
  width: min(440px, 100%);
  margin: 3rem auto 0;
  text-align: left;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 0;
}

.hours dt {
  font-family: var(--serif);
}

.hours dd {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.closing-mark {
  margin: 5rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.closing-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: middle;
}

.closing-mark span {
  margin-left: 0.6rem;
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.progress {
  position: fixed;
  z-index: 20;
  right: clamp(16px, 2vw, 29px);
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(238, 233, 223, 0.13);
}

.progress span {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--ivory);
  transform: scaleY(0);
  transform-origin: top;
}

@keyframes breathe {
  0%,
  100% { transform: scaleX(0.45); }
  50% { transform: scaleX(1); }
}

@media (max-width: 700px) {
  .frame {
    inset: 10px;
  }

  .topbar {
    padding: 27px 26px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    padding: 1rem;
    background: rgba(8, 7, 7, 0.86);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .film {
    width: calc(100% - 20px);
    left: 10px;
  }

  .panel {
    min-height: 120vh;
    padding-inline: 28px;
  }

  .panel--hero {
    align-items: start;
    padding-top: 30vh;
  }

  .panel--hours {
    min-height: 100svh;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  h2 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  #contacts h2 {
    font-size: clamp(3rem, 12.5vw, 4.5rem);
  }

  #contacts .content {
    position: relative;
    left: 5vw;
    width: 77vw;
    margin-right: 8vw;
  }

  #contacts .content,
  #contacts .contact-row {
    text-align: right;
  }

  .contact-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
  }

  .contact-row > span {
    grid-column: 1 / -1;
  }

  .contact-row a {
    font-size: clamp(0.78rem, 3.7vw, 1rem);
  }

  .title-studies {
    right: 25px;
    bottom: 28px;
  }

  .title-studies > span {
    display: none;
  }

  .scroll-cue {
    left: 25px;
    bottom: 35px;
  }

  .progress {
    display: none;
  }
}

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

  .content,
  .scroll-cue i {
    transition: none;
    animation: none;
  }
}
