/* ====================================================================
   xmark/builds — shared site styles
   Extracted from index.html so every page (landing + trust pages)
   shares one theme. Page-specific tweaks can stay inline per page.
   ==================================================================== */

/* ------------------------------------------------------------------
   THEME TOKENS
   ------------------------------------------------------------------ */
:root {
  --bg:           #0a0a0b;
  --bg-elev:      #121214;
  --bg-card:      #141417;
  --border:       #232327;
  --border-strong:#33333a;
  --fg:           #f4f4f5;
  --fg-muted:     #a1a1aa;
  --fg-dim:       #71717a;
  --accent:       #f5b942;   /* warm amber — the "highlighter mark" */
  --accent-soft:  #f5b94222;
  --live:         #4ade80;
  --wip:          #f5b942;
  --archived:     #71717a;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ------------------------------------------------------------------
   RESET-ISH
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* Subtle radial glow + dotted grid to give the page atmosphere */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 185, 66, 0.08), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size: auto, 24px 24px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------------ */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; }

/* ------------------------------------------------------------------
   NAV
   ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: -0.01em;
}
.logo-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  transform: rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 8px 24px -8px var(--accent-soft);
}
.logo-text { color: var(--fg); }
.logo-text .slash { color: var(--fg-dim); }
.nav-links { display: flex; gap: 22px; font-size: 13px; color: var(--fg-muted); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   SECTION SCAFFOLDING
   ------------------------------------------------------------------ */
section { padding: 96px 0 32px; }
section + section { padding-top: 64px; }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.label::before {
  content: ''; width: 18px; height: 1px; background: var(--border-strong);
}

/* ------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------ */
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--fg);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero p.lede {
  max-width: 56ch;
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 28px;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-elev);
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05); }
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-elev);
  transition: all .18s ease;
}
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  font-weight: 500;
}
.btn.primary:hover { background: #fac35a; border-color: #fac35a; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------ */
.about p {
  max-width: 62ch;
  color: var(--fg-muted);
  margin: 0 0 14px;
}
.about p strong { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------------------
   PROJECTS
   ------------------------------------------------------------------ */
.projects-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.filters {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.filter {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-muted);
  transition: all .15s ease;
}
.filter:hover { color: var(--fg); }
.filter.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  min-height: 180px;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: #17171a;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted);
}
.pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill[data-status="live"]     .pill-dot { background: var(--live); box-shadow: 0 0 8px var(--live); }
.pill[data-status="wip"]      .pill-dot { background: var(--wip);  box-shadow: 0 0 8px var(--wip);  }
.pill[data-status="archived"] .pill-dot { background: var(--archived); }

.card-type {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg);
}
.card-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px;
  padding: 3px 8px;
  color: var(--fg-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.card-links { display: flex; gap: 14px; }
.card-link {
  font-size: 12px;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s ease;
}
.card-link:hover { color: var(--accent); }
.card-link.disabled { color: var(--fg-dim); cursor: not-allowed; pointer-events: none; opacity: 0.5; }

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.card.is-hidden { display: none; }

/* ------------------------------------------------------------------
   INNER-PAGE HEADER + PROSE (about / privacy / terms / contact)
   ------------------------------------------------------------------ */
.page-head { padding: 80px 0 8px; }
.page-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  color: var(--fg);
}
.page-head .updated { font-size: 12px; color: var(--fg-dim); }
.breadcrumb { font-size: 12px; color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--accent); }

.prose { padding: 24px 0 32px; }
.prose h2 {
  font-size: 18px; font-weight: 600; color: var(--fg);
  margin: 36px 0 10px; letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 15px; font-weight: 600; color: var(--fg);
  margin: 24px 0 8px;
}
.prose p, .prose li {
  color: var(--fg-muted);
  max-width: 70ch;
  margin: 0 0 14px;
}
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { opacity: .85; }
.prose code {
  font-size: 13px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 1px 6px;
}
.callout {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--bg-elev);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* Contact form */
.form { max-width: 520px; margin: 8px 0 0; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg);
  font: inherit; font-size: 14px;
  padding: 10px 12px;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: var(--fg-dim);
}
footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------------
   ENTRANCE ANIMATION
   ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal .7s ease forwards; }
.reveal:nth-child(1) { animation-delay: .05s; }
.reveal:nth-child(2) { animation-delay: .15s; }
.reveal:nth-child(3) { animation-delay: .25s; }
.reveal:nth-child(4) { animation-delay: .35s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0 24px; }
  .nav-links a:not(.nav-contact) { display: none; }
  .projects-header { flex-direction: column; align-items: flex-start; }
}
