/* Inner pages: menu & wine documents, shop grid */

/* ---- dark document pages (menu, wine) ---- */

.dark-page { background: #0d0c0a; }
.dark-page .site-header { color: var(--cream); }

.doc-wrap {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(90px, 12vh, 140px) var(--pad) clamp(60px, 8vh, 100px);
}

.doc {
  background: var(--cream);
  color: var(--ink);
  width: min(680px, 100%);
  padding: clamp(36px, 5vw, 72px) clamp(28px, 6vw, 84px);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5em;
}
/* official wordmark artwork, masked so it inherits the document ink colour —
   same technique as .wordmark in the header. Text stays in the DOM for AT. */
.doc-head .doc-brand {
  flex: none;
  width: 33%;
  max-width: 180px;
  aspect-ratio: 4394 / 586;
  background: currentColor;
  -webkit-mask: url("../assets/img/web/wordmark.png") no-repeat left bottom / contain;
  mask: url("../assets/img/web/wordmark.png") no-repeat left bottom / contain;
  text-indent: -9999px;
  overflow: hidden;
}

/* the * = Coravin note that sits under the wine list's title; it belongs to the
   head, so the head's own gap closes up when one follows */
.doc-head:has(+ .doc-legend) { margin-bottom: 1.4em; }
.doc-legend { margin-bottom: 3em; }

.doc-group { margin-bottom: 2.8em; }
.doc-group:last-child { margin-bottom: 0; }

.doc-heading { font-weight: bold; margin: 2.4em 0 1.2em; }
.doc-heading:first-child { margin-top: 0; }
.doc-subheading { font-weight: bold; margin: 1.6em 0 0.8em; }

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.doc-row .dish { flex: 1; }
.doc-row .price { white-space: nowrap; }

.doc-notes {
  margin-top: 4em;
  text-align: center;
  font-size: 11px;
  line-height: 2;
}

/* ---- shop ---- */

.shop-main { padding: clamp(120px, 16vh, 180px) var(--pad) clamp(80px, 10vw, 140px); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px);
}

.product { text-align: center; }
.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 18px;
}
.product-media img { max-width: 82%; max-height: 100%; object-fit: contain; }

.product h2 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.product .price { margin-top: 6px; font-size: 14px; }

.product .buy {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.product .buy:hover { opacity: 0.6; }
.product .more {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .shop-grid { grid-template-columns: 1fr; } }

/* ---- events (Tripleseat lead form) ---- */

.events-main {
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(80px, 10vw, 140px);
  max-width: 760px;
}

/* Tripleseat injects the form markup plus its own <style> block, which uses
   #tripleseat_embed_form ID selectors. Everything below is scoped
   .lead-form #tripleseat_embed_form so it outranks that injected CSS. */
.lead-form { margin-top: 2.4em; }

.lead-form #tripleseat_embed_form label,
.lead-form #tripleseat_embed_form legend {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}

.lead-form #tripleseat_embed_form :is(h1, h2, h3, h4) {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  margin: 2.6em 0 1.2em;
}

.lead-form #tripleseat_embed_form :is(
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="date"], input[type="time"],
  select, textarea
) {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(24, 19, 16, 0.25);
  border-radius: 0;
  padding: 8px 0;
  margin-bottom: 1.6em;
  appearance: none;
}
.lead-form #tripleseat_embed_form textarea {
  border: 1px solid rgba(24, 19, 16, 0.25);
  padding: 10px;
  min-height: 120px;
}

.lead-form #tripleseat_embed_form :is(input, select, textarea):focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.lead-form #tripleseat_embed_form ::placeholder { color: rgba(24, 19, 16, 0.35); }

.lead-form #tripleseat_embed_form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: var(--ink);
}

.lead-form #tripleseat_embed_form :is(input[type="submit"], button[type="submit"]) {
  align-self: flex-start;
  width: auto;
  min-width: 220px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 40px;
  margin-top: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.lead-form #tripleseat_embed_form :is(input[type="submit"], button[type="submit"]):hover {
  background: var(--ink);
  color: var(--cream);
}

/* Tripleseat attribution — required by their terms, kept quiet */
#tripleseat_link {
  display: inline-block;
  margin-top: 2.4em;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  opacity: 0.4;
}
#tripleseat_link:hover { opacity: 0.7; }
