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

:root {
  --bg:          #171916;
  --bg-alt:      #1d1f1c;
  --bg-panel:    #242622;
  --bg-field:    #1d1f1c;
  --text:        #e7e2d6;
  --text-muted:  #a49f90;
  --text-dim:    #9b9686;
  --text-faint:  #8c8878;
  --text-ghost:  #6b6759;
  --accent:      #7a9a86;
  --border:      rgba(231, 226, 214, 0.08);
  --border-mid:  rgba(231, 226, 214, 0.1);
  --border-strong: rgba(231, 226, 214, 0.14);
  --font-serif:  'Source Serif 4', Georgia, serif;
  --font-sans:   'Manrope', ui-sans-serif, sans-serif;
  --pad: 64px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(231, 226, 214, 0.12); }
::-webkit-scrollbar-thumb:hover { background: rgba(231, 226, 214, 0.22); }

/* ── Selection ── */
::selection { background: var(--accent); color: var(--bg); }

/* ── Motion ── */
@keyframes strata-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.yd-rise { animation: yd-rise 0.6s cubic-bezier(.2,.7,.3,1) both; }

/* ── Shared link/button treatments ── */
.yd-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.yd-link:hover { color: var(--accent); }

.yd-lnk {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.yd-lnk::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.yd-lnk:hover::after { transform: scaleX(1); }

.yd-cta { transition: transform 0.15s ease; }
.yd-cta:hover { transform: translateY(-1px); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.accent { color: var(--accent); font-weight: 400; }
.accent-link { color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:disabled { cursor: not-allowed; opacity: 0.4; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(122, 154, 134, 0.53);
  padding: 15px 26px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(231, 226, 214, 0.3); }

/* ── Header band ── */
.site-header {
  padding: 28px var(--pad);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

.wordmark-link {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.wordmark-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Divider ── */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

/* ── Footer band ── */
.site-footer {
  background: var(--bg);
  padding: 24px var(--pad);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-ghost);
}

.footer-link { color: var(--text-ghost); }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --pad: 40px; }
}

@media (max-width: 600px) {
  :root { --pad: 24px; }
}
