/* Venue page: the flagship's doorplate, opened.
   Left, the venue's own field (its wall colour from the hero) carrying identity.
   Right, a sheet of the site's paper carrying the practical things: a table, the menu, what is on.
   Two materials, no third. */

/* shell.css carries the base layer; this sheet only says what a venue page does differently */
html { scroll-padding-top: var(--header-height); }

body.venue-page {
  --field-ink: var(--linen);
  --field-soft: rgba(236, 229, 214, .72);
  --hairline-field: rgba(236, 229, 214, .28);
  --hairline-paper: var(--hairline-light);
  --rule-input: rgba(23, 21, 15, .32);
  --error: #8f2a1f;
  background: var(--field);
  color: var(--field-ink);
}

body.venue-page--light {
  --field-ink: var(--ink);
  --field-soft: rgba(23, 21, 15, .68);
  --hairline-field: rgba(23, 21, 15, .18);
}

/* amber focus on a cream sheet is too faint; the ring takes the local ink */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --- the two type stacks every label and caption in this sheet share -------------- */
.v-head,
.v-kicker,
.v-soon,
.v-action,
.v-sheet__kicker,
.v-foot {
  font-family: var(--font-meta);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
}

.v-facts,
.v-event__when,
.v-event__feed,
.v-contact dt,
.v-contact dd {
  font-family: var(--font-meta);
  font-size: var(--fs-meta);
}

.v-facts,
.v-sheet__intro,
.v-slot__how,
.v-event__when,
.v-event__feed,
.v-contact dt { color: var(--ink-soft); }

/* --- header: back, section nav, language ---------------------------------- */
.v-head {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: var(--space-3);
  padding: .5rem var(--edge-end) .5rem var(--edge-start);
  border-bottom: 1px solid var(--hairline-field);
  background: var(--field);
  font-size: .8rem;
  letter-spacing: .08em;
}

.v-head a { color: inherit; text-decoration: none; }
.v-head a:hover,
.v-head a:focus-visible { text-decoration: underline; text-underline-offset: .3em; }

.v-back,
.v-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.v-nav::-webkit-scrollbar { display: none; }

.v-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  white-space: nowrap;
}

.v-lang {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.v-lang a,
.v-lang span[aria-current] {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
}

.v-lang a { font-weight: 400; }

/* --- the two materials ------------------------------------------------------ */
.v-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
}

.v-field {
  position: relative;
  padding: var(--space-5) var(--gutter) var(--space-5) var(--edge-start);
}

.v-field__inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  display: grid;
  justify-items: start;
  max-width: 30rem;
  gap: var(--space-2);
}

.v-kicker {
  margin: 0;
  color: var(--field-soft);
  font-size: var(--fs-meta);
}

.v-name {
  /* clear zone (see menu.css); the grid gap counts toward it */
  margin-block: calc(var(--mark-h) / 2 - var(--space-2));
}

.v-mark {
  display: block;
  width: auto;
  height: var(--mark-h);
  max-width: min(22rem, 80vw);
  color: currentColor;
  fill: currentColor;
}

.v-mark [fill]:not([fill="none"]) { fill: currentColor; }
.v-mark [stroke]:not([stroke="none"]) { stroke: currentColor; }

.v-mood {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.v-text {
  max-width: 34ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.v-facts {
  margin: 0;
  color: var(--field-soft);
}

.v-soon {
  margin: var(--space-1) 0 0;
  padding: .55rem .85rem;
  border: 1px solid var(--hairline-field);
  color: var(--field-soft);
}

.v-socials {
  display: flex;
  gap: .15rem;
  margin: var(--space-1) 0 0 -.65rem;
}

.v-social {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: inherit;
}

.v-social svg { width: 18px; height: 18px; fill: currentColor; }

.v-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: var(--space-2);
}

.v-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  letter-spacing: .1em;
  text-decoration: none;
}

.v-action::after { content: "→"; }

/* --- the paper sheet -------------------------------------------------------- */
.v-sheet {
  display: grid;
  align-content: start;
  padding: var(--space-5) var(--edge-end) var(--space-6) var(--gutter);
  background-color: var(--paper);
  background-image: var(--paper-grain);
  background-size: var(--paper-grain-size);
  color: var(--ink);
  gap: var(--space-6);
}

.v-sheet__section {
  display: grid;
  max-width: 44rem;
  gap: var(--space-3);
  /* html's scroll-padding already clears the header; this is breathing room only */
  scroll-margin-top: .75rem;
}

.v-sheet__head { display: grid; gap: .35rem; }

.v-sheet__kicker {
  margin: 0;
  color: var(--ink-soft);
}

.v-sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-d2);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.v-sheet__intro {
  max-width: 44ch;
  margin: .35rem 0 0;
}

/* Unavailable documents are a short reading state with a useful onward link. */
.v-slot {
  display: grid;
  align-items: start;
  gap: .7rem;
  padding: .25rem 0 .25rem var(--space-2);
  border-left: .25rem solid var(--field);
}

.v-event__poster {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline-paper);
  border-left: 6px solid var(--field);
  border-radius: 2px;
}

.v-slot__empty { margin: 0; font-weight: 600; }
.v-slot__how { max-width: 40ch; margin: 0; font-size: 1rem; }
.v-useful-links { display: flex; flex-wrap: wrap; gap: .25rem var(--space-2); }
.v-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  color: inherit;
  font-size: .95rem;
  text-underline-offset: .25em;
}

/* --- events ---------------------------------------------------------------- */
.v-events {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--hairline-paper);
}

.v-event {
  display: grid;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline-paper);
  grid-template-columns: 7rem minmax(0, 1fr);
}

.v-event__poster {
  display: block;
  overflow: hidden;
}

.v-event__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }

.v-event__copy { display: grid; gap: .3rem; }

.v-event__when { margin: 0; }

.v-event__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.v-event__feed {
  margin: .2rem 0 0;
  font-size: var(--fs-micro);
  letter-spacing: .04em;
}

/* --- contact ---------------------------------------------------------------- */
.v-contact {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--hairline-paper);
}

.v-contact > div {
  display: grid;
  gap: .25rem var(--space-3);
  padding: .8rem 0;
  border-bottom: 1px solid var(--hairline-paper);
  grid-template-columns: minmax(7rem, .6fr) minmax(0, 1.4fr);
}

.v-contact dt,
.v-contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.v-contact dt { font-weight: 700; }
.v-contact a { color: inherit; text-underline-offset: .2em; }

/* --- footer ------------------------------------------------------------------ */
.v-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--edge-end) max(var(--space-3), env(safe-area-inset-bottom)) var(--edge-start);
  border-top: 1px solid var(--hairline-field);
  font-weight: 400;
  text-transform: none;
}

.v-foot p { margin: 0; }
.v-foot a { color: inherit; text-underline-offset: .25em; }

/* --- motion, politely ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .v-field__inner > * {
    animation: v-rise .6s var(--ease-dolly) both;
  }
  .v-field__inner > :nth-child(2) { animation-delay: .06s; }
  .v-field__inner > :nth-child(3) { animation-delay: .12s; }
  .v-field__inner > :nth-child(4) { animation-delay: .18s; }
  .v-field__inner > :nth-child(5) { animation-delay: .24s; }
  .v-field__inner > :nth-child(n+6) { animation-delay: .3s; }
  .v-action { transition: background-color var(--t-plate-out) var(--ease-dolly), border-color var(--t-plate-out) var(--ease-dolly), color var(--t-plate-out) var(--ease-dolly); }
}

@keyframes v-rise {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: none; }
}

/* --- widths -------------------------------------------------------------------- */
@media (max-width: 63.999rem) {
  .v-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .v-field { padding-block: var(--space-4); }
  .v-field__inner { position: static; max-width: none; }
  .v-sheet { padding-block: var(--space-4) var(--space-5); gap: var(--space-5); }
}

@media (max-width: 40rem) {
  /* the header wraps to two rows here, so the geometry token follows it */
  body.venue-page { --header-height: 7.25rem; } /* measured: two rows of 2.75rem tap targets plus padding */
  .v-head { flex-wrap: wrap; gap: var(--space-2); padding-block: .35rem; }
  .v-nav { order: 3; flex-basis: 100%; }
  .v-mood { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  .v-event { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .v-contact > div { grid-template-columns: minmax(0, 1fr); }
}
