/* Digital Art Preview — public site.
   The :root block is BRAND.md §2 verbatim; everything below only composes it.
   Admin and preview styles are deliberately untouched by this file. */

:root {
  --brand: #2D6A4F;
  --brand-dark: #1B4332;
  --brand-light: #52B788;
  --brand-tint: #EAF6F0;
  --ink: #111827;
  --muted: #6B7280;
  --bg: #F7F8F7;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --sidebar: #1F2937;
  --danger: #DC2626;
  --warning: #B45309;
  --info: #1D4ED8;
  --success: #16A34A;

  /* BRAND.md §4 — only two shadows exist. */
  --shadow-card: 0 1px 3px rgba(17, 24, 39, .06);
  --shadow-float: 0 8px 30px rgba(17, 24, 39, .10);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* Nothing on a public page may scroll sideways, at any width. */
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--brand-dark); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.measure { max-width: 65ch; }

/* ── Wordmark (BRAND.md §1) ──────────────────────────────────────────────── */

.wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: normal;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--brand-light); }
.wordmark:hover { text-decoration: none; }
.wordmark--onDark { color: #fff; }

/* ── Buttons (BRAND.md §5) ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--brand-tint); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--brand); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--brand-dark); background: transparent; }

.btn-sm { padding: 6px 12px; font-size: 0.875rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a.navlink {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav a.navlink:hover { color: var(--ink); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--brand-tint);
  border-bottom: 1px solid var(--border);
  padding: 84px 0 88px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  max-width: 20ch;
  margin: 0 auto 20px;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .lede + .lede { color: var(--muted); margin-top: 10px; }
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section--tight { padding-top: 0; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Numbered step cards */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */

.trust {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.875rem;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-light);
  flex: none;
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */

.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-card h2 { margin-bottom: 6px; }
.cta-card p { color: var(--muted); margin: 0; max-width: 55ch; }
.cta-card .btn { flex: none; margin-left: auto; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal { padding: 56px 0 72px; }
/* Legal pages are one column of prose — the card hugs the 65ch measure instead
   of stretching to the full grid width with empty space beside the text. */
.legal .wrap { max-width: 820px; }
.legal .effective {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.legal-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 32px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 20px; font-size: 1rem; }
.legal-body p,
.legal-body li { max-width: 65ch; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body .note {
  background: var(--brand-tint);
  border: 1px solid #D6EBE0;
  border-radius: 12px;
  padding: 14px;
  color: var(--ink);
  font-size: 0.875rem;
}

/* ── Footer (BRAND.md §7) ────────────────────────────────────────────────── */

.site-footer {
  background: var(--sidebar);
  color: #D1D5DB;
  padding: 44px 0;
  font-size: 0.875rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-light); }
.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal {
  border-top: 1px solid #374151;
  padding-top: 18px;
  color: #9CA3AF;
  max-width: 75ch;
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ── Responsive: everything collapses to one column under 720px ──────────── */

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 52px; }
  .hero h1 { font-size: 1.9rem; max-width: none; }
  .hero .lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-ghost { width: auto; }

  .section { padding: 44px 0; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .cta-card { padding: 24px; }
  .cta-card .btn { margin-left: 0; width: 100%; }

  .trust ul { gap: 12px; flex-direction: column; }

  .legal { padding: 36px 0 52px; }
  .legal-body { padding: 22px; }

  .site-header .wrap { min-height: 58px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 14px; width: 100%; margin-left: 0; }
  .site-nav .btn { margin-left: auto; }

  .footer-links { margin-left: 0; width: 100%; }
}

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