/* Opportunity Flywheel LLC — shared styles */

:root {
  --ink: #14211f;
  --slate: #2e4540;
  --paper: #f4f5f2;
  --paper-deep: #e7e9e3;

  /* brand greens, sampled from the logo.
     --green is deepened to #0b7a34 so link text clears WCAG AA (4.99:1) on --paper;
     the logo's own #00a028 only reaches 3.2:1 and is reserved for large/decorative use. */
  --green: #0b7a34;
  --green-deep: #075c1c;
  --green-bright: #15c641;

  --muted: #667571;
  --rule: #ccd2cd;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Newsreader", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 0 0;
}

.mark {
  width: 44px;
  height: auto;
  flex: none;
  display: block;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.hero p {
  max-width: var(--measure);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  margin: 0;
  color: var(--slate);
}

/* ---------- home cover ----------
   The landing page leads with the stacked lockup instead of a masthead: the logo is
   the header. Interior pages keep the running .masthead above. */

.cover {
  text-align: center;
  padding: clamp(3.25rem, 10vh, 6rem) 0 clamp(2.5rem, 7vh, 4rem);
}

.cover .lockup {
  width: clamp(210px, 40vw, 340px);   /* 340px is the lockup's native ceiling — see README */
  height: auto;
  display: block;
  margin: 0 auto 2.75rem;
}

.cover h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}

.cover p {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
}

/* everything below the cover shares one centered measure column, footer included,
   so the section rules line up with the content instead of running past it */
.col { max-width: var(--measure); margin: 0 auto; }

/* ---------- eyebrow / section labels ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1rem;
}

section { padding: 0 0 clamp(2.5rem, 7vh, 4rem); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  margin: 2rem 0 0.5rem;
}

/* ---------- product / venture entry ---------- */

.product {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  max-width: var(--measure);
}

.product h2 { margin-bottom: 0.35rem; }
.product p { margin: 0 0 0.9rem; color: var(--slate); }

.product-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-family: var(--display);
  font-size: 0.875rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aside {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- prose block (company copy) ---------- */

.prose { border-top: 1px solid var(--rule); padding-top: 1.5rem; max-width: var(--measure); }
.prose p { color: var(--slate); margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact { border-top: 1px solid var(--rule); padding-top: 1.5rem; max-width: var(--measure); }
.contact dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.4rem 1rem; }
.contact dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}
.contact dd { margin: 0; }

@media (max-width: 30rem) {
  .contact dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .contact dd { margin-bottom: 0.75rem; }
}

/* ---------- legal / document pages ---------- */

.doc { max-width: var(--measure); padding: 3rem 0 4rem; }

.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.docmeta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin: 0 0 2rem;
}

/* legal/doc pages run h1 -> h2 so the outline has no gap; these are the small
   section headings and must keep the h3 look, not the page-level h2 look */
.doc h2 {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
  margin: 2rem 0 0.5rem;
}

.doc p, .doc li { color: var(--slate); }
.nowrap { white-space: nowrap; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 0.4rem; }

.todo {
  background: var(--paper-deep);
  border-left: 3px solid var(--green);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 1.75rem 0 3rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

footer .sep { flex: 1 1 auto; }
