/* Pitstop Smokehouse & Cafe — homepage demo
   One family (Archivo): extra-condensed black for display, normal width for text.
   One motif: the octagon from Pitstop's own badge cuts the buttons, photos and bullets. */

/* Archivo, straight from Google's font server (no separate stylesheet to wait for) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: block;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdfoLmvDIaK18A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: block;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdnoLmvDIaI.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #0d0a08;      /* warm black */
  --ground-2: #1c1714;
  --paper: #f3efe8;       /* warm off-white */
  --paper-2: #e7e1d7;
  --ink: #15110e;
  --red: #e80016;         /* sampled from Pitstop's own posters */
  --margin: 48px;
  --gap: 24px;
  --cut: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; line-height: 1.5; font-weight: 400;
  background: var(--ground); color: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .dates, .plate strong, .fact strong, .oct-list strong, .hours dd {
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.005em;
}
h1, h2 { line-height: 0.86; }
h2 { font-size: 136px; }

/* ---------- buttons: flat, one fill, corners cut like the badge ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; font-size: 17px; font-weight: 700; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 140ms cubic-bezier(.2, .7, .2, 1), background-color 140ms;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn:active { transform: scale(0.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--quiet { background: rgba(243, 239, 232, 0.14); color: var(--paper); height: 46px; padding: 0 22px; font-size: 16px; --cut: 11px; }
.btn--big { height: 64px; padding: 0 36px; font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { background: #c40013; }
  .btn--light:hover { background: #fff; }
  .btn--quiet:hover { background: rgba(243, 239, 232, 0.24); }
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- navigation: wordmark, four links, one action ---------- */
.nav {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 40px;
  padding: 26px var(--margin);
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; font-size: 17px; font-weight: 600; }
.nav__links a { padding: 8px 0; }
.nav__burger { display: none; }

/* ---------- hero: the film, with the type in its own shadow ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ground) url(assets/poster-desktop-v4.jpg) center / cover no-repeat; }
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 8, 0.74) 0%, rgba(13, 10, 8, 0) 21%),
    linear-gradient(90deg, rgba(13, 10, 8, 0.92) 0%, rgba(13, 10, 8, 0.76) 22%, rgba(13, 10, 8, 0.30) 35%, rgba(13, 10, 8, 0) 46%);
}
.hero__copy { position: absolute; left: var(--margin); bottom: 9.5vh; max-width: 44vw; }
.hero h1 { font-size: 6.3vw; }
.hero p { margin-top: 2.6vh; max-width: 23em; font-size: 20px; line-height: 1.42; font-weight: 500; text-wrap: balance; }
.hero .actions { margin-top: 3.4vh; }
.narrow { display: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 150px var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--dark { background: var(--ground); color: var(--paper); }
.lede { font-size: 21px; line-height: 1.45; max-width: 23em; }
.fact { font-size: 18px; max-width: 24em; }
.fact strong, .plate strong { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; }

/* photographs: square, with one corner cut */
.plate img, .ad__main img, .ad__strip img, .visit__photo img {
  width: 100%; object-fit: cover;
  clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%, 0 44px);
}
.plate figcaption { margin-top: 20px; font-size: 18px; max-width: 24em; }

/* Menu */
.menu > h2 { grid-column: 1 / -1; margin-bottom: 64px; }
.menu__head { grid-column: 1 / span 4; }
.menu__head .lede { margin-top: 0; }
.oct-list { margin-top: 38px; display: grid; gap: 20px; }
.oct-list li { position: relative; padding-left: 32px; }
.oct-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: var(--red);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.oct-list strong { display: block; font-size: 32px; line-height: 1; }
.oct-list span { display: block; margin-top: 4px; font-size: 18px; }
.menu__head .actions { margin-top: 44px; }
.menu__a { grid-column: 5 / span 4; }
.menu__b { grid-column: 9 / span 4; margin-top: 130px; }
.menu .plate img { aspect-ratio: 3 / 4; }
.menu__b img { object-position: 50% 42%; }

/* After Dark */
.ad { row-gap: 0; grid-template-rows: auto 1fr; }
.ad__main { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.ad__main img { aspect-ratio: 9 / 15; object-position: 50% 30%; }
.ad__copy { grid-column: 7 / span 6; grid-row: 1; }
.ad__copy .lede { margin-top: 30px; max-width: 25em; }
.ad__copy .fact { margin-top: 30px; }
.ad__copy .actions { margin-top: 32px; }
.ad__strip { grid-column: 7 / span 6; grid-row: 2; align-self: end; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 56px; }
.ad__strip img { aspect-ratio: 4 / 5; clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px); }
.ad__strip img:nth-child(1) { object-position: 50% 52%; }
.ad__strip img:nth-child(2) { object-position: 50% 62%; }
.ad__strip img:nth-child(3) { object-position: 50% 55%; }

/* Tailgate Sunday */
.tg { align-items: start; }
.tg__bobby { grid-column: 1 / span 4; }
.tg__bobby img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
.tg__copy { grid-column: 5 / span 4; padding-right: 12px; }
.tg h2 { font-size: 116px; }
.tg__copy .lede { margin-top: 30px; }
.dates { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 64px; line-height: 0.95; }
.tg__copy .fact { margin-top: 30px; }
.tg__card {
  grid-column: 9 / span 4; background: var(--red); color: #fff; padding: 44px 40px 48px;
  clip-path: polygon(44px 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%, 0 44px);
}
.tg__card h3 { font-size: 54px; line-height: 0.9; }
.tg__when { margin-top: 12px; font-size: 17px; }
.tg__card h4 { margin-top: 30px; font-size: 18px; font-weight: 700; }
.tg__card ul { margin-top: 10px; display: grid; gap: 10px; }
.tg__card li { font-size: 27px; line-height: 1.05; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.tg__card em { display: block; margin-top: 3px; font-style: normal; font-size: 16px; line-height: 1.3; font-weight: 500; font-stretch: 100%; text-transform: none; }

/* Visit */
.visit { padding-bottom: 0; row-gap: 0; }
.visit__copy { grid-column: 1 / span 6; align-self: center; }
.visit h2 { font-size: 190px; }
.address { margin-top: 34px; font-size: 36px; line-height: 1.16; font-weight: 600; }
.hours { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; }
.hours dt { font-size: 17px; }
.hours dd { margin-top: 4px; font-size: 40px; line-height: 1; }
.visit .actions { margin-top: 46px; }
.visit__photo { grid-column: 8 / span 5; }
.visit__photo img { aspect-ratio: 4 / 5; object-position: 50% 38%; }
.close { grid-column: 1 / -1; margin-top: 130px; padding: 44px 0 52px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; background: var(--ground); box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax); }
.close { background: var(--ground-2); box-shadow: 0 0 0 100vmax var(--ground-2); }
.close img { height: 76px; width: auto; }
.close p { font-size: 16px; max-width: 26em; text-align: right; }

/* tall screens of any width get the phone cut of the film (matches the script in the page) */
@media (orientation: portrait) { .hero { background-image: url(assets/poster-phone-v4.jpg); } }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --margin: 20px; --gap: 16px; --cut: 12px; }
  .nav { padding: calc(18px + env(safe-area-inset-top, 0px)) var(--margin) 18px; }
  .nav__logo img { height: 27px; }
  .nav__links, .nav__order { display: none; }
  .nav__burger { display: block; margin-left: auto; font-size: 17px; font-weight: 700; padding: 6px 0; }
  .hero { min-height: 0; background-image: url(assets/poster-phone-v4.jpg); }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(13, 10, 8, 0.88) 0%, rgba(13, 10, 8, 0.62) 9%, rgba(13, 10, 8, 0) 21%),
      linear-gradient(180deg, rgba(13, 10, 8, 0) 58%, rgba(13, 10, 8, 0.82) 71%, rgba(13, 10, 8, 0.95) 100%);
  }
  .hero__copy { left: var(--margin); right: var(--margin); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .hero h1 { font-size: 14.2vw; }
  .hero p { margin-top: 8px; font-size: 16px; }
  .wide { display: none; } .narrow { display: inline; }
  .hero .actions { margin-top: 14px; flex-wrap: nowrap; }
  .hero .btn { flex: 1; height: 50px; padding: 0 12px; font-size: 16px; }
  h2, .tg h2 { font-size: 17.4vw; }
  .menu > h2 { margin-bottom: 0; }
  .sec { padding: 84px var(--margin); display: block; }
  .sec > * + * { margin-top: 40px; }
  .menu__b { margin-top: 40px; }
  .ad__strip { margin-top: 16px; }
  .dates { font-size: 15vw; }
  .visit h2 { font-size: 24vw; }
  .address { font-size: 26px; }
  .hours { grid-template-columns: 1fr; }
  .close { margin-top: 70px; flex-direction: column; align-items: flex-start; }
  .close p { text-align: left; }
}

/* ---------- demo render modes ---------- */
.is-overlay, .is-overlay body { background: transparent; }
.is-overlay .hero { background: transparent; }
.is-overlay .hero__film { display: none; }
.is-overlay main > section:not(.hero) { display: none; }
.is-only body { background: #ff00ff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
