/* Independent Builders — Opportunity Radar
   Independent Builders Beta. Editorial, research-brief style. */

:root {
  --paper: #f4f1ea;
  --paper-deep: #ece7dc;
  --ink: #1b1914;
  --muted: #5c574c;
  --rule: #d8d2c4;
  --card: #fffcf6;
  --pine: #1f4e46;
  --pine-hover: #153832;
  --signal-bg: #e7eee8;
  --signal-ink: #244336;
  --notice-bg: #efe6d2;
  --notice-ink: #3f351f;
  --disabled: #9a9488;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 42rem;
  --wide: 48rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

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

.eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.15rem;
}

.brand-name {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.status-pill {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine);
  border: 1px solid #9bb8b2;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: #e7eeec;
}

/* Hero */

.hero {
  padding: 4.25rem 0 3rem;
}

.headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

body[data-version="b"] .headline {
  max-width: 14ch;
}

.subhead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}

/* Honesty */

.honesty {
  padding: 0 0 3.5rem;
}

.honesty-panel {
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  padding: 1.4rem 1.4rem 1.5rem;
}

.honesty-panel p {
  margin: 0 0 0.85rem;
}

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

/* About */

.about,
.preview,
.membership,
.waitlist,
.feedback {
  padding: 0 0 4rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lede {
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2rem;
}

.about-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-grid p {
  margin: 0;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 1.2rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.card-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--muted);
}

.evidence {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-ink);
  background: var(--signal-bg);
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
}

.evidence-note {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card p {
  margin: 0 0 0.8rem;
}

.card .source {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Membership */

.membership p {
  margin: 0 0 0.9rem;
}

.cadence {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

/* Waitlist */

.notice {
  background: var(--notice-bg);
  color: var(--notice-ink);
  padding: 0.85rem 1rem;
  margin: 1.1rem 0 1.5rem;
}

.interest-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field-hint {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.interest-form input[type="email"] {
  width: 100%;
  max-width: 24rem;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  border-radius: 2px;
}

.interest-form input:disabled {
  color: var(--disabled);
  background: #f3efe6;
  cursor: not-allowed;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.35rem 0;
  font-weight: 400;
  cursor: default;
}

.choice input {
  margin-top: 0.3rem;
  accent-color: var(--pine);
}

.interest-form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  color: var(--muted);
  border-radius: 2px;
  cursor: not-allowed;
}

.substack-embed {
  margin: 1.25rem 0 1rem;
  width: 100%;
  max-width: 32rem;
}

.substack-embed iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--rule);
  background: #fff;
}

.embed-note {
  max-width: 40rem;
}

/* Feedback */

.feedback-prompt {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 28ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.preview-switch {
  margin-top: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .headline {
    max-width: none;
  }

  .card-meta {
    flex-wrap: wrap;
  }
}

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


.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;
}
