/* originwarden.com: static pages. No scripts, no cookies, fonts served from this site. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil Display";
  src: url("/fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  /* Brand palette (logo suite): Forest Green #0F3D2E, Field Green #597646, Sage Green #8FA998,
     Sun Cream #F4E3C1, Background #FBFBF8. */
  --bean: #fbfbf8;        /* page: brand background */
  --bean-deep: #e9eee8;   /* the checks band: a wash of sage green */
  --forest: #0f3d2e;      /* text and buttons: forest green */
  --forest-soft: #597646; /* step numbers, plot-pixel bullets, button hover: field green */
  --muted: #4a5a51;
  --jute: #c4a274;        /* the sack */
  --thread: rgba(74, 52, 22, 0.13);
  --thread-light: rgba(255, 244, 222, 0.16);
  --stencil: #0f3d2e;     /* ink on the sack, same in both themes */
  --focus: #2f7a57;
  --rule: rgba(15, 61, 46, 0.18);
  --fix: #a4532a;         /* "fix needed" in the sample check: coffee-cherry rust */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bean: #13241c;
    --bean-deep: #1a2f25;
    --forest: #e0e9e1;
    --forest-soft: #9cc4ae;
    --muted: #aabbaf;
    --focus: #8fd1ae;
    --rule: rgba(224, 233, 225, 0.22);
    --fix: #e39a6b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bean);
  color: var(--forest);
  font: 400 1.125rem/1.6 "Atkinson Hyperlegible Next", system-ui, sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
}

/* The logo: shield and wordmark cut from the master artwork (site/brand/) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
}

.brand-mark {
  height: 2.5rem;
}

.brand-word {
  height: 1.5rem;
  margin-top: 0.2rem; /* optical: the descender of the g makes the word sit high */
}

/* Header links: prices and who we are, the two things a buyer checks first */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  font-size: 1rem;
}

.top-nav a {
  color: var(--muted);
}

.top-nav a[aria-current="page"] {
  color: var(--forest);
  text-decoration-thickness: 2px;
}

/* On phones the address is one tap away in the "Start" section and the footer */
@media (max-width: 30rem) {
  .top-mail {
    display: none;
  }
}

/* Hero */
.hero {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.hero-text > * + * {
  margin-top: 1.25rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 34rem;
}

.spaced {
  margin-top: 1.25rem;
}

.hero-text .cover {
  margin-top: 0.75rem;
  max-width: 34rem;
}

.deadline {
  color: var(--muted);
  max-width: 34rem;
}

.hero-text .actions {
  margin-top: 2rem;
}

.note {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text .note {
  margin-top: 0.75rem;
}

.button {
  display: inline-block;
  background: var(--forest);
  color: var(--bean);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 6px;
}

.button:hover {
  background: var(--forest-soft);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

/* The sack: the one loud thing on the page */
.bag {
  margin: 0;
  justify-self: center;
  width: min(100%, 25rem);
}

.bag-mark {
  background-color: var(--jute);
  /* Hessian weave: coarse threads both ways, with a lighter highlight on each */
  background-image:
    repeating-linear-gradient(0deg, var(--thread) 0 2.5px, var(--thread-light) 2.5px 3.5px, transparent 3.5px 7px),
    repeating-linear-gradient(90deg, var(--thread) 0 2.5px, var(--thread-light) 2.5px 3.5px, transparent 3.5px 7px);
  padding: 2.4rem 1.75rem 2.6rem;
  border-radius: 14px 14px 6px 6px;
  transform: rotate(-1.75deg);
  box-shadow: 0 28px 50px -30px rgba(20, 40, 30, 0.6);
  text-align: center;
}

.bag-mark p {
  font-family: "Big Shoulders Stencil Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: var(--stencil);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.m-origin {
  font-size: clamp(3.2rem, 9vw, 4.6rem);
}

.m-region {
  font-size: clamp(1.7rem, 4.4vw, 2.2rem);
}

.m-grade {
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

.m-seam {
  display: block;
  width: 62%;
  margin: 1.35rem auto 1.2rem;
  border-top: 3px dashed rgba(31, 61, 48, 0.5);
}

.m-plot {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.m-coord {
  font-size: clamp(2.1rem, 5.6vw, 2.75rem);
}

.m-check {
  font-size: 1.2rem;
  margin-top: 0.7rem;
}

.bag figcaption {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

/* Sections */
.steps,
.terms {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
  .steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  display: grid;
  align-content: start;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 1rem;
  max-width: 34rem;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--forest-soft);
}

.steps h3 {
  margin-bottom: 0.45rem;
}

.band {
  background: var(--bean-deep);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.checks ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem 4rem;
}

@media (min-width: 760px) {
  .checks ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
  max-width: 32rem;
}

/* One 30 m pixel, the unit the forest-loss data is measured in */
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--forest-soft);
}

.terms ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
}

.start {
  background: var(--forest);
  color: var(--bean);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.start p {
  max-width: 38rem;
  margin-top: 1.1rem;
  font-size: 1.2rem;
}

.start .actions {
  margin-top: 2rem;
}

.start .button {
  background: var(--bean);
  color: var(--forest);
}

.start .button:hover {
  background: var(--jute);
  color: #0f3d2e;
}

.start .note {
  color: inherit;
  opacity: 0.85;
  font-size: 1rem;
  margin-top: 1rem;
}

.foot {
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

/* Prices: a plain tariff, one offer per row */
.prices {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.intro {
  margin-top: 1rem;
  max-width: 40rem;
}

.tariff {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: 58rem;
}

.tariff li {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}

.tariff li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .tariff li {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  }
}

.tariff h3 {
  font-size: 1.15rem;
}

.price {
  margin-top: 0.15rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--forest-soft);
}

.founding {
  margin-top: 1.75rem;
  max-width: 44rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--forest-soft);
  background: var(--bean-deep);
}

.fine {
  margin-top: 1rem;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Questions: native disclosure, no script */
.faq-list {
  margin-top: 2rem;
  max-width: 46rem;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding-block: 1rem;
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}

.faq details p {
  margin-top: 0.6rem;
}

/* Footer: who runs the site, and the legal pages */
.foot .entity {
  color: var(--forest);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-block: 0.4rem;
}

/* Text pages: legal notice, privacy, terms, who we are */
.doc {
  max-width: 46rem;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.doc h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
}

.doc .updated {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.doc h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.doc p,
.doc ul,
.doc dl {
  margin-top: 0.9rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.45rem;
}

.doc dl {
  display: grid;
  gap: 0.6rem 1.5rem;
}

@media (min-width: 640px) {
  .doc dl {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.doc dt {
  font-weight: 700;
}

.doc dd {
  margin: 0;
}

.doc ol {
  padding-left: 1.4rem;
}

.doc .actions {
  margin-top: 1.5rem;
}

/* Sample check: one square per plot, in file order (the same 30 m pixel as the checks list).
   Seven across, so the sample's 35 plots make a block on every screen. */
.plots {
  display: grid;
  grid-template-columns: repeat(7, 1.25rem);
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.plot {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.plot-key .plot {
  width: 1rem;
  height: 1rem;
}

.plot.ok {
  background: var(--forest-soft);
}

.plot.check {
  border: 2px solid var(--forest-soft);
}

/* A cross as well as the colour, so the three kinds differ without colour too */
.plot.fix {
  background:
    linear-gradient(45deg, transparent 43%, var(--bean) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--bean) 43% 57%, transparent 57%),
    var(--fix);
}

.doc .plot-key {
  list-style: none;
  padding: 0;
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.doc .plot-key li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.doc .findings {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.doc .findings li {
  display: grid;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .doc .findings li {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }
}

.findings .where {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
}

.findings .where::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
}

.findings.fix .where::before {
  background: var(--fix);
}

.findings.check .where::before {
  border: 2px solid var(--forest-soft);
}

.doc .findings .what p {
  margin: 0;
}

.doc .findings .what p + p {
  margin-top: 0.4rem;
}

.doc .code {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bean-deep);
  border-radius: 6px;
  overflow-x: auto;
  font: 0.85rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code .gap {
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease;
  }
}
