/* Righteous Ventures design system
   Type: Source Serif 4 (headings) + Source Sans 3 (body), self-hosted latin subsets.
   Space: 4px base. Palette is forest + paper. No third-party requests. */

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-card: #fffcf7;
  --ink: #161513;
  --muted: #534f48;
  --line: #d9d2c5;
  --forest: #143f2f;
  --forest-hover: #0d2c20;
  --forest-soft: #e6efe9;
  --header-muted: #c9d4cb;
  --focus: #0b6b4a;
  --soon: #534f48;
  --radius: 0.85rem;
  --shadow: 0 1px 2px rgba(22, 21, 19, 0.04), 0 8px 24px rgba(22, 21, 19, 0.04);
  --font: "Source Sans 3", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --display: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --wrap: 68rem;
  --prose: 40rem;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--forest-hover);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--bg-card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--forest);
  color: var(--bg);
  min-height: var(--header-h);
}

.site-header a {
  color: var(--bg);
  text-decoration: none;
}

.site-header a:hover {
  color: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark .mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--bg);
}

.wordmark .mark-plate {
  fill: var(--bg);
}

.wordmark .mark-letter {
  fill: var(--forest);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 currentColor;
}

/* Hero */
.hero {
  padding: 2.75rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.15rem, 6.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.glance {
  display: none;
}

.glance-label {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.glance ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.glance li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.glance-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
}

.glance-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.glance-status {
  margin-left: 0.35rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  vertical-align: middle;
}

.glance-price {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.9fr);
    gap: 3rem;
    align-items: center;
  }

  .glance {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--forest);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--forest-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--forest-soft);
  color: var(--forest-hover);
}

.btn-card {
  margin-top: auto;
  align-self: flex-start;
}

/* Sections */
.section {
  padding: 2.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.1rem;
}

.section-intro {
  margin: -0.5rem 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.group-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.group-label:not(:first-child) {
  margin-top: 2rem;
}

/* Product cards */
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .products {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

@media (min-width: 1080px) {
  .products.products-live {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.product h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  line-height: 1;
}

.badge.live {
  background: var(--forest);
  color: var(--bg);
}

.badge.soon {
  background: var(--forest-soft);
  color: var(--forest);
}

.product .desc {
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.product .price {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product.soon-card {
  background: transparent;
  box-shadow: none;
}

/* Charges + contact */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}

.panel p:last-child {
  margin-bottom: 0;
}

.descriptors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.descriptor {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
}

address {
  font-style: normal;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-place {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Policies */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.legal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.legal h2,
.legal h3,
.legal p {
  max-width: 42rem;
}

.legal h2,
.legal h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.65rem;
}

.legal h2:first-child,
.legal h3:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

.policy-page .legal {
  max-width: var(--prose);
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.policy-page .hero,
.inner-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 0;
}

.inner-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.crumb {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--header-muted);
  margin-top: 1rem;
  padding: 1.5rem 0 1.7rem;
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

/* 404 */
.not-found {
  padding: 4.5rem 0 5rem;
  max-width: 32rem;
}

.not-found h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

@media (min-width: 800px) {
  .hero {
    padding: 3.35rem 0 3.25rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .legal {
    padding: 1.75rem 1.85rem 1.9rem;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .skip {
    position: static;
    background: transparent;
    color: #000;
  }

  .site-header a,
  .site-footer a {
    color: #000;
  }

  .product,
  .panel,
  .legal {
    box-shadow: none;
  }
}

@media (max-width: 799px) {
  .header-row {
    padding-block: 0.45rem 0.5rem;
    gap: 0.4rem 1rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.45rem 1rem;
    font-size: 0.9rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .hero {
    padding: 2rem 0 2.4rem;
  }
}

.section.tight-top {
  padding-top: 0;
}

.site-footer {
  margin-top: auto;
}

.not-found {
  margin-inline: auto;
  text-align: center;
  padding: 4.5rem 1rem 5rem;
}

#main:has(.not-found) {
  display: flex;
  align-items: center;
  justify-content: center;
}

