/* negbeta.com: one grotesk, neutral paper, ink, hairlines. Type and spacing do the work. */

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f2ee;
  --paper-raised: #e9e9e4;
  --ink: #141413;
  --ink-2: #5f5f5a;
  --ink-3: #8a8a84;
  --rule: rgba(20, 20, 19, 0.14);
  --live: #2f7a4a;
  --pending: #a7a39a;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Top bar */
.top { border-bottom: 1px solid var(--rule); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px;
}
.mark {
  font-weight: 650; font-size: 17px; letter-spacing: -0.02em; text-decoration: none;
}
.top-nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .top-nav a:not(:last-child) { display: none; }
}

/* Intro */
.intro { padding-top: clamp(64px, 12vw, 152px); padding-bottom: clamp(56px, 8vw, 104px); }
.statement {
  font-weight: 560;
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
}
.intro-copy {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 30em;
}

/* Section heads */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--ink);
  padding: 14px 0 0;
}
.section-head h2, .company h2 {
  font-size: 14px; font-weight: 600; letter-spacing: 0;
}

/* Products */
.products { padding-bottom: clamp(56px, 8vw, 112px); }
.product {
  display: grid; gap: 24px 48px;
  grid-template-columns: 1fr;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--rule);
}
.product:first-of-type { padding-top: clamp(28px, 4vw, 56px); }
.product-name {
  font-weight: 560; font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -0.04em; line-height: 1;
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 14px; font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--live); }
.status-pending { color: var(--ink-2); }
.status-pending .status-dot { background: transparent; border: 1.5px solid var(--pending); }
.product-link { margin-top: 20px; font-size: 15px; }
.product-lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; letter-spacing: -0.012em; max-width: 30em; }
.product-text { margin-top: 18px; color: var(--ink-2); max-width: 36em; }
.product-figure img {
  width: 100%; aspect-ratio: 27 / 35; object-fit: cover;
  border-radius: 50% 50% 4px 4px / 38.6% 38.6% 4px 4px;
  background: var(--paper-raised);
}
.product-figure { max-width: 300px; }

@media (min-width: 900px) {
  .product { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .product-meta { grid-column: 1 / span 4; padding-right: 32px; }
  .product-body { grid-column: 5 / span 6; }
  .product-lead .product-body { grid-column: 5 / span 5; }
  .product-figure { grid-column: 10 / span 3; max-width: none; }
}

/* Company */
.company { padding-bottom: clamp(72px, 10vw, 140px); }
.company-grid {
  display: grid; gap: 20px 48px; grid-template-columns: 1fr;
}
.company-grid h2 { border-top: 1px solid var(--ink); padding-top: 14px; }
.company-body { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 14px; max-width: 40em; }
.company-body p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; }
@media (min-width: 900px) {
  .company-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .company-grid h2 { grid-column: 1 / span 4; }
  .company-body { grid-column: 5 / span 6; border-top-color: var(--ink); }
}

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-grid {
  display: grid; gap: 20px 48px; grid-template-columns: 1fr;
  font-size: 13px; line-height: 1.6;
}
.foot-mark { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.foot-legal { color: rgba(242, 242, 238, 0.66); max-width: 46em; }
.foot-nav { display: flex; gap: 20px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-copy { color: rgba(242, 242, 238, 0.5); }
.foot a:focus-visible { outline-color: var(--paper); }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .foot-mark { grid-column: 1 / span 4; }
  .foot-legal { grid-column: 5 / span 5; }
  .foot-nav { grid-column: 10 / span 3; justify-content: flex-end; }
  .foot-copy { grid-column: 1 / span 4; }
}

/* Legal pages and 404 */
.legal-hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: 32px; }
.legal-kicker { font-size: 14px; color: var(--ink-3); }
.legal-title {
  margin-top: 12px;
  font-weight: 560; font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.04em; line-height: 1;
}
.legal-meta { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.legal-body { padding-bottom: clamp(64px, 9vw, 120px); }
.legal-body .wrap > * { max-width: 760px; }
.legal-body .wrap > :first-child { border-top: 1px solid var(--ink); padding-top: 20px; }
.legal-body h2 {
  margin-top: 40px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.legal-body p, .legal-body li { margin-top: 12px; color: var(--ink-2); }
.legal-body ul { margin: 12px 0 0; padding-left: 20px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body address { font-style: normal; margin-top: 12px; color: var(--ink-2); }

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