/* Turbo Shandy Labs. Colours, type and tracking follow brand kit v1 (tokens/brand-tokens.css). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #073a44;
  --mineral: #e5f0e9;
  --signal: #e6572a;
  --white: #ffffff;

  --bg: var(--petrol);
  --ink: var(--mineral);
  --muted: rgb(229 240 233 / 0.68);
  --rule: rgb(229 240 233 / 0.16);
  --rule-strong: var(--mineral);
  --tile: rgb(229 240 233 / 0.06);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tracking-display: -0.03em;
  --tracking-body: -0.01em;
  --tracking-label: 0.08em;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0 auto;
  max-width: calc(var(--max) + var(--gutter) * 2);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--gutter), env(safe-area-inset-left));
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: auto;
  height: 28px;
}

/* Intro */

main {
  flex: 1;
}

.intro {
  padding: clamp(56px, 12vw, 128px) 0 clamp(64px, 12vw, 128px);
}

h1 {
  max-width: 15em;
  margin: 0;
  font-weight: 700;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.lede {
  max-width: 32em;
  margin: clamp(20px, 3vw, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
}

/* Sections */

section + section {
  margin-top: clamp(64px, 10vw, 104px);
}

/* The orange tick echoes the terminal chip on the monogram's L. */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 10px;
  height: 6px;
  background: var(--signal);
  transform: skewX(-30deg);
}

/* Products */

.products {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon desc"
    "icon host";
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.product img,
.product-tile {
  grid-area: icon;
  align-self: start;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--rule);
}

.product-tile {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.product-name {
  grid-area: name;
  display: flex;
  flex-direction: column;
}

.product-name strong {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-name span {
  color: var(--muted);
  font-size: 14px;
}

.product-description {
  grid-area: desc;
  margin-top: 4px;
}

.product-host {
  grid-area: host;
  color: var(--muted);
  font-size: 14px;
}

a.product:hover .product-name strong {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

a.product:hover .product-host {
  color: var(--ink);
}

@media (min-width: 760px) {
  .product {
    grid-template-columns: 56px minmax(0, 13rem) minmax(0, 1fr) auto;
    grid-template-areas: "icon name desc host";
    column-gap: 24px;
    padding: 18px 0;
  }

  .product img,
  .product-tile {
    align-self: center;
  }

  .product-description {
    margin-top: 0;
    max-width: 34em;
  }

  .product-host {
    text-align: right;
  }
}

/* Footer */

.site-footer {
  margin-top: clamp(80px, 12vw, 128px);
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

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