:root {
  --ink: #11100e;
  --paper: #eee9df;
  --paper-deep: #ded5c5;
  --rust: #a54c2f;
  --acid: #d7ed54;
  --line: rgba(17, 16, 14, 0.24);
  --light-line: rgba(238, 233, 223, 0.24);
  --page: min(1400px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: var(--page);
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a,
.header-link,
.phone-link {
  position: relative;
}

.nav a::after,
.header-link::after,
.phone-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.header-link:hover::after,
.header-link:focus-visible::after,
.phone-link:hover::after,
.phone-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}

.login-trigger {
  padding: 9px 15px;
  color: var(--paper);
  border: 1px solid rgba(238, 233, 223, 0.58);
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.28);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.login-trigger:hover,
.login-trigger:focus-visible {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

@media (min-width: 681px) {
  .header-link {
    color: var(--paper);
  }
}

.hero {
  min-height: 860px;
  display: grid;
  grid-template-columns: 62% 38%;
  padding-left: max(32px, calc((100vw - 1400px) / 2));
  background: var(--paper);
}

.hero-copy {
  min-width: 0;
  padding: 156px 64px 62px 0;
}

.eyebrow,
.section-index,
.address-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 2;
  width: 112%;
  margin: 70px 0 46px;
  font-size: clamp(86px, 10.7vw, 174px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.77;
}

.hero h1 span {
  color: var(--rust);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-lead {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.18;
}

.round-link {
  width: 110px;
  height: 110px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-5deg);
}

.round-arrow {
  font-size: 20px;
}

.hero-visual {
  position: relative;
  min-height: 860px;
  margin: 0;
  overflow: hidden;
  background: #745e52;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 14, 0.14), transparent 45%, rgba(17, 16, 14, 0.16));
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 32px;
  padding: 10px 14px;
  color: var(--paper);
  border: 1px solid rgba(238, 233, 223, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  color: var(--paper);
  background: var(--rust);
}

.ticker-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 17px 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
}

.manifesto {
  width: var(--page);
  margin: 0 auto;
  padding: 116px 0 132px;
}

.manifesto-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 80px;
  margin-top: 74px;
}

.manifesto h2,
.gallery h2,
.visit h2 {
  margin: 0;
  font-size: clamp(56px, 7.3vw, 112px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.manifesto h2 em,
.visit h2 em {
  color: var(--rust);
}

.manifesto-text {
  align-self: end;
  padding-bottom: 6px;
  font-size: 18px;
}

.manifesto-text p {
  margin: 0 0 24px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 110px;
  border-top: 1px solid var(--line);
}

.details-grid article {
  min-height: 230px;
  padding: 28px 38px 20px 0;
  border-right: 1px solid var(--line);
}

.details-grid article + article {
  padding-left: 38px;
}

.details-grid article:last-child {
  border-right: 0;
}

.detail-number {
  display: block;
  margin-bottom: 56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.details-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
  text-transform: uppercase;
}

.details-grid p {
  max-width: 310px;
  margin: 0;
  color: rgba(17, 16, 14, 0.68);
}

.gallery {
  padding: 118px max(32px, calc((100vw - 1400px) / 2)) 136px;
  color: var(--paper);
  background: var(--ink);
}

.section-index--light {
  color: rgba(238, 233, 223, 0.68);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.gallery h2 em {
  color: var(--acid);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.82fr 0.7fr;
  gap: 24px;
  align-items: end;
  margin-top: 90px;
}

.gallery-card {
  margin: 0;
}

.gallery-card img {
  width: 100%;
  filter: saturate(0.84) contrast(1.02);
  object-fit: cover;
  transition: filter 300ms ease, transform 400ms ease;
}

.gallery-card:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.012);
}

.gallery-card--wide img {
  aspect-ratio: 1.3 / 1;
}

.gallery-card--portrait img {
  aspect-ratio: 0.73 / 1;
}

.gallery-card--small {
  margin-bottom: 13%;
}

.gallery-card--small img {
  aspect-ratio: 0.8 / 1;
}

.gallery-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: rgba(238, 233, 223, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visit {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 850px;
  background: var(--paper-deep);
}

.visit-image {
  overflow: hidden;
}

.visit-image img {
  width: 100%;
  height: 100%;
  filter: saturate(0.82);
  object-fit: cover;
}

.visit-content {
  display: flex;
  flex-direction: column;
  padding: 104px max(32px, calc((100vw - 1400px) / 2)) 90px 7vw;
}

.visit h2 {
  margin-top: 72px;
}

.address-block {
  margin-top: auto;
  padding-top: 72px;
}

.address-label {
  margin-bottom: 14px;
  color: rgba(17, 16, 14, 0.56);
}

address {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.8vw, 42px);
  font-style: normal;
  line-height: 1.15;
}

.metro {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: 360px;
  padding: 20px 22px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.phone-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 34px max(32px, calc((100vw - 1400px) / 2));
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.brand--footer .brand-mark {
  background: var(--paper);
}

.footer-note {
  justify-self: end;
  color: rgba(238, 233, 223, 0.58);
}

body:has(.auth-dialog[open]) {
  overflow: hidden;
}

.auth-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
}

.auth-dialog::backdrop {
  background: rgba(17, 16, 14, 0.78);
  backdrop-filter: blur(6px);
}

.auth-shell {
  width: 100%;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  overflow: hidden;
  background: var(--paper);
}

.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.38), rgba(17, 16, 14, 0.78)),
    url("assets/coffee-01.jpg") center / cover;
}

.auth-art::after {
  position: absolute;
  right: -48px;
  bottom: 84px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--acid);
  content: "";
  mix-blend-mode: screen;
}

.auth-art-label,
.auth-art-note,
.auth-kicker {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-art p {
  position: relative;
  z-index: 1;
  margin: auto 0;
  font-size: clamp(58px, 6.3vw, 86px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-transform: uppercase;
}

.auth-art em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.auth-panel {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 58px 52px 34px;
}

.auth-close {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.auth-close:hover,
.auth-close:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.auth-heading {
  min-width: 0;
  padding-right: 28px;
}

.auth-kicker {
  color: var(--rust);
}

.auth-heading h2 {
  max-width: 100%;
  margin: 25px 0 10px;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.auth-heading p {
  margin: 0;
  color: rgba(17, 16, 14, 0.6);
}

.auth-form {
  min-width: 0;
  display: grid;
  gap: 23px;
  margin-top: 46px;
}

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-field > span:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 52px;
  padding: 0 2px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid rgba(17, 16, 14, 0.4);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  transition: border-color 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(17, 16, 14, 0.36);
}

.auth-field input:focus {
  border-bottom-color: var(--rust);
}

.auth-field input[aria-invalid="true"] {
  border-bottom-color: #a33124;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 16px;
  padding: 0;
  color: rgba(17, 16, 14, 0.56);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.field-error {
  min-height: 15px;
  color: #8e291e;
  font-size: 11px;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -6px 0 0;
  padding: 12px 14px;
  color: #74241c;
  border: 1px solid rgba(142, 41, 30, 0.28);
  background: rgba(165, 76, 47, 0.09);
  font-size: 13px;
  font-weight: 700;
}

.auth-error[hidden] {
  display: none;
}

.auth-error span {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
}

.auth-submit {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--paper);
  border: 0;
  background: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.auth-submit:disabled {
  color: rgba(238, 233, 223, 0.6);
  background: rgba(17, 16, 14, 0.78);
  cursor: wait;
}

.auth-meta {
  margin: auto 0 0;
  color: rgba(17, 16, 14, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

@media (max-width: 980px) {
  :root {
    --page: calc(100vw - 40px);
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .header-actions {
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 56% 44%;
    min-height: 720px;
    padding-left: 20px;
  }

  .hero-copy {
    padding: 140px 28px 46px 0;
  }

  .hero h1 {
    width: 119%;
    margin-top: 80px;
    font-size: clamp(64px, 12vw, 112px);
  }

  .hero-visual {
    min-height: 720px;
  }

  .round-link {
    width: 84px;
    height: 84px;
  }

  .manifesto-copy {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .manifesto-text {
    max-width: 560px;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .gallery-grid {
    grid-template-columns: 1.3fr 0.8fr;
  }

  .gallery-card--small {
    display: none;
  }

  .visit {
    grid-template-columns: 40% 60%;
  }

  .visit-content {
    padding-left: 6vw;
  }

  .visit-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    min-width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 11px;
  }

  .brand-mark {
    width: 14px;
    height: 14px;
  }

  .header-link {
    display: none;
  }

  .login-trigger {
    color: var(--ink);
    border-color: rgba(17, 16, 14, 0.35);
    background: transparent;
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .hero-copy {
    min-height: 610px;
    padding: 120px 16px 44px;
  }

  .hero h1 {
    width: 100%;
    margin: 88px 0 54px;
    font-size: clamp(62px, 22vw, 104px);
  }

  .hero-bottom {
    align-items: center;
  }

  .hero-lead {
    font-size: 21px;
  }

  .round-link {
    width: 76px;
    height: 76px;
  }

  .hero-visual {
    min-height: 118vw;
  }

  .hero-visual figcaption {
    right: 16px;
    bottom: 16px;
  }

  .ticker-track {
    justify-content: flex-start;
    gap: 20px;
  }

  .manifesto {
    padding: 82px 0 88px;
  }

  .manifesto-copy {
    margin-top: 54px;
  }

  .manifesto h2,
  .gallery h2,
  .visit h2 {
    font-size: clamp(47px, 15.5vw, 76px);
  }

  .manifesto-text {
    font-size: 17px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .details-grid article,
  .details-grid article + article {
    min-height: auto;
    padding: 24px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-number {
    margin-bottom: 32px;
  }

  .gallery {
    padding: 82px 16px 90px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 64px;
  }

  .gallery-card--wide img {
    aspect-ratio: 1 / 0.9;
  }

  .gallery-card--portrait {
    width: 74%;
    margin-left: auto;
  }

  .visit {
    display: flex;
    flex-direction: column-reverse;
  }

  .visit-content {
    min-height: 720px;
    padding: 82px 16px 70px;
  }

  .visit h2 {
    margin-top: 56px;
  }

  .address-block {
    margin-top: 90px;
    padding-top: 0;
  }

  .visit-image {
    height: 118vw;
  }

  .visit-actions {
    width: 100%;
  }

  .primary-button {
    min-width: 0;
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr auto;
    padding: 28px 16px;
  }

  .footer > p:first-of-type {
    display: none;
  }

  .auth-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .auth-shell {
    min-height: 0;
    display: block;
  }

  .auth-art {
    min-height: 150px;
    display: block;
    padding: 22px;
  }

  .auth-art p {
    margin: 38px 0 0;
    font-size: 48px;
  }

  .auth-art-note {
    display: none;
  }

  .auth-art::after {
    right: 28px;
    bottom: -36px;
    width: 92px;
    height: 92px;
  }

  .auth-panel {
    padding: 34px 22px 24px;
  }

  .auth-close {
    top: 16px;
    right: 16px;
    color: var(--paper);
    border-color: rgba(238, 233, 223, 0.55);
  }

  .auth-heading h2 {
    margin-top: 18px;
    font-size: 36px;
    line-height: 0.98;
  }

  .auth-form {
    gap: 15px;
    margin-top: 28px;
  }

  .auth-field input {
    height: 44px;
  }

  .password-toggle {
    bottom: 13px;
  }

  .auth-submit {
    height: 52px;
  }

  .auth-meta {
    margin-top: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
