/* Barrelman BBQ public site. Full-width blocks of flat colour, tall black display
   type with wide spacing, outlined buttons, photos that fill their half. */

@font-face { font-family: 'Bebas Neue'; src: url('fonts/bebas-neue.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/roboto.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --orange: #fa6241;
  --aqua: #41fac3;
  --yellow: #fcf308;
  --stone: #ab9f9f;
  --mint: #bdffe3;
  --ink: #000000;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --text: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --pad: 5rem; /* space around the words inside a block */
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--text); line-height: 1; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; } /* height follows width unless a rule below says otherwise */
h1, h2, h3, p { margin: 0; }

/* ---------- type ---------- */
.kicker { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.4em; text-transform: uppercase; line-height: 1.3; margin-bottom: 1.6rem; }
.big { font-family: var(--display); font-weight: 400; font-size: 4.6rem; letter-spacing: 0.06em; line-height: 1.1; text-transform: uppercase; margin-bottom: 1.8rem; }
.mid { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: 0.12em; line-height: 1.25; text-transform: uppercase; margin-bottom: 1.6rem; }
.copy { font-size: 1rem; letter-spacing: 0.04em; line-height: 1.9; max-width: 34rem; }
.copy + .copy { margin-top: 1rem; }

/* ---------- buttons: a thick outline, nothing else ---------- */
.btn { display: inline-flex; align-items: center; height: 4rem; padding: 0 1.8rem 0 2.1rem; margin-top: 2rem; border: 5px solid var(--ink); background: none; color: var(--ink); font: 700 0.8rem var(--text); letter-spacing: 0.4em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn svg { width: 1.1rem; height: 1.1rem; margin-left: 0.9rem; flex: none; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; outline: none; }

/* ---------- blocks ---------- */
.block { position: relative; }
.block.orange { background-color: var(--orange); }
.block.aqua { background-color: var(--aqua); }
.block.yellow { background-color: var(--yellow); }
.block.stone { background-color: var(--stone); }
.block.mint { background-color: var(--mint); }
.block.white { background-color: #fff; }
.lined { background-image: url('images/pattern.svg'); background-size: 1536px; background-position: center; }
.words { padding: var(--pad); }
.centered { text-align: center; }
.centered .words { max-width: 60rem; margin: 0 auto; padding-top: 6rem; padding-bottom: 6rem; }
.centered .copy { margin-left: auto; margin-right: auto; }

/* Two halves side by side: words in one, a photo filling the other. */
.halves { display: flex; align-items: stretch; }
.halves > * { flex: 1 1 50%; min-width: 0; }
.halves .words { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.halves .fill { position: relative; min-height: 34rem; }
.halves .fill img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* A portrait of a person: keep the face in view however the half is cropped. */
.halves .fill.portrait img { object-position: 50% 22%; }
.hero { min-height: 100vh; }
.hero .card { display: flex; align-items: center; }
.hero .card img { width: 100%; height: auto; }

/* Two thoughts side by side with a hairline between them. */
.pair .words { flex: 1 1 50%; padding: 5.5rem var(--pad); }
.pair .words + .words { border-left: 1px solid rgba(0, 0, 0, 0.13); }

/* ---------- the reel: a strip of photos and clips that moves along by itself ---------- */
.block.ink { background: var(--ink); color: #fff; }
.reel { padding: 4.5rem 0 4rem; }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--pad) 2rem; }
.reel-head .mid { margin-bottom: 0; }
.reel-buttons { display: flex; flex: none; margin-left: 1.5rem; }
.btn.round { width: 3.6rem; height: 3.6rem; padding: 0; margin: 0 0 0 0.8rem; justify-content: center; border-color: #fff; color: #fff; }
.btn.round svg { margin: 0; width: 1.3rem; height: 1.3rem; }
.btn.round:hover, .btn.round:focus-visible { background: #fff; color: var(--ink); }
.reel-strip { display: flex; list-style: none; margin: 0; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
.tile { flex: 0 0 17.5rem; aspect-ratio: 9 / 15; margin-right: 1rem; scroll-snap-align: start; background: #222; }
.tile:last-child { margin-right: 0; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* When the reel opens the page, the name sits over it and the strip fills the first screen. */
.reel.opener { padding-top: 3rem; }
.reel.opener .big { margin-bottom: 0; }
.reel.opener .reel-head { padding-bottom: 1.6rem; }
.reel.opener .tile { flex-basis: 19rem; }

/* ---------- links page: one column of big buttons, made for a phone ---------- */
.links-page main { min-height: 100vh; }
.links { max-width: 30rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; text-align: center; }
.links-badge { width: 8.5rem; height: 8.5rem; margin: 0 auto 1.4rem; border-radius: 50%; }
.links .mid { margin-bottom: 0.7rem; }
.links-heading { margin: 2.6rem 0 0.2rem; text-align: left; }
.btn.wide { display: flex; width: 100%; height: auto; min-height: 4.4rem; margin-top: 0.9rem; padding: 0.8rem 1.2rem; text-align: left; letter-spacing: 0.16em; }
.btn.wide .label { flex: 1; min-width: 0; }
.btn.wide .label b { display: block; font-size: 0.95rem; line-height: 1.3; }
.btn.wide .label small { display: block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; text-transform: none; line-height: 1.35; }
.btn.wide.solid { background: var(--ink); color: #fff; }
.btn.wide.solid:hover, .btn.wide.solid:focus-visible { background: #fff; color: var(--ink); }
.btn.wide .when { flex: none; width: 4rem; margin-right: 1.1rem; padding-right: 1rem; border-right: 2px solid currentColor; text-align: center; }
.btn.wide .when b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.3rem; letter-spacing: 0.02em; line-height: 0.95; }
.btn.wide .when small { display: block; font-size: 0.62rem; letter-spacing: 0.08em; white-space: nowrap; }

/* ---------- catering: the three meats side by side ---------- */
.words.lead { max-width: 62rem; margin: 0 auto; padding-top: 6rem; padding-bottom: 6rem; }
.kicker a { display: inline-block; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; padding: 14px 0; margin: -14px 0; }
.trio { display: flex; }
.trio article { flex: 1 1 0; min-width: 0; border-right: 1px solid rgba(0, 0, 0, 0.13); }
.trio article:last-child { border-right: 0; }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trio .words { padding: 2.6rem 2.4rem 3.4rem; }
.trio .big { font-size: 3.4rem; margin-bottom: 1rem; }
.count { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.14em; margin-bottom: 0.4rem; }
.steps { list-style: none; counter-reset: step; margin: 0 0 1.6rem; padding: 0; max-width: 36rem; }
.steps li { counter-increment: step; position: relative; padding: 0.9rem 0 0.9rem 4rem; line-height: 1.7; letter-spacing: 0.03em; border-top: 1px solid rgba(0, 0, 0, 0.16); }
.steps li:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.16); }
.steps li:before { content: '0' counter(step); position: absolute; left: 0; top: 0.75rem; font-family: var(--display); font-size: 2rem; letter-spacing: 0.06em; line-height: 1.2; }
.copy.fine { margin-top: 1rem; font-size: 0.85rem; opacity: 0.75; }

/* ---------- events ---------- */
.btn.wide.event { max-width: 40rem; background: rgba(255, 255, 255, 0.35); }
.btn.wide.event:hover, .btn.wide.event:focus-visible { background: var(--ink); color: #fff; }
.next-up .big { margin-bottom: 0.6rem; }
.facts { margin: 0 0 1.8rem; max-width: 36rem; }
.facts div { display: flex; padding: 0.8rem 0; border-top: 1px solid rgba(0, 0, 0, 0.18); }
.facts div:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.18); }
.facts dt { flex: 0 0 6rem; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; padding-top: 0.35rem; }
.facts dd { margin: 0; line-height: 1.6; letter-spacing: 0.03em; }
.menu { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.menu li { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px solid rgba(0, 0, 0, 0.16); }
.menu li:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.16); }
.menu b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.06em; }
.menu small { display: block; margin-top: 0.3rem; letter-spacing: 0.03em; line-height: 1.5; }
.menu .price { font-family: var(--display); font-size: 1.7rem; margin-left: 1.5rem; white-space: nowrap; }

/* ---------- The Rib Shack: the sign's own colours, same type and layout ---------- */
.block.sky { background: #1d6fc7; }
.block.shack-red { background: #b3261e; color: #f3ead8; }
.block.shack-cream { background: #f3ead8; }
.block.shack-navy { background: #1f3a85; color: #f3ead8; }
.sign-block { display: flex; justify-content: center; }
.sign-block img { width: 100%; max-width: 62rem; }
.rib-shack .btn { border-color: #f3ead8; color: #f3ead8; margin-right: 1rem; }
.rib-shack .btn:hover, .rib-shack .btn:focus-visible { background: #f3ead8; color: #1f3a85; }
.rib-shack .btn.wide.event { background: rgba(243, 234, 216, 0.12); }
.rib-shack .shack-red .kicker a { color: inherit; }
.btn.wide .label .tag { display: inline-block; margin: 0 0 0.35rem; padding: 0.15rem 0.45rem; background: #b3261e; color: #f3ead8; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.shack-items article { border-right-color: rgba(243, 234, 216, 0.25); }
.shack-items img { aspect-ratio: 4 / 3; }
.shack-items .count { font-size: 2.4rem; letter-spacing: 0.08em; line-height: 1.1; margin-bottom: 0.6rem; }
.shack-items .words { padding-bottom: 2.8rem; }
.shack-navy.halves .fill.portrait img { object-position: 50% 30%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The full trays: shown as a spread, apart from the three single meats. */
.spread .words { padding-bottom: 2.4rem; }
.spread .copy { max-width: 30rem; }
.spread-row { display: flex; list-style: none; margin: 0; padding: 0 var(--pad) var(--pad); }
.spread-row li { flex: 1 1 0; min-width: 0; margin-right: 1rem; }
.spread-row li:last-child { margin-right: 0; }
.spread-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- foot: the way between pages ---------- */
.foot { display: flex; justify-content: center; flex-wrap: wrap; background: var(--ink); padding: 1.6rem 1rem; }
.foot a { color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.4em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.2rem; }
.foot a:hover, .foot a:focus-visible, .foot a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- contact ---------- */
.social { display: flex; justify-content: center; margin-top: 2.4rem; }
.social a { display: flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; color: var(--ink); }
.social svg { width: 2rem; height: 2rem; }
.last-photo img { width: 100%; height: 100vh; object-fit: cover; }

@media (max-width: 760px) {
  html { font-size: 15px; }
  :root { --pad: 2.2rem; }
  .big { font-size: 3.4rem; }
  .mid { font-size: 2rem; }
  .words { padding: 3.6rem var(--pad); }
  .halves { flex-direction: column; }
  .halves.photo-first-on-phone { flex-direction: column-reverse; }
  .halves .fill { min-height: 0; }
  .halves .fill img { position: static; height: auto; }
  .halves .fill.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
  .hero { min-height: 0; }
  .centered { text-align: left; }
  .centered.keep { text-align: center; }
  .centered .words { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .centered:not(.keep) .copy { margin-left: 0; }
  .pair .words { padding: 3.2rem var(--pad); }
  .pair .words + .words { border-left: 0; border-top: 1px solid rgba(0, 0, 0, 0.13); }
  .last-photo img { height: auto; }
  .words.lead { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .trio { display: block; }
  .trio article { border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.13); }
  .shack-items img { aspect-ratio: 5 / 4; }
  .trio img { aspect-ratio: 5 / 4; }
  .trio .words { padding: 2.2rem var(--pad) 2.8rem; }
  .spread-row { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .spread-row::-webkit-scrollbar { display: none; }
  .spread-row li { flex: 0 0 74vw; scroll-snap-align: center; }
  .reel { padding: 3.4rem 0 3rem; }
  .reel-head { display: block; padding-bottom: 1.4rem; }
  .reel-buttons { display: none; } /* a thumb swipes; no room or need for arrows */
  .tile { flex-basis: 68vw; }
  .reel.opener { padding-top: 2.2rem; }
  .reel.opener .tile { flex-basis: 72vw; }
}
