/* Genco Oil holding page. Colours, type and spacing are the full site's tokens (packages/tokens/src/genco.json). */
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0a130b;
  --forest: #17311c;
  --forest-deep: #1d5b2b;
  --leaf: #24a74a;
  --lime: #e0e11b;
  --ink: #152818;
  --ink-2: #3e4b40;
  --on-dark: #dde4d9;
  --on-dark-2: #c4d0c0;
  --fog: #f2f5ef;
  --line: #dce2d8;
  --line-footer: #2f4231;
  --heading: 'Instrument Sans', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(20px, 8px + 3.4vw, 64px);
  --section: clamp(64px, 44px + 4vw, 112px);
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--ink);
  background: #fff;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
p {
  margin: 0;
}
.wrap {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-deep);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--leaf);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.button--accent {
  background: var(--lime);
  color: var(--night);
}
.button--outline {
  border: 1px solid rgb(255 255 255 / 0.55);
  color: #fff;
}
.button--accent:hover {
  background: #eef02e;
}
.button--outline:hover {
  background: rgb(255 255 255 / 0.08);
}

/* Header and hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--night);
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 19 11 / 0.88) 0%, rgb(10 19 11 / 0.6) 55%, rgb(10 19 11 / 0.25) 100%),
    linear-gradient(0deg, rgb(10 19 11 / 0.7) 0%, transparent 40%);
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.header img {
  height: 30px;
  width: auto;
}
.header .button {
  min-height: 44px;
  padding: 10px 18px;
}
.hero__body {
  padding-top: clamp(140px, 110px + 6vw, 230px);
  padding-bottom: clamp(140px, 100px + 6vw, 200px);
  max-width: calc(780px + 2 * var(--gutter));
  margin: 0;
}
.hero .eyebrow {
  color: var(--on-dark);
}
.hero .eyebrow::before {
  background: var(--lime);
}
.hero h1 {
  font-size: clamp(36px, 22px + 3.4vw, 70px);
  margin: 22px 0 24px;
}
.hero__intro {
  max-width: 600px;
  font-size: clamp(16px, 15px + 0.3vw, 19px);
  color: var(--on-dark);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Figures overlap the bottom of the hero */
.figures {
  position: relative;
  margin-top: -96px;
}
.figures ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.figures li {
  background: #fff;
  border-radius: 4px;
  padding: 26px 24px 28px;
  box-shadow:
    0 18px 40px -24px rgb(10 19 11 / 0.35),
    0 0 0 1px var(--line);
}
.figures li::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--leaf), var(--lime));
}
.figures strong {
  display: block;
  font: 600 clamp(34px, 26px + 1.6vw, 52px) / 1 var(--heading);
  letter-spacing: -0.03em;
}
.figures b {
  display: block;
  margin-top: 14px;
  font-size: 15px;
}
.figures span {
  font-size: 14px;
  color: var(--ink-2);
}

/* Who we are */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.about h2 {
  font-size: clamp(22px, 17px + 1.1vw, 32px);
  line-height: 1.25;
  margin: 22px 0 24px;
}
.about p + p {
  margin-top: 14px;
}
.about p {
  color: var(--ink-2);
}
figure {
  margin: 0;
  position: relative;
}
figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(0deg, rgb(10 19 11 / 0.75), transparent);
  border-radius: 0 0 4px 4px;
}

/* Products */
.products {
  background: var(--fog);
  padding: var(--section) 0;
}
.products h2 {
  font-size: clamp(29px, 21px + 1.9vw, 48px);
  margin: 22px 0 16px;
}
.products__intro {
  max-width: 560px;
  color: var(--ink-2);
}
.products ul {
  list-style: none;
  margin: clamp(32px, 24px + 2vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.products li {
  background: #fff;
  border-radius: 4px;
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: 0 0 0 1px var(--line);
}
.products h3 {
  font-size: clamp(20px, 18px + 0.5vw, 24px);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.products li p {
  font-size: 15px;
  color: var(--ink-2);
}
.chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e1f0e3;
  color: var(--forest-deep);
}
.chip--planned {
  background: #fbf0d2;
  color: #7a5200;
}

/* Close to the source */
.source {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.source h2 {
  font-size: clamp(29px, 21px + 1.9vw, 48px);
  margin: 22px 0 20px;
}
.source p {
  color: var(--ink-2);
}
.source p + p {
  margin-top: 14px;
}

/* Contact and footer */
.contact {
  background: var(--night);
  color: var(--on-dark);
  padding: var(--section) 0 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: var(--section);
}
.contact .eyebrow {
  color: var(--on-dark);
}
.contact .eyebrow::before {
  background: var(--lime);
}
.contact h2 {
  color: #fff;
  font-size: clamp(29px, 21px + 1.9vw, 48px);
  margin: 22px 0 20px;
}
.contact dl {
  margin: 0;
  border-top: 1px solid var(--line-footer);
}
.contact dl div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-footer);
}
.contact dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  padding-top: 3px;
}
.contact dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
}
.contact dd a {
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}
.contact dd small {
  display: block;
  font-size: 14px;
  color: var(--on-dark-2);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line-footer);
  font-size: 13px;
  color: var(--on-dark-2);
}
.footer img {
  height: 26px;
  width: auto;
}
.footer p {
  max-width: 640px;
}

@media (max-width: 900px) {
  .figures ul,
  .products ul {
    grid-template-columns: 1fr 1fr;
  }
  .about,
  .source,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .source figure {
    order: -1;
  }
}
@media (max-width: 520px) {
  .header img {
    height: 26px;
  }
  .figures ul {
    gap: 10px;
  }
  .figures li {
    padding: 20px 16px 22px;
  }
  .products ul {
    grid-template-columns: 1fr;
  }
  .contact dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Page not found */
.missing {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.missing img {
  height: 32px;
  width: auto;
  margin-bottom: 40px;
}
.missing h1 {
  font-size: clamp(29px, 21px + 1.9vw, 48px);
}
.missing p {
  max-width: 520px;
  color: var(--ink-2);
}
