/* ChairsideSource — design tokens
   Palette: deep clinical teal, brass accent (evokes dental gold), parchment-grey ground, charcoal ink
   Type: Source Serif 4 (headlines, editorial/trade-pub authority) + Inter (body, clean and functional)
*/

:root {
  --teal-950: #0F2E2C;
  --teal-800: #1F4B49;
  --teal-600: #3D6F6C;
  --teal-100: #E4ECEB;
  --brass: #A9772E;
  --brass-light: #C99A52;
  --ground: #EFEBE2;
  --ground-raised: #F8F6F0;
  --ink: #24272A;
  --ink-soft: #565B5E;
  --line: #D8D2C4;
  --radius: 3px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--teal-800); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: 68ch;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal-950);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground-raised);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--teal-950);
  letter-spacing: -0.01em;
}
.logo em { font-style: normal; color: var(--brass); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--teal-800); text-decoration: none; }
.nav-cta {
  background: var(--teal-800);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--teal-950); text-decoration: none !important; }

/* ---- Hero ---- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero-tag {
  font-size: 0.85rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.hero-actions { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-light); text-decoration: none; }
.btn-secondary { border-color: var(--teal-800); color: var(--teal-800); }
.btn-secondary:hover { background: var(--teal-100); text-decoration: none; }

.hero-panel {
  background: var(--teal-950);
  color: var(--ground-raised);
  padding: 26px 24px;
  border-radius: var(--radius);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.hero-panel ul { margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--teal-100); }
.hero-panel li { margin-bottom: 8px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-alt { background: var(--ground-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head .lede { margin: 0; }

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

.card {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-plain { padding: 0; border: none; background: none; }
.card h3 { margin-bottom: 8px; }
.card .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.pillar-icon {
  width: 40px; height: 40px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass); font-family: var(--serif); font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---- Stat strip ---- */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--serif); font-size: 2rem; color: var(--teal-800); display: block; }
.stat .label { font-size: 0.88rem; color: var(--ink-soft); }

/* ---- List rows (marketplace / posts) ---- */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.row-item .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--teal-800);
  background: var(--teal-100);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.row-price { font-family: var(--serif); font-size: 1.2rem; color: var(--brass); white-space: nowrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--teal-950);
  color: var(--teal-100);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: var(--teal-100); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--teal-100);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Forms ---- */
input[type=email], input[type=text], textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: #fff;
}
.email-capture {
  background: var(--teal-950);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.email-capture h3 { color: #fff; }
.email-capture p { color: var(--teal-100); }
.email-form { display: flex; gap: 10px; }
.email-form .btn-primary { flex-shrink: 0; }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .email-capture { grid-template-columns: 1fr; }
  .stat-strip { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .site-nav { display: none; }
}
