/* samchow.ai — shared stylesheet
   Palette: charcoal/navy + white + amber. Serif headlines, sans body.
   No external font requests — system stacks only, for speed and reliability. */

:root {
  --ink: #0f1720;
  --ink-soft: #1c2733;
  --paper: #fafaf8;
  --paper-dim: #f1efe9;
  --line: #e4e1d8;
  --amber: #b8863f;
  --amber-soft: #d9b073;
  --muted: #5c6470;
  --max: 1080px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; color: var(--ink); }

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header / Nav */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

nav.primary {
  display: flex;
  gap: 32px;
}

nav.primary a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink) !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
}

.hero.dark {
  background: var(--ink);
  color: var(--paper);
}

.hero.dark h1,
.hero.dark p { color: var(--paper); }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  max-width: 780px;
}

.hero .subhead {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 20px;
}

.hero.dark .subhead { color: #b9c1cb; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 2px;
  margin-top: 32px;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover { background: var(--amber-soft); }

.btn-outline {
  border: 1px solid var(--paper);
  color: var(--paper);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }

/* Sections */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

section.tight { padding: 48px 0; }

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.eyebrow-small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}

/* Grid columns */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  h1 { font-size: 2rem; }
}

.card {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.card .stat {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.source-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Credibility strip */
.credibility {
  background: var(--paper-dim);
}

.credibility ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.credibility li {
  padding-left: 24px;
  position: relative;
  font-size: 1.02rem;
}

.credibility li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* Article / insight cards */
.article-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.article-card:last-child { border-bottom: none; }

.article-card a.title-link {
  text-decoration: none;
  color: var(--ink);
}

.article-card a.title-link:hover { color: var(--amber); }

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--amber);
  text-decoration: none;
}

/* Services */
.service-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: none; }

.service-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.service-meta strong { color: var(--ink); }

.deliverables {
  margin-top: 20px;
  padding-left: 20px;
}

.deliverables li { margin-bottom: 8px; }

/* Case studies */
.case-study {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.case-study:last-child { border-bottom: none; }

.case-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 8px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.results-grid li {
  background: var(--paper-dim);
  padding: 16px 18px;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* About photo */
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 4px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 32px;
}

/* Form */
form.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin-top: 40px;
}

form.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}

form.contact-form textarea { min-height: 120px; resize: vertical; }

form.contact-form button {
  justify-self: start;
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 30px;
  font-size: 0.95rem;
  border-radius: 2px;
  cursor: pointer;
}

form.contact-form button:hover { background: var(--ink-soft); }

/* Footer */
footer.site {
  background: var(--ink);
  color: #9aa4af;
  padding: 48px 0;
  font-size: 0.88rem;
}

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

footer.site a {
  color: #c8cdd3;
  text-decoration: none;
}

footer.site a:hover { color: var(--amber); }

/* Article page */
.article-body {
  max-width: 680px;
}

.article-body h2 { margin-top: 1.6em; }

.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover { color: var(--amber); }

/* Exhibit callouts within long-form articles */
.exhibit {
  background: var(--paper-dim);
  border-left: 3px solid var(--amber);
  padding: 24px 28px;
  margin: 32px 0;
}

.exhibit .exhibit-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

.exhibit table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.92rem;
}

.exhibit th, .exhibit td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.exhibit th { color: var(--muted); font-weight: 600; }

.exhibit ul { margin: 0; padding-left: 20px; }
.exhibit li { margin-bottom: 6px; }

.article-body blockquote {
  border-left: 3px solid var(--ink);
  margin: 24px 0;
  padding-left: 20px;
  font-style: italic;
  color: var(--ink-soft);
}

.thesis {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 28px 0 36px;
}
