/* Reaper Controls — shared site stylesheet */

:root{
  --bg: #1b1c1d;
  --bg-raised: #232426;
  --line: #38393b;
  --ink: #e9e5dc;
  --ink-dim: #a7a39a;
  --rust: #c1531b;
  --rust-hover: #d6642c;
  --scope: #6fada3;
  --scope-dim: #3f5f59;
}

*{ box-sizing: border-box; }

html{ background: var(--bg); }

/* subtle vignette so flat dark panels read as lit, not just filled */
body{
  background-image: radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(193,83,27,0.06), transparent 60%);
  background-repeat: no-repeat;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--scope); }
a:hover{ color: var(--ink); }

.mono{
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- masthead / nav ---------- */
header.masthead{
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}
.masthead-inner{
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.wordmark{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span{ color: var(--rust); }
.wordmark:hover{ color: var(--ink); }

nav.primary-nav{
  display: flex;
  gap: 26px;
  align-items: baseline;
}
nav.primary-nav a{
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"]{
  color: var(--rust);
}

.masthead-tag{
  font-size: 12px;
  color: var(--ink-dim);
}

/* ---------- layout ---------- */
main{
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}
main.wide{
  max-width: 960px;
}

.doc-id{
  font-size: 12px;
  color: var(--ink-dim);
  margin: 0 0 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

h1{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 20ch;
}

h2{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

h3{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 10px;
}

p{ margin: 0 0 22px; color: var(--ink); }
p.lede{ color: var(--ink-dim); font-size: 1.05em; }

strong{ color: var(--ink); font-weight: 600; }

ul{
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
li{
  position: relative;
  padding: 2px 0 2px 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
}
li strong{ color: var(--ink); }

.callout{
  border-left: 2px solid var(--scope-dim);
  padding: 4px 0 4px 20px;
  margin: 32px 0;
  color: var(--ink-dim);
  font-style: italic;
}

.scope{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  margin: 0 0 40px;
  padding: 18px 18px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.scope-caption{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-dim);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.scope svg{ display: block; width: 100%; height: auto; }

/* ---------- badges ---------- */
.badge{
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--scope);
  background: rgba(111,173,163,0.08);
  border: 1px solid var(--scope-dim);
  padding: 5px 10px;
  margin-bottom: 22px;
}

/* ---------- hero (homepage) ---------- */
.hero{
  padding: 90px 24px 70px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  max-width: 720px;
  margin: 0 auto;
}
.hero h1{ max-width: 16ch; }
.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn{
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--line);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn-primary{
  background: var(--rust);
  color: var(--bg);
  border-color: var(--rust);
  box-shadow: 0 4px 14px rgba(193,83,27,0.28);
}
.btn-primary:hover{ background: var(--rust-hover); border-color: var(--rust-hover); color: var(--bg); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(193,83,27,0.38); }
.btn-secondary{
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover{ border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ---------- product / article card grids ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.card{
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.card:hover{
  border-color: var(--rust);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
}
.card .badge{ margin-bottom: 16px; }
.card h3{ margin-bottom: 8px; }
.card p{ color: var(--ink-dim); font-size: 15px; margin-bottom: 0; }
.card-icon{
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--rust);
}
.card-icon svg{ width: 100%; height: 100%; display: block; }

.card-teaser{
  position: relative;
  margin: -24px -24px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.card-teaser img{
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: blur(3px) saturate(0.92);
  transform: scale(1.03); /* hide soft blur edges */
}
.card-teaser-banner{
  position: absolute;
  top: 16px;
  left: -42px;
  width: 170px;
  transform: rotate(-40deg);
  background: var(--rust);
  color: var(--bg);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.product-icon{
  width: 44px;
  height: 44px;
  color: var(--rust);
  margin-bottom: 16px;
}
.product-icon svg{ width: 100%; height: 100%; display: block; }

/* ---------- concept art teaser (blurred, not final) ---------- */
.concept-teaser{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  margin: 0 0 40px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.concept-teaser-frame{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.concept-teaser-frame img{
  display: block;
  width: 100%;
  height: auto;
  filter: blur(14px) saturate(0.9);
  transform: scale(1.06); /* hide soft blur edges */
}
.concept-teaser-caption{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-dim);
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

/* ---------- article list ---------- */
.article-group{ margin-bottom: 48px; }
.article-group h2{ margin-top: 0; }
.article-row{
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.article-row:hover{ color: var(--rust); }
.article-row .doc-id{ margin-bottom: 6px; }
.article-row h3{ margin-bottom: 4px; color: inherit; }
.article-row p{ color: var(--ink-dim); font-size: 15px; margin-bottom: 0; }

/* ---------- origin block (product pages) ---------- */
.origin{
  border-left: 2px solid var(--rust);
  padding: 4px 0 4px 20px;
  margin: 32px 0 40px;
  color: var(--ink-dim);
  font-style: italic;
}
.origin strong{ color: var(--ink-dim); font-style: normal; }

/* ---------- waitlist ---------- */
.waitlist{
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.waitlist-eyebrow{
  font-size: 12px;
  color: var(--scope);
  margin-bottom: 10px;
}
.waitlist p{
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 22px;
}
.field-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.field{
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label{
  font-size: 12px;
  color: var(--ink-dim);
}
input, select, textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 12px;
  font-family: 'Spectral', Georgia, serif;
  font-size: 15px;
}
input:focus, select:focus, textarea:focus{
  outline: 2px solid var(--scope);
  outline-offset: 1px;
}
button.submit{
  margin-top: 18px;
  background: var(--rust);
  color: #1b1c1d;
  border: none;
  padding: 13px 22px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
}
button.submit:hover{ background: var(--rust-hover); }
button.submit:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.waitlist-note{
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.waitlist-success{
  text-align: left;
}
.waitlist-success .badge{
  color: var(--scope);
  border-color: var(--scope-dim);
  background: rgba(111,173,163,0.08);
}
.waitlist-success h3{ margin-top: 4px; }
.waitlist-success p{ color: var(--ink-dim); margin-bottom: 0; }

.waitlist-error{
  color: var(--rust-hover);
  font-size: 14px;
  margin: 0 0 16px;
}

/* ---------- footer ---------- */
footer.site-footer{
  border-top: 1px solid var(--line);
  padding: 32px 24px 60px;
}
.footer-inner{
  max-width: 960px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a{ color: var(--ink-dim); }
.footer-inner a:hover{ color: var(--ink); }

.refs{
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-dim);
}
.refs h2{ font-size: 16px; margin-top: 0; }
.refs li{ margin-bottom: 8px; color: var(--ink-dim); }

@media (max-width: 520px){
  body{ font-size: 16.5px; }
  .field-row{ flex-direction: column; }
  nav.primary-nav{ gap: 18px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
