/* OpenSet marketing site — shared styles.
   Palette/type/border language pulled directly from lib/themes.js (the same
   brand system the app uses), not reinvented for the website. Firm 2px
   borders instead of shadows, uppercase bold display type, tabular numbers,
   system font stack — all deliberate app-side choices, kept consistent here. */

:root {
  --bg: #101A1A;
  --surface: #182727;
  --surface-strong: #243331;
  --text: #FFF7ED;
  --text-muted: #D9CBBB;
  --border: #FFF7ED;
  --primary: #F97316;
  --primary-text: #101A1A;
  --cream: #FFF7ED;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--primary); }

.wrap {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

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

.site-header {
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img.mark { width: 32px; height: 32px; }
.brand img.wordmark { height: 20px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}

.btn-primary:hover { filter: brightness(1.08); }
.btn:not(.btn-primary):hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero / eyebrow / display type ---------- */

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1.display {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.02;
  max-width: 16ch;
}

.tagline {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 14px 0 0;
}

.lede {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 56ch;
  margin: 18px 0 0;
}

.hero {
  padding: 90px 0 70px;
  border-bottom: 2px solid var(--border);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section.block { padding: 70px 0; border-bottom: 2px solid var(--border); }
section.block:last-of-type { border-bottom: none; }

h2.section-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 14px;
}

/* ---------- Field Notes list ---------- */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.article-row {
  display: block;
  background: var(--surface);
  padding: 26px 28px;
  text-decoration: none;
  color: var(--text);
}

.article-row:hover { background: var(--surface-strong); }

.article-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.article-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 60ch;
}

/* ---------- Article page ---------- */

article.post { padding: 60px 0 90px; }

.post-header { max-width: 68ch; margin: 0 0 40px; }

.post-header h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 14px 0 0;
  text-transform: none;
}

.post-meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--text-muted); }

.post-body {
  max-width: 68ch;
  font-size: 17px;
  color: var(--text-muted);
}

.post-body p { margin: 0 0 20px; }

.post-body h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  margin: 42px 0 16px;
}

.post-body strong { color: var(--text); }

.post-body ul, .post-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.post-body li { margin: 8px 0; }

.pull-quote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 32px 0;
  font-size: 19px;
  color: var(--text);
  font-weight: 700;
}

.post-cta {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  max-width: 68ch;
}

.post-cta p { color: var(--text-muted); margin: 0 0 16px; font-size: 15px; }

/* ---------- Waitlist form ---------- */

.waitlist {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  max-width: 520px;
}

.waitlist form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.waitlist input[type="email"] {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.waitlist input[type="email"]::placeholder { color: var(--text-muted); }

.waitlist .fine-print {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

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

.site-footer {
  border-top: 2px solid var(--border);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover { color: var(--primary); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-brand img { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 44px; }
  section.block { padding: 50px 0; }
  .site-nav { display: none; }
}
