/*
  Chunky Lab: one stylesheet for both pages.

  The type and colour are Wheelhouse's own (packages/shared/src/theme/tokens.ts):
  paper ground, white containers, ink text, apricot as the one small splash.
  Fraunces for display, NB International Pro for everything else.
*/

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'NB International Pro';
  src: url('/fonts/NBInternationalPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'NB International Pro';
  src: url('/fonts/NBInternationalPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'NB International Pro';
  src: url('/fonts/NBInternationalPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f9faf7;
  --surf: #ffffff;
  --t1: #020003;
  --t2: rgba(2, 0, 3, 0.66);
  --t3: rgba(2, 0, 3, 0.48);
  --line: rgba(2, 0, 3, 0.08);
  --accent: #f9b868;
  --lift: 0 1px 2px rgba(2, 0, 3, 0.04), 0 8px 24px rgba(2, 0, 3, 0.06);
  --highlight: none;

  --display: 'Fraunces', Georgia, serif;
  --body: 'NB International Pro', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 20px;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111115;
    --surf: #1f1f25;
    --t1: #f4f4f0;
    --t2: rgba(244, 244, 240, 0.68);
    --t3: rgba(244, 244, 240, 0.48);
    --line: rgba(255, 255, 255, 0.07);
    --lift: none;
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- header ---- */

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 76px;
}

.wordmark {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

/* ---- type ---- */

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
}

.lede {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--t2);
}

p {
  margin: 8px 0 0;
  color: var(--t2);
}

/* ---- sections ---- */

.hero {
  padding: 72px 0 88px;
}

.section {
  padding: 0 0 88px;
}

.section h2 {
  margin-bottom: 24px;
}

.card {
  background: var(--surf);
  border-radius: 28px;
  box-shadow: var(--lift), var(--highlight);
}

/* An app on the home page: the whole card is the link. */
.app-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.app-card:hover {
  transform: translateY(-2px);
}

.app-card h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.app-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
}

.contact {
  font-size: 20px;
}

.contact a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---- Wheelhouse page ---- */

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
}

.product .app-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
}

.store {
  margin-top: 32px;
}

.store a {
  display: inline-block;
}

.store img {
  height: 54px;
  width: auto;
}

.store .note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--t3);
}

.shot {
  justify-self: center;
  width: min(100%, 340px);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--lift), var(--highlight);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 24px;
}

@media (min-width: 760px) {
  .product {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--t3);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--t3);
}
