/* Catar Petroleum.
   The shemagh's red-and-white check is the brand pattern; the agal's double black band is the stripe. */

:root {
  --red: #e0301e;
  --red-deep: #b3201a;
  --cream: #fff3dc;
  --ink: #16110f;
  --yolk: #ffc629;
  --sand: #f2cf96;

  --font: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1320px;

  --checks: conic-gradient(var(--red) 25%, var(--cream) 0 50%, var(--red) 0 75%, var(--cream) 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ink);
  font: 450 clamp(1rem, .96rem + .2vw, 1.125rem)/1.55 var(--font);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 6px; }

h2 {
  font-size: clamp(2.6rem, 6.6vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -.012em;
  font-variation-settings: "wdth" 80; text-wrap: balance;
}
.hl { white-space: nowrap; background: var(--red); color: var(--cream); padding: 0 .16em .04em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl--yolk { background: var(--yolk); color: var(--ink); }

/* ═════════ The billboard ═════════ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--red) 0%, #e8421f 28%, #f5742c 55%, #ffae45 80%, #ffd566 100%);
  color: var(--cream);
}

.top {
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(14px, 1.8vw, 24px) var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; font-variation-settings: "wdth" 82; }
.brand__mark { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px var(--cream); }
.top__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-weight: 650; }
.top__links a { text-decoration: none; }
.top__links a:not(.top__go):hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.top__go { background: var(--ink); color: var(--cream); padding: .55em 1.1em; border-radius: 999px; transition: background .2s, color .2s; }
.top__go:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 760px) { .top__links a:not(.top__go) { display: none; } }

.hero__sky {
  position: relative;
  height: max(540px, calc(100svh - 225px));
  --cat-w: min(37vw, 56svh, 620px);
}
.hero__sun {
  position: absolute; z-index: 0; left: 50%; bottom: clamp(30px, 6vw, 90px); translate: -50% 50%;
  width: min(86vw, 1040px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff1b8 0 42%, #ffe08a 42% 56%, rgb(255 224 138 / .55) 56% 70%, rgb(255 224 138 / .25) 70% 100%);
}
.hero__word {
  position: absolute; z-index: 1; left: 0; right: 0; top: clamp(-10px, -1vw, 0px);
  text-align: center; text-transform: uppercase;
  font-size: clamp(5.4rem, 25.5vw, 27rem); font-weight: 800; line-height: .84; letter-spacing: -.02em;
  font-variation-settings: "wdth" 75;
  color: var(--cream);
}
.hero__cat {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 3vw, 50px); translate: -50% 0;
  width: var(--cat-w); height: auto; max-width: none;
  filter: drop-shadow(0 18px 30px rgb(80 10 0 / .35));
  animation: rise 1.5s cubic-bezier(.16, .8, .24, 1) both;
}
@keyframes rise { from { translate: -50% 26%; } }
.hero__dunes { position: absolute; z-index: 3; left: 0; bottom: -1px; width: 100%; height: clamp(96px, 15vw, 210px); }
.hero__pj { position: absolute; z-index: 4; color: var(--ink); overflow: visible; }
.hero__pj--a { left: 2.5%; width: clamp(150px, 20vw, 320px); bottom: clamp(6px, 1.4vw, 22px); }
.hero__pj--b { right: 3.5%; width: clamp(110px, 14.5vw, 230px); bottom: clamp(8px, 1.9vw, 30px); }
.hero__pj--c { left: 27%; width: clamp(56px, 7vw, 110px); bottom: clamp(36px, 6vw, 88px); color: #7d2412; z-index: 3; }

.hero__ground {
  position: relative; z-index: 5; background: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: start;
  padding: clamp(4px, .6vw, 10px) var(--gutter) clamp(30px, 4vw, 56px);
}
.hero__line { font-size: clamp(2rem, 4.2vw, 3.7rem); font-weight: 800; line-height: .97; letter-spacing: -.012em; font-variation-settings: "wdth" 82; }
.hero__sub { max-width: 44em; margin-top: .8em; color: rgb(255 243 220 / .78); }

/* The contract address is a licence plate. */
.plate {
  display: grid; justify-items: center; gap: .1em; text-align: center;
  background: var(--cream); color: var(--ink);
  border-radius: 16px; padding: .7em 1.4em .8em;
  box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 7px var(--ink);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s;
}
.plate:hover { transform: rotate(-1.5deg) scale(1.02); }
.plate:active { transform: scale(.98); }
.plate.is-copied { background: var(--yolk); box-shadow: inset 0 0 0 4px var(--yolk), inset 0 0 0 7px var(--ink); }
.plate__top { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plate__top i { font-style: normal; color: var(--red); }
.plate__num { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: .02em; line-height: 1; font-variation-settings: "wdth" 80; }
.plate__full { font-size: .8rem; font-weight: 600; word-break: break-all; opacity: .7; max-width: 46ch; }
.plate--big { margin-inline: auto; padding: 1.1em 2em 1.2em; border-radius: 22px; }
.plate--big .plate__num { font-size: clamp(2.4rem, 8vw, 6rem); }

@media (max-width: 760px) {
  .hero__sky { height: 500px; --cat-w: min(70vw, 330px); }
  .hero__sun { width: 128vw; bottom: 40px; }
  .hero__word { font-size: 33vw; top: 2px; }
  .hero__ground { grid-template-columns: 1fr; }
  .plate--small { justify-self: start; }
  .hero__pj--c { display: none; }
  .hero__pj--a { left: -8%; } .hero__pj--b { right: -5%; }
}

/* ═════════ The week ═════════ */

.week { background: var(--cream); padding: clamp(70px, 9vw, 140px) var(--gutter) clamp(60px, 8vw, 120px); }
.week__head {
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end;
}
.week__story p + p { margin-top: 1em; }
.week__story { max-width: 34em; font-size: 1.08em; }
.exhibit { width: clamp(150px, 15vw, 210px); rotate: 4deg; background: #fff; padding: 10px 10px 8px; box-shadow: 0 14px 30px -10px rgb(22 17 15 / .4); }
.exhibit img { width: 100%; height: auto; }
.exhibit figcaption { font-size: .74rem; font-weight: 600; line-height: 1.25; padding-top: 8px; }

.days {
  max-width: var(--max); margin: clamp(48px, 7vw, 100px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px) clamp(16px, 2.4vw, 36px);
}
.day:nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 72px); }
.day svg { width: 100%; height: auto; border-radius: clamp(18px, 2.4vw, 34px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.day:hover svg { transform: translateY(-8px) rotate(-.8deg); }
.day:nth-child(even):hover svg { transform: translateY(-8px) rotate(.8deg); }
.day h3 { margin-top: .8em; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 800; letter-spacing: -.005em; line-height: 1.05; font-variation-settings: "wdth" 80; }
.day h3 span { display: inline-block; margin-right: .35em; padding: .05em .4em .1em; border-radius: .3em; background: var(--ink); color: var(--cream); font-size: .7em; vertical-align: .12em; text-transform: uppercase; letter-spacing: .04em; }
.day p { margin-top: .35em; max-width: 26em; }
.week__sat { max-width: var(--max); margin: clamp(30px, 4vw, 56px) auto 0; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 650; }
.week__sat b { display: inline-block; margin-right: .4em; padding: .05em .45em .1em; border-radius: .3em; background: var(--red); color: var(--cream); font-size: .75em; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; vertical-align: .1em; }

@media (max-width: 980px) {
  .week__head { grid-template-columns: 1fr auto; }
  .week__head h2 { grid-column: 1 / -1; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day:nth-child(3n + 2) { margin-top: 0; }
  .day:nth-child(even) { margin-top: clamp(0px, 7vw, 56px); }
}
@media (max-width: 560px) {
  .week__head { grid-template-columns: 1fr; }
  .exhibit { justify-self: end; margin-top: -10px; }
  .days { grid-template-columns: 1fr; }
  .day:nth-child(even) { margin-top: 0; }
}

/* ═════════ The pump ═════════ */

.station { background: var(--ink); color: var(--cream); padding: clamp(80px, 10vw, 150px) var(--gutter); position: relative; }
.station::before { content: ""; position: absolute; inset: 0 0 auto; height: 28px; background: var(--checks) 0 0 / 28px 28px; }
.station__inner {
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: center;
}
.station__copy p { max-width: 38em; margin-top: 1.1em; color: rgb(255 243 220 / .82); }
.station__copy h2 + p { margin-top: 1.6em; }
.station__copy a { color: var(--yolk); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The pump is built from boxes; every dimension hangs off its font-size. */
.pump { --u: clamp(9px, 1.05vw, 13px); font-size: var(--u); position: relative; width: 33em; margin-inline: auto; padding-right: 8em; }
.pump__globe {
  width: 13em; height: 13em; margin-inline: auto; border-radius: 50%; position: relative; z-index: 2;
  background: var(--cream); padding: .9em;
  box-shadow: 0 0 0 .5em var(--red), 0 0 0 0 rgb(255 198 41 / 0);
  transition: box-shadow .4s;
}
.pump__globe svg { width: 100%; height: 100%; border-radius: 50%; }
.pump.is-pumping .pump__globe { box-shadow: 0 0 0 .5em var(--red), 0 0 6em 1.6em rgb(255 198 41 / .45); }
.pump__neck { width: 5em; height: 2.2em; margin: -.4em auto 0; background: var(--red-deep); }
.pump__cap { height: 3.4em; border-radius: 1.6em 1.6em 0 0; background: var(--red); margin-inline: 1.2em; }
.pump__body {
  background: var(--red); border-radius: .6em .6em 0 0; padding: 1.6em 1.6em 2em; position: relative;
  display: grid; gap: 1.5em; justify-items: center;
}
.pump__display { width: 100%; background: var(--ink); border-radius: 1em; padding: 1.3em 1.4em; box-shadow: inset 0 0 0 .3em #2a211d; display: grid; gap: 1.1em; }
.row { display: grid; grid-template-columns: 1fr auto; gap: .2em .8em; align-items: baseline; }
.row__label { grid-column: 1 / -1; font-size: 1.15em; font-weight: 600; color: rgb(255 243 220 / .65); }
.row__num { font-size: 3em; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 78; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.row__num--hot { color: var(--yolk); }
.row__unit { font-size: 1.1em; font-weight: 700; color: rgb(255 243 220 / .65); }
.pump__checks { width: calc(100% + 3.2em); height: 28px; background: var(--checks) 0 0 / 28px 28px; }
.pump__lever {
  font-size: 1.5em; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; font-variation-settings: "wdth" 80;
  background: var(--yolk); color: var(--ink); border-radius: 999px; padding: .75em 1.5em;
  box-shadow: 0 .35em 0 #c58f00; transition: transform .08s, box-shadow .08s; user-select: none; -webkit-user-select: none; touch-action: none;
}
.pump__lever:hover { filter: brightness(1.05); }
.pump.is-pumping .pump__lever, .pump__lever:active { transform: translateY(.3em); box-shadow: 0 .05em 0 #c58f00; }
.pump__reset { font-size: 1.15em; font-weight: 700; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; margin-top: -.6em; }
.pump__name { font-size: 4.2em; font-weight: 800; line-height: .8; text-transform: uppercase; letter-spacing: -.02em; color: var(--cream); font-variation-settings: "wdth" 75; }
.pump__base { height: 2.2em; margin-inline: -1.4em; background: #2a211d; border-radius: .6em .6em 0 0; }
.pump__hose { position: absolute; left: calc(100% - 8em - 2px); top: 20em; width: 8.4em; height: auto; overflow: visible; }
.pump__drip { opacity: 0; }
.pump.is-pumping .pump__drip { animation: drip .55s linear infinite; }
@keyframes drip { 0% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 110px; } }

.tally { margin-top: clamp(30px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.2em clamp(24px, 4vw, 64px); }
.tally__main { grid-column: 1 / -1; }
.tally dt { font-weight: 600; color: rgb(255 243 220 / .6); font-size: .95em; }
.tally dd { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.tally__main dd { font-size: clamp(3.4rem, 8vw, 7rem); line-height: .95; letter-spacing: -.015em; color: var(--yolk); font-variation-settings: "wdth" 76; }
.tally__main dd b { font-weight: 800; }
.tally__src { display: flex; align-items: center; gap: 10px; font-size: .9em; margin-top: 1.4em !important; color: rgb(255 243 220 / .55) !important; }
.led { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 243 220 / .3); flex: none; }
.is-live .led { background: #55d06a; box-shadow: 0 0 0 0 rgb(85 208 106 / .6); animation: led 2.2s ease-out infinite; }
@keyframes led { to { box-shadow: 0 0 0 10px rgb(85 208 106 / 0); } }

@media (max-width: 900px) {
  .station__inner { grid-template-columns: 1fr; }
  .pump { --u: clamp(8px, 2.55vw, 12px); order: 2; margin-top: 20px; max-width: 100%; }
}

/* ═════════ House rules ═════════ */

.rules { background: var(--yolk); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.rules__head { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.rules__head p { max-width: 24em; font-weight: 600; font-size: 1.1em; }

.wall {
  max-width: var(--max); margin: clamp(44px, 6vw, 84px) auto 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); align-items: center;
}
.sign {
  --screw: radial-gradient(circle, rgb(0 0 0 / .45) 0 3px, rgb(255 255 255 / .35) 3px 4.5px, transparent 5px);
  grid-column: span 4; position: relative; min-height: 15em;
  display: grid; place-content: center; justify-items: center; gap: .7em; text-align: center;
  padding: clamp(24px, 3vw, 44px); border-radius: 20px;
  background-image: var(--screw), var(--screw), var(--screw), var(--screw);
  background-size: 12px 12px; background-repeat: no-repeat;
  background-position: 16px 16px, calc(100% - 16px) 16px, 16px calc(100% - 16px), calc(100% - 16px) calc(100% - 16px);
  box-shadow: 0 16px 0 -8px rgb(22 17 15 / .16);
  transition: rotate .45s cubic-bezier(.3, 1.6, .5, 1);
}
.sign b { font-size: clamp(1.9rem, 3.5vw, 3.1rem); font-weight: 800; line-height: .94; letter-spacing: -.005em; text-transform: uppercase; font-variation-settings: "wdth" 76; }
.sign span { font-weight: 550; line-height: 1.35; max-width: 19em; }
.sign:nth-child(odd) { rotate: -1.4deg; } .sign:nth-child(even) { rotate: 1.2deg; } .sign:nth-child(3n) { rotate: .4deg; }
.sign:hover { rotate: 0deg; }

.sign--red { background-color: var(--red); color: var(--cream); box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 10px var(--cream), 0 16px 0 -8px rgb(22 17 15 / .16); }
.sign--ink { background-color: var(--ink); color: var(--yolk); }
.sign--ink span { color: var(--cream); }
.sign--cream { background-color: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 8px var(--red), 0 16px 0 -8px rgb(22 17 15 / .16); }
.sign--cream b { color: var(--red); }
.sign--plain { box-shadow: inset 0 0 0 8px var(--ink), 0 16px 0 -8px rgb(22 17 15 / .16); }
.sign--plain b { color: var(--ink); }
.sign--round { grid-column: span 3; aspect-ratio: 1; border-radius: 50%; min-height: 0; padding: 13%; background-position: 50% 14px, 50% calc(100% - 14px), -99px 0, -99px 0; }
.sign--round b { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.sign--round:first-child b { font-size: clamp(4rem, 8.5vw, 8rem); }
.sign--round span { font-size: .92em; max-width: 14em; }
.sign--wide { grid-column: span 5; }
.sign--small { grid-column: span 3; }
.sign--oval { grid-column: span 6; border-radius: 50%; background-color: var(--cream); padding-inline: 12%; background-position: 50% 14px, 50% calc(100% - 14px), -99px 0, -99px 0; box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 10px var(--ink), 0 16px 0 -8px rgb(22 17 15 / .16); }
.sign--oval b { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
/* the warning diamond: a rotated square with upright contents */
.sign--diamond { grid-column: span 3; aspect-ratio: 1; min-height: 0; padding: 0; background: none; box-shadow: none; rotate: 0deg !important; }
.sign--diamond::before {
  content: ""; position: absolute; inset: 13%; rotate: 45deg; border-radius: 18px; background: var(--ink);
  box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 10px var(--yolk);
}
.sign--diamond > div { position: relative; display: grid; gap: .5em; justify-items: center; color: var(--yolk); padding: 0 22%; }
.sign--diamond span { color: var(--cream); font-size: .9em; }
.sign--diamond b { font-size: clamp(1.7rem, 3vw, 2.7rem); }

@media (max-width: 1080px) {
  .sign, .sign--wide, .sign--oval, .sign--small { grid-column: span 6; }
  .sign--round, .sign--diamond { grid-column: span 6; max-width: 380px; width: 100%; justify-self: center; }
}
@media (max-width: 620px) {
  .sign, .sign--wide, .sign--oval, .sign--small, .sign--round, .sign--diamond { grid-column: 1 / -1; }
  .sign { min-height: 12em; }
  .sign--round, .sign--diamond { max-width: 310px; }
}

/* ═════════ Exits ═════════ */

.exits { background: var(--red); color: var(--cream); padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(70px, 9vw, 130px); position: relative; }
.exits::before { content: ""; position: absolute; inset: 0 0 auto; height: 28px; background: var(--checks) 0 0 / 28px 28px; }
.exits h2 { max-width: var(--max); margin-inline: auto; }
.exits__signs { max-width: var(--max); margin: clamp(36px, 5vw, 70px) auto clamp(50px, 7vw, 100px); display: grid; gap: clamp(14px, 1.8vw, 24px); }
.exit {
  --tip: clamp(40px, 6vw, 90px);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em 1.2em;
  background: var(--cream); color: var(--ink); text-decoration: none;
  padding: clamp(18px, 2.4vw, 34px) calc(var(--tip) + 20px) clamp(18px, 2.4vw, 34px) clamp(22px, 3vw, 48px);
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
  border-radius: 14px 0 0 14px;
  width: 100%; transition: width .45s cubic-bezier(.2, .8, .2, 1), background .2s;
}
.exit:nth-child(1) { width: 78%; } .exit:nth-child(2) { width: 88%; } .exit:nth-child(3) { width: 70%; }
.exit:hover { width: 100%; background: var(--yolk); }
.exit b { font-size: clamp(2rem, 5.4vw, 4.6rem); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; font-variation-settings: "wdth" 76; }
.exit span { font-weight: 600; font-size: 1.05em; }
@media (max-width: 700px) { .exit:nth-child(n) { width: 100%; } }

.foot { background: var(--ink); color: rgb(255 243 220 / .62); padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(44px, 6vw, 80px); display: grid; gap: 14px; font-size: .9rem; line-height: 1.6; justify-items: start; }
.foot p { max-width: 62em; }
.foot__mark { width: 52px; height: 52px; border-radius: 50%; }
.foot__fine { opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
