/* ============================================================
   Refillink, UK bulk fuel market (in preparation)
   Direction: NIGHT DEPOT. A loading bay at four in the morning:
   petrol-black ground, one sodium lamp, cold steel for
   everything the light does not reach. Oswald condensed does
   the signage, Outfit does the reading. One appearance, because
   the scene is a night.
   ============================================================ */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0a1622;
  --ink: #e8edf2;
  --ink-2: #b9c6d1;
  --ink-3: #8fa3b3;
  --steel: #7d93a6;
  --line: rgba(125, 147, 166, 0.22);
  --line-2: rgba(125, 147, 166, 0.12);
  --sodium: #ff7a1a;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  /* where the fuel stands: the level line and the glass share this figure */
  --level: 62%;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* the lamp, and the cold light off the far wall */
  background-image: radial-gradient(
      ellipse 70% 50% at 22% 10%,
      rgba(255, 122, 26, 0.17),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 88% 92%,
      rgba(125, 147, 166, 0.1),
      transparent 70%
    );
  background-attachment: fixed;
}
a {
  color: inherit;
}
::selection {
  background: var(--sodium);
  color: var(--ground);
}
:focus-visible {
  outline: 2px solid var(--sodium);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
p {
  margin: 0;
}

/* ---------- type ---------- */
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 1.1rem + 6.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  max-width: 17ch;
}
h1 .dry {
  color: var(--ink);
}
/* the half of the headline that stands below the level, in the fuel */
h1 .lit {
  display: block;
  color: var(--sodium);
  text-shadow: 0 0 44px rgba(255, 122, 26, 0.45);
}
html.js h1 .lit {
  color: var(--steel);
  text-shadow: none;
  animation: warm 1.6s var(--ease) 0.5s forwards;
}
@keyframes warm {
  to {
    color: var(--sodium);
    text-shadow: 0 0 44px rgba(255, 122, 26, 0.45);
  }
}
.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8ch;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sodium);
  margin-bottom: 1.7rem;
}
.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sodium);
  box-shadow: 0 0 12px 2px rgba(255, 122, 26, 0.7);
}
.mono-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 2rem;
}

/* ---------- header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 34, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.masthead.scrolled {
  border-bottom-color: var(--line);
}
.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark b {
  font-weight: 600;
  color: var(--sodium);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.nav a {
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav a:hover {
  color: var(--sodium);
}
@media (max-width: 720px) {
  .nav a.hide-sm {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) 0;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
}
@media (max-width: 760px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* the sight glass on the side of the tank */
.gauge {
  position: relative;
  z-index: 1;
  width: clamp(2.5rem, 4.5vw, 3.5rem);
  align-self: stretch;
  background: rgba(232, 237, 242, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.gauge__fluid {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: calc(100% - var(--level));
  transform-origin: bottom center;
  background: linear-gradient(
    to bottom,
    rgba(255, 122, 26, 0.42),
    rgba(255, 122, 26, 0.22)
  );
  border-top: 1px solid var(--sodium);
}
@media (max-width: 760px) {
  .gauge {
    display: none;
  }
}

/* the level, running out of the glass and across the page */
.level {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: var(--level);
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 122, 26, 0.12),
    var(--sodium)
  );
  transform-origin: right center;
}
.level::after {
  content: "";
  position: absolute;
  inset: -14px 0 auto 0;
  height: 28px;
  background: linear-gradient(
    to right,
    transparent 40%,
    rgba(255, 122, 26, 0.16)
  );
  filter: blur(6px);
}
html.js .level {
  transform: scaleX(0);
  animation: sweep 1.5s var(--ease) 0.55s forwards;
}
html.js .gauge__fluid {
  transform: scaleY(0);
  animation: pour 1.5s var(--ease) 0.55s forwards;
}
@keyframes sweep {
  to {
    transform: scaleX(1);
  }
}
@keyframes pour {
  to {
    transform: scaleY(1);
  }
}

.grades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- what is coming ---------- */
.spec {
  margin: 0;
  border-top: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 26ch) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block: clamp(1.5rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .spec__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.spec dt {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.spec dd {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.9875rem;
  max-width: 56ch;
}

/* ---------- close ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem);
  line-height: 1;
  max-width: 18ch;
}
.statement .soft {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 46ch;
  margin-top: 1.5rem;
}
.close__actions {
  margin-top: 2.25rem;
}
.close__note {
  margin-top: 2.25rem;
  color: var(--steel);
  font-size: 0.9375rem;
  max-width: 46ch;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ground);
  background: var(--sodium);
  padding: 1rem 1.6rem;
  box-shadow: 0 0 40px -6px rgba(255, 122, 26, 0.55);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  box-shadow: 0 0 56px -4px rgba(255, 122, 26, 0.8);
}
.btn .arw {
  transition: transform 0.2s var(--ease);
}
.btn:hover .arw {
  transform: translateX(4px);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 4vw, 3rem);
  color: var(--steel);
  font-size: 0.8125rem;
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.foot__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.foot__links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.foot__links a:hover {
  color: var(--sodium);
  border-bottom-color: var(--sodium);
}
.foot__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  line-height: 1.9;
  max-width: 80ch;
  opacity: 0.85;
}
.foot__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  /* the lamp is simply already on */
  html.js h1 .lit {
    color: var(--sodium);
    text-shadow: 0 0 44px rgba(255, 122, 26, 0.45);
  }
  html.js .level {
    transform: scaleX(1);
  }
  html.js .gauge__fluid {
    transform: scaleY(1);
  }
}
