@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f1e0;
  --pine: #083a2d;
  --wine: #621e1a;
  --muted: #4c5b4d;
  --line: #bcc3af;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--pine);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
img { display: block; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.paper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(2.4rem, 6.5vh, 4.3rem);
  padding: clamp(2.8rem, 7vh, 5.6rem) clamp(2rem, 5.4vw, 7rem);
}

.brand, .contact { width: 100%; max-width: 31rem; }
.brand img { width: clamp(8.1rem, 12.3vw, 11.4rem); height: auto; }

h1 {
  margin: 0 0 clamp(2rem, 4.3vh, 3rem);
  font: 400 clamp(4.4rem, 6.9vw, 7.8rem)/.94 "Instrument Serif", Georgia, serif;
  letter-spacing: -.043em;
}

h1 em {
  display: block;
  width: fit-content;
  color: var(--wine);
  font-weight: 400;
}

.links { display: grid; }

.channel {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.7rem;
  padding: .85rem 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--pine);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(8, 58, 45, .12);
  transition: background-color .16s ease, color .16s ease;
}

.channel svg { display: block; width: 1.55rem; height: 1.55rem; }
.channel-name { font-size: 1.2rem; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.detail { color: var(--muted); font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere; text-align: right; }

.whatsapp {
  min-height: 4.8rem;
  margin-bottom: .45rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  background: var(--pine);
  color: var(--paper);
}

.whatsapp .detail { color: #e1e8d5; font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .channel:hover { background: #e5e8d7; }
  .whatsapp:hover { background: #16523f; }
  .channel:hover .channel-name { text-decoration: underline; text-underline-offset: .21em; }
}

.channel:focus-visible { outline: 3px solid #a12831; outline-offset: 3px; z-index: 1; }
.channel:active { background: #dbe0ce; }
.whatsapp:active { background: #194b39; }

.gallery {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: #0b3329;
  padding: 3rem clamp(1.4rem, 3vw, 4rem);
}

.windows {
  display: grid;
  grid-template-columns: .71fr 1.96fr .86fr .66fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: start;
  gap: clamp(.45rem, .85vw, .95rem);
  width: 100%;
  max-width: 51rem;
  height: clamp(31rem, 73vh, 53rem);
}

.windows img { width: 100%; object-fit: cover; min-width: 0; min-height: 0; }
.lounge { height: 70%; align-self: end; object-position: 48% 55%; }
.storefront { height: 92%; object-position: 49% 49%; }
.mural { height: 76%; align-self: center; object-position: 50% 35%; }
.bar { height: 63%; align-self: end; margin-bottom: 5%; object-position: 53% 51%; }

@media (max-width: 52rem) {
  .page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 38rem;
    margin-inline: auto;
    padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
  }
  .paper { display: contents; }
  .brand { order: 0; margin-inline: auto; padding: 1.3rem 1.5rem 1.05rem; max-width: none; }
  .brand img { width: 8rem; margin-inline: auto; }
  .gallery {
    order: 1;
    padding: 0;
    margin-inline: clamp(1.3rem, 5vw, 2.4rem);
    background: transparent;
  }
  .windows {
    height: clamp(8rem, min(44vw, 21vh), 13rem);
    grid-template-columns: .75fr 1.45fr .87fr .74fr;
    gap: clamp(.34rem, 1.45vw, .6rem);
  }
  .lounge { height: 74%; object-position: 50% 55%; }
  .storefront { height: 95%; object-position: 50% 49%; }
  .mural { height: 78%; object-position: 50% 32%; }
  .bar { height: 71%; margin-bottom: 5%; }
  .contact { order: 2; margin-inline: auto; max-width: none; padding: 1.65rem clamp(1.3rem, 5vw, 2.4rem) 0; }
  h1 { font-size: clamp(3.3rem, 11.2vw, 4.6rem); line-height: .95; margin-bottom: 1.4rem; }
  h1 em { display: inline; white-space: nowrap; }
  .channel { min-height: 3.9rem; gap: .7rem; padding-inline: .76rem; }
  .whatsapp { min-height: 4.05rem; margin-bottom: .24rem; }
  .channel-name { font-size: 1.08rem; }
  .detail { font-size: .875rem; }
  .channel svg { width: 1.38rem; height: 1.38rem; }
}

@media (max-width: 23rem) {
  .channel { padding-inline: .55rem; gap: .5rem; grid-template-columns: 1.45rem minmax(0, 1fr) auto; }
  .contact { padding-top: 1.35rem; }
  .detail { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .channel { transition: none; }
}
