/* Vellumray — site styles
   Light, paper-toned, type-led. One display face, hairline rules,
   square product icons. No gradients, no shadows, no scroll effects. */

:root {
  color-scheme: light;

  --bg: #f7f6f2;
  --surface: #efede7;
  --ink: #141512;
  --ink-2: #393b36;
  --muted: #6d6f68;
  --line: #e1dfd8;
  --line-strong: #cfcdc4;
  --accent: #3d5a45;
  --accent-soft: #e3e9df;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --gutter: 48px;
  --max: 1200px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

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

::selection {
  background: #dfe6c8;
  color: var(--ink);
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 246 242 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  justify-self: start;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.wordmark span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
}
.main-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.header-inner > .pill {
  justify-self: end;
}

/* ---------- Pills & small parts ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}
.pill--dark {
  background: var(--ink);
  color: var(--bg);
}
.pill--dark:hover {
  background: #2c2e2a;
}
.pill--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.pill--ghost:hover {
  border-color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.status--live {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}
.status--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.link:hover {
  border-color: var(--ink);
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 112px;
  padding-bottom: 96px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
  font-size: 13px;
  color: var(--ink-2);
}
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 auto;
  max-width: 11ch;
  font-size: clamp(52px, 8.4vw, 116px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.052em;
}
h1 em {
  font-size: 1.06em;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.hero-lede {
  max-width: 560px;
  margin: 32px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.hero-actions .pill {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

/* ---------- Products ---------- */

/* Two groups side by side, two products each: four equal columns. */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 24px;
  padding-top: 24px;
}
.group-label {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}
.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
/* Tag sits above the name; icon + tag/name still read as one row. */
.product-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.product-title .status {
  height: 20px;
  padding: 0 8px;
  font-size: 11.5px;
}
.product-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.product > p {
  /* Two lines reserved so every link in a row sits at the same height. */
  min-height: 3.2em;
  margin: 16px 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.product .link {
  align-self: flex-start;
  font-size: 14px;
}

/* ---------- Company ---------- */

.company {
  margin-top: 128px;
  padding: 112px 0;
  background: var(--surface);
}
.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}
.company-lead h2 {
  text-wrap: balance;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.company-lead em {
  font-size: 1.06em;
  color: var(--accent);
}
.company-body > p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.facts {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 15px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.facts a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.15s ease;
}
.facts a:hover {
  border-color: var(--ink);
}
.facts dd span {
  margin: 0 6px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer-line {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
/* ---------- Legal page ---------- */

.legal-header .header-inner {
  grid-template-columns: 1fr auto;
}
.back-link {
  justify-self: end;
  font-size: 14px;
  color: var(--ink-2);
}
.back-link:hover {
  color: var(--ink);
}

.legal-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  justify-content: space-between;
  gap: 64px;
  padding-top: 88px;
}
.legal-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.legal-toc p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.legal-toc a {
  padding: 5px 0;
  color: var(--ink-2);
}
.legal-toc a:hover {
  color: var(--ink);
}

.legal-doc h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section:first-child {
  padding-top: 0;
}
.legal-section h2 {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.legal-section h3 {
  margin: 36px 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal-section h2::first-letter,
.legal-section > p::first-letter,
.legal-section li::first-letter {
  text-transform: uppercase;
}
.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.legal-section .intro {
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
}
.legal-section ul {
  padding-left: 20px;
}
.legal-section li {
  margin-bottom: 8px;
}
.legal-section li::marker {
  color: var(--muted);
}
.legal-section a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.legal-section a:hover {
  text-decoration-color: var(--ink);
}
.legal-section .meta {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  :root {
    --gutter: 32px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legal-toc p {
    width: 100%;
    margin-bottom: 2px;
  }
  .legal-toc a {
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
  }
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 860px) {
  .company-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --radius: 12px;
  }
  html {
    scroll-padding-top: 76px;
  }
  .header-inner {
    height: 60px;
    grid-template-columns: 1fr auto;
  }
  .main-nav {
    display: none;
  }
  .wordmark {
    font-size: 21px;
  }
  .header-inner > .pill {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .tag {
    font-size: 12px;
    padding: 5px 12px 5px 10px;
  }
  h1 {
    margin-top: 0;
    font-size: clamp(44px, 13.4vw, 64px);
    line-height: 0.98;
  }
  .hero-lede {
    margin-top: 24px;
    font-size: 16px;
  }
  .br-desktop {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .products {
    padding-top: 8px;
    gap: 48px;
  }
  .group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .product {
    padding-top: 24px;
  }
  .product > p {
    min-height: 0;
  }

  .company {
    margin-top: 88px;
    padding: 72px 0;
  }
  .company-body > p {
    font-size: 16px;
  }
  .facts > div {
    grid-template-columns: 84px 1fr;
    font-size: 14px;
  }


  .site-footer {
    padding: 20px 0;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-section h2 {
    font-size: 26px;
  }
  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
}

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