/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #171512;

  --paper: #eee9df;

  --muted: #756e65;

  --line: rgba(23, 21, 18, 0.18);

  --white: #f5f1e9;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);

  color: var(--ink);

  font-family: "Manrope", Arial, sans-serif;

  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;
}

/* =========================================
   GRAIN
========================================= */

.grain {
  position: fixed;

  inset: 0;

  z-index: 50;

  pointer-events: none;

  opacity: 0.045;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* =========================================
   LOADER
========================================= */

.loader {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: grid;

  place-items: center;

  background: var(--ink);

  color: var(--paper);

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loader.done {
  opacity: 0;

  visibility: hidden;
}

.loader-content {
  display: grid;

  gap: 18px;

  text-align: center;
}

.loader-content span {
  font-family: "DM Mono", monospace;

  font-size: 11px;

  letter-spacing: 0.18em;
}

.loader-content small {
  font-family: "DM Mono", monospace;

  font-size: 7px;

  letter-spacing: 0.15em;

  color: #aaa49a;
}

.loader-line {
  width: 200px;

  height: 1px;

  background: rgba(255, 255, 255, 0.18);

  overflow: hidden;
}

.loader-line i {
  display: block;

  width: 0;

  height: 100%;

  background: var(--paper);

  animation: loading 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

/* =========================================
   HEADER
========================================= */

.site-header {
  height: 82px;

  padding: 0 4vw;

  border-bottom: 1px solid var(--line);

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  position: relative;

  z-index: 30;
}

.brand {
  font-size: 13px;

  font-weight: 800;

  letter-spacing: 0.12em;
}

.navigation {
  display: flex;

  gap: 38px;

  font-family: "DM Mono", monospace;

  font-size: 10px;

  text-transform: uppercase;
}

.navigation a {
  position: relative;
}

.navigation a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -7px;

  width: 0;

  height: 1px;

  background: currentColor;

  transition: width 0.3s ease;
}

.navigation a:hover::after {
  width: 100%;
}

.header-button {
  justify-self: end;

  border: 1px solid var(--ink);

  border-radius: 100px;

  padding: 10px 13px 10px 16px;

  display: flex;

  align-items: center;

  gap: 15px;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;

  transition:
    background 0.3s,
    color 0.3s;
}

.header-button span {
  font-size: 14px;
}

.header-button:hover {
  background: var(--ink);

  color: var(--paper);
}

/* =========================================
   MOBILE NAV
========================================= */

.mobile-toggle {
  display: none;

  border: 0;

  background: none;

  cursor: pointer;
}

.mobile-toggle span {
  display: block;

  width: 25px;

  height: 1px;

  background: var(--ink);

  margin: 6px 0;
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: calc(100vh - 82px);

  padding: 7vw 4vw 4vw;

  display: grid;

  grid-template-columns:
    1.05fr
    0.95fr;

  gap: 6vw;

  position: relative;
}

.hero-content {
  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 1vw 0 2vw;
}

.eyebrow {
  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.hero-title {
  font-size: clamp(64px, 9.8vw, 155px);

  line-height: 0.82;

  letter-spacing: -0.075em;

  font-weight: 700;
}

.hero-title span {
  display: block;
}

.hero-indent {
  padding-left: 12vw;

  font-style: italic;

  font-weight: 500;
}

.hero-footer {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  max-width: 680px;
}

.hero-footer p {
  font-size: 13px;

  line-height: 1.65;

  color: #575149;
}

.circle-button {
  width: 105px;

  height: 105px;

  border: 1px solid var(--ink);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  line-height: 1.3;

  text-transform: uppercase;

  transition: 0.4s ease;
}

.circle-button b {
  position: absolute;

  right: 13px;

  bottom: 12px;

  font-size: 16px;

  font-weight: 400;
}

.circle-button:hover {
  background: var(--ink);

  color: var(--paper);

  transform: rotate(12deg);
}

/* =========================================
   HERO IMAGE
========================================= */

.hero-image {
  min-height: 610px;

  position: relative;
}

.hero-image-container {
  height: 100%;

  overflow: hidden;

  position: relative;
}

.hero-image-container img {
  transform: scale(1.08);

  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.loading) .hero-image-container img {
  transform: scale(1);
}

.coffee-stamp {
  position: absolute;

  right: 24px;

  bottom: 24px;

  width: 104px;

  height: 104px;

  border-radius: 50%;

  background: var(--paper);

  display: grid;

  place-content: center;

  text-align: center;

  transform: rotate(-12deg);
}

.coffee-stamp small {
  font-family: "DM Mono", monospace;

  font-size: 7px;

  line-height: 1.2;
}

.coffee-stamp strong {
  font-size: 34px;

  line-height: 1;
}

.vertical-label {
  position: absolute;

  right: -31px;

  top: 35%;

  writing-mode: vertical-rl;

  font-family: "DM Mono", monospace;

  font-size: 8px;

  letter-spacing: 0.16em;
}

.scroll-indicator {
  position: absolute;

  left: 4vw;

  bottom: 30px;

  display: flex;

  align-items: center;

  gap: 12px;

  font-family: "DM Mono", monospace;

  font-size: 8px;
}

.scroll-indicator i {
  display: block;

  width: 55px;

  height: 1px;

  background: var(--ink);
}

/* =========================================
   MARQUEE
========================================= */

/* =========================================
   MARQUEE
========================================= */

.marquee {
  width: 100%;

  overflow: hidden;

  padding: 18px 0;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}

/*
   The track contains TWO identical groups.

   Because they are identical, when the first
   group leaves the screen the second group
   is already in exactly the same position.
*/

.marquee-track {
  display: flex;

  width: max-content;

  align-items: center;

  will-change: transform;

  animation: marquee-scroll 32s linear infinite;
}

/* Each group must have the same spacing */

.marquee-group {
  display: flex;

  align-items: center;

  flex-shrink: 0;

  gap: 32px;

  padding-right: 32px;
}

/* Text */

.marquee-group span {
  font-family: "Manrope", Arial, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  white-space: nowrap;
}

/* Symbols */

.marquee-group b {
  display: inline-block;

  flex-shrink: 0;

  font-size: 14px;

  line-height: 1;

  font-weight: 400;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================
   HOVER PAUSE
========================================= */

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* =========================================
   SECTIONS
========================================= */

.section {
  padding: 8vw 4vw;
}

.section-number {
  font-family: "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: 0.12em;

  color: var(--muted);
}

/* =========================================
   STORY
========================================= */

.story {
  display: grid;

  grid-template-columns:
    1fr
    2fr;

  gap: 8vw;
}

.story-content {
  max-width: 950px;
}

.story h2 {
  font-size: clamp(48px, 6.5vw, 100px);

  line-height: 0.9;

  letter-spacing: -0.065em;

  margin: 25px 0 55px;
}

.story h2 em {
  font-family: Georgia, serif;

  font-weight: 400;
}

.description {
  max-width: 560px;

  font-size: 15px;

  line-height: 1.75;

  color: #5f5951;
}

.text-link {
  display: inline-flex;

  gap: 18px;

  margin-top: 35px;

  padding-bottom: 7px;

  border-bottom: 1px solid var(--ink);

  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;
}

.text-link span {
  transition: 0.3s;
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

/* =========================================
   IMAGE BREAK
========================================= */

.image-break {
  height: 80vh;

  min-height: 540px;

  position: relative;

  overflow: hidden;
}

.image-break-image {
  position: absolute;

  inset: 0;
}

.image-break-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(23, 21, 18, 0.5),
    rgba(23, 21, 18, 0.05)
  );
}

.image-break-image img {
  transform: scale(1.08);

  filter: saturate(0.78);
}

.image-break h2 {
  position: absolute;

  z-index: 2;

  left: 8vw;

  bottom: 8vw;

  color: white;

  font-size: clamp(42px, 6vw, 90px);

  line-height: 0.9;

  letter-spacing: -0.06em;
}

.image-break h2 em {
  font-family: Georgia, serif;

  font-weight: 400;
}

/* =========================================
   MENU HEADER
========================================= */

.menu-header {
  margin-top: 5vw;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;
}

.menu-header h2 {
  font-size: clamp(48px, 6.5vw, 100px);

  line-height: 0.9;

  letter-spacing: -0.065em;

  margin-top: 25px;
}

.menu-header h2 em {
  font-family: Georgia, serif;

  font-weight: 400;
}

.menu-tabs {
  display: flex;

  gap: 25px;

  border-bottom: 1px solid var(--line);
}

.menu-tabs button {
  border: 0;

  background: none;

  padding: 0 0 10px;

  cursor: pointer;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;

  opacity: 0.4;

  position: relative;
}

.menu-tabs button.active {
  opacity: 1;
}

.menu-tabs button.active::after {
  content: "";

  position: absolute;

  bottom: -1px;

  left: 0;

  right: 0;

  height: 2px;

  background: var(--ink);
}

/* =========================================
   MENU LIST
========================================= */

.menu-list {
  margin-top: 70px;
}

.menu-item {
  display: grid;

  grid-template-columns:
    70px
    150px
    1fr
    auto;

  gap: 30px;

  align-items: center;

  padding: 20px 0;

  border-top: 1px solid var(--line);

  opacity: 0;

  transform: translateY(18px);

  animation: menuIn 0.55s forwards;
}

.menu-item:last-child {
  border-bottom: 1px solid var(--line);
}

@keyframes menuIn {
  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================
   MENU IMAGE
========================================= */

.menu-image {
  width: 150px;

  height: 105px;

  overflow: hidden;

  position: relative;
}

.menu-image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover .menu-image img {
  transform: scale(1.07);
}

.menu-number {
  font-family: "DM Mono", monospace;

  font-size: 10px;

  color: var(--muted);
}

.menu-name {
  font-size: 19px;

  font-weight: 600;

  transition: 0.25s;
}

.menu-description {
  margin-top: 5px;

  font-size: 11px;

  color: var(--muted);
}

.menu-price {
  font-family: "DM Mono", monospace;

  font-size: 12px;
}

.menu-item:hover .menu-name {
  font-style: italic;

  transform: translateX(8px);
}

/* =========================================
   RITUAL
========================================= */

.ritual {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 9vw;

  align-items: center;
}

.ritual-image {
  height: 650px;

  position: relative;

  overflow: hidden;
}

.ritual-image img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-image:hover img {
  transform: scale(1.04);
}

.ritual-image span {
  position: absolute;

  bottom: 20px;

  left: 20px;

  color: white;

  font-family: "DM Mono", monospace;

  font-size: 8px;

  letter-spacing: 0.12em;
}

.ritual-content h2 {
  font-size: clamp(48px, 6.5vw, 100px);

  line-height: 0.9;

  letter-spacing: -0.065em;

  margin: 25px 0 35px;
}

.ritual-content h2 em {
  font-family: Georgia, serif;

  font-weight: 400;
}

.stats {
  display: flex;

  gap: 70px;

  margin-top: 55px;

  padding-top: 25px;

  border-top: 1px solid var(--line);
}

.stats div {
  display: grid;

  gap: 7px;
}

.stats strong {
  font-size: 25px;

  letter-spacing: -0.04em;
}

.stats span {
  font-family: "DM Mono", monospace;

  font-size: 8px;

  text-transform: uppercase;

  color: var(--muted);
}

/* =========================================
   VISIT
========================================= */

.visit {
  background: var(--ink);

  color: var(--paper);
}

.visit .section-number {
  color: #aaa49a;
}

.visit-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr;

  gap: 8vw;

  margin-top: 5vw;
}

.visit h2 {
  font-size: clamp(65px, 10vw, 155px);

  line-height: 0.82;

  letter-spacing: -0.075em;

  margin-top: 20px;
}

.visit h2 em {
  font-family: Georgia, serif;

  font-weight: 400;
}

.visit-details {
  padding-top: 15px;
}

.visit-details > div {
  margin-bottom: 35px;
}

.visit-details strong {
  font-family: "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: 0.1em;
}

.visit-details p {
  font-size: 12px;

  line-height: 1.7;

  margin-top: 5px;
}

.location-button {
  display: inline-flex;

  gap: 35px;

  padding: 14px 17px;

  border: 1px solid var(--paper);

  border-radius: 100px;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;

  transition: 0.3s;
}

.location-button:hover {
  background: var(--paper);

  color: var(--ink);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background: var(--ink);

  color: var(--paper);

  padding: 30px 4vw 25px;
}

.footer-main {
  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  align-items: start;

  padding: 80px 0 120px;
}

.footer-main p {
  font-size: 13px;

  line-height: 1.6;
}

.footer-main > a {
  justify-self: end;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  text-transform: uppercase;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);

  color: #aaa49a;

  font-family: "DM Mono", monospace;

  font-size: 8px;

  text-transform: uppercase;
}

/* =========================================
   REVEAL
========================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {
  .site-header {
    grid-template-columns:
      1fr
      auto;
  }

  /* =========================================
   MARQUEE
  ========================================= */

  .marquee {
    padding: 15px 0;
  }

  .marquee-group {
    gap: 24px;

    padding-right: 24px;
  }

  .marquee-group span {
    font-size: 9px;
  }

  .marquee-group b {
    font-size: 12px;
  }

  .navigation,
  .header-button {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .navigation.open {
    display: flex;

    position: absolute;

    top: 82px;

    left: 0;

    right: 0;

    padding: 25px 4vw;

    flex-direction: column;

    gap: 22px;

    background: var(--paper);

    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;

    padding-top: 12vw;
  }

  .hero-title {
    font-size: clamp(60px, 18vw, 110px);
  }

  .hero-image {
    min-height: 500px;

    margin-top: 14vw;
  }

  .vertical-label,
  .scroll-indicator {
    display: none;
  }

  .hero-footer {
    margin-top: 70px;
  }

  .story {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .image-break {
    height: 65vh;
  }

  .menu-header {
    display: block;
  }

  .menu-tabs {
    margin-top: 50px;

    width: max-content;
  }

  .menu-list {
    margin-top: 45px;
  }

  /*
     Mobile menu becomes:
     number + image + content + price
  */

  .menu-item {
    grid-template-columns:
      35px
      90px
      1fr;

    gap: 15px;

    position: relative;

    padding: 18px 0;
  }

  .menu-image {
    width: 90px;

    height: 90px;
  }

  .menu-price {
    position: absolute;

    right: 0;

    bottom: 18px;
  }

  .menu-name {
    font-size: 15px;

    padding-right: 45px;
  }

  .menu-description {
    font-size: 10px;

    line-height: 1.4;

    padding-right: 15px;
  }

  .ritual {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .ritual-image {
    height: 520px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 60px 0 80px;
  }

  .footer-main > a {
    justify-self: start;
  }

  .footer-bottom {
    gap: 15px;

    flex-wrap: wrap;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .loader {
    display: none;
  }

  .hero-image-container img,
  .ritual-image img,
  .menu-image img {
    transition: none;
  }
}
