/* Layout for the Bites and Beyond room site.
   Colors and type sizes come from assets/tokens.css, which the build writes.
   This file does not restate them. */

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1.25;
  transform: translateY(-160%);
  background: var(--c-surface);
  color: var(--c-text);
}

.skip:focus {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  transform: none;
  font-size: 18px;
  line-height: 1.25;
  min-height: 44px;
}

#preview.spec {
  font-family: var(--f-body);
  font-size: var(--t-body-size);
  font-weight: var(--t-body-weight);
  line-height: var(--t-body-lh);
  overflow-wrap: anywhere;
  color: var(--c-text);
  background: var(--c-bg);
}

#preview.spec > main,
#preview.spec > .site-footer {
  width: 100%;
  max-width: 40rem;
  min-width: 0;
}

#preview.spec .logo {
  display: block;
  width: 72px;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
}

#preview.spec .eyebrow {
  margin: 0 0 8px;
  color: var(--c-text);
  font-size: var(--t-body-size);
  font-weight: 700;
}

#preview.spec .room-host {
  margin-top: 1em;
  color: var(--c-text);
}

#preview.spec .room-host strong {
  color: var(--c-text);
}

#preview.spec .hero-frame {
  position: relative;
  max-width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
}

#preview.spec .hero {
  display: block;
  max-width: 100%;
  margin: 0;
}

#preview.spec .hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Phones: the food photo is a tall band above the title panel. Desktop stays at the picture's own height. */
@media (max-width: 699.98px) {
  #preview.spec .hero img {
    height: calc(45vh + 2.5rem);
    object-fit: cover;
    object-position: center;
  }
}

/* The copy sits on a solid panel. The fade above it only darkens the photo. */
#preview.spec .hero-scrim {
  position: relative;
  margin-top: -2.5rem;
  padding: 16px;
  background: var(--c-text);
  color: var(--c-bg);
}

#preview.spec .hero-scrim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 5rem;
  background: linear-gradient(to top, var(--c-text), transparent);
  pointer-events: none;
}

#preview.spec .hero-scrim .eyebrow,
#preview.spec .hero-scrim .room-name,
#preview.spec .hero-scrim .room-tagline {
  color: var(--c-bg);
}

#preview.spec .hero-scrim .room-name,
#preview.spec .hero-scrim .room-tagline,
#preview.spec .hero-scrim .eyebrow {
  overflow-wrap: anywhere;
}

#preview.spec .room-block {
  margin-top: 32px;
}

#preview.spec .room-block p + p {
  margin-top: 0.75em;
}

#preview.spec .event-item,
#preview.spec .updates li {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: none;
  padding: 16px;
}

#preview.spec .events-empty {
  border: 1px solid color-mix(in srgb, var(--c-text) 35%, transparent);
  border-radius: var(--r-card);
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
  padding: 16px;
  cursor: default;
}

#preview.spec .event-list,
#preview.spec .updates {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#preview.spec .do-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#preview.spec .do-list li {
  display: block;
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 4px solid var(--c-accent);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--c-text);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  cursor: default;
}

#preview.spec .event-item h3 {
  margin: 0 0 4px;
  color: var(--c-text);
  font-family: var(--f-display);
  font-size: var(--t-event-size);
  font-weight: var(--t-event-weight);
  line-height: var(--t-event-lh);
}

#preview.spec a[href] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  min-width: 44px;
  color: var(--c-text);
  font-weight: 700;
  text-underline-offset: 4px;
  white-space: normal;
}

#preview.spec a.join {
  justify-content: center;
  margin-top: 4px;
  padding: 12px 18px;
  border: 3px solid var(--c-accent);
  border-radius: var(--r-card);
  background: var(--c-text);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-size: var(--t-body-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

#preview.spec a.join:hover {
  background: var(--c-bg);
  color: var(--c-text);
}

#preview.spec .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 8px;
  border-top: 2.5px solid var(--c-text);
}

#preview.spec .site-footer a[href] {
  flex: 0 1 auto;
}
