/* Stated landing page.
   Black on white. The only colour is the paint, which fills the name. */

:root {
  --paper: #fff;
  --ink: #0a0a0a;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --accent: #2a3df0;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
p, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.24em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: min(100% - 2 * var(--pad), 72rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
}
.skip:focus { top: 0.75rem; }

/* Top bar and footer */

.top, .foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}
.top { padding-block: 1.5rem; }
.foot {
  padding-block: 2.5rem 3rem;
  margin-top: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.tag, .fine {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--mute);
}

/* Hero: the name, filled with paint */

.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }

.giant {
  font-weight: 600;
  font-size: clamp(5rem, 33vw, 26rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin-left: -0.04em;
  padding-bottom: 0.08em;
  background: url("/assets/paint.webp") center 40% / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift {
  from { background-position: 20% 30%; }
  to   { background-position: 80% 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .giant { animation: none; }
}

.headline {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: #333;
}

/* Sections */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
}
@media (min-width: 52rem) {
  .section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.h2 {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose { display: grid; gap: 1rem; max-width: 40rem; }

/* Products */

.products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}
@media (min-width: 40rem) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
.product {
  padding-block: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.product-name {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  white-space: nowrap;
}
.chip-later { color: var(--mute); border-color: var(--line); }
.product-line {
  margin-top: 0.35rem;
  font-weight: 500;
}
.product-text {
  margin-top: 0.5rem;
  color: var(--mute);
  font-size: 1rem;
}
