/* Shared stylesheet for the Practice Tips hub + all 100 tip pages.
   Extracted from the site's per-page inline design system (see slow-practice.htm,
   distributed-practice.htm) so 100+ pages don't each duplicate ~400 lines of CSS.
   Design tokens intentionally match the rest of website/*.htm exactly. */

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

:root {
  --bg: #0c0a08;
  --bg-soft: #14110d;
  --surface: #1c1813;
  --surface-2: #221d17;
  --ink: #f4ecdb;
  --ink-dim: #a59b85;
  --ink-faint: #6e6557;
  --accent: #e0a96d;
  --accent-warm: #f0bb80;
  --accent-deep: #8a5a2b;
  --line: #2a241c;
  --line-bright: #3d3527;
  --max-w: 1180px;
  --max-prose: 760px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(224,169,109,0.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(224,169,109,0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s, color 0.15s; }
a:hover { opacity: 0.78; }

h1, h2, h3 { color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: inherit; }

p { color: var(--ink-dim); margin-bottom: 1rem; }
p.lead { font-size: 1.18rem; color: var(--ink); max-width: 640px; line-height: 1.55; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(12, 10, 8, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.logo em { font-style: normal; color: var(--accent); }
.logo-icon { width: 1.55em; height: 1.55em; border-radius: 22%; display: block; flex-shrink: 0; }
.nav { display: flex; gap: 2rem; font-size: 0.92rem; }
.nav a { color: var(--ink-dim); }
.nav a:hover { color: var(--ink); opacity: 1; }
.nav a.active { color: var(--accent); }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #1a1209; }
.btn-primary:hover { background: var(--accent-warm); opacity: 1; }
.btn-ghost { color: var(--ink); border-color: var(--line-bright); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); opacity: 1; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* Layout */
.section { max-width: var(--max-w); margin: 0 auto; padding: 6rem 1.5rem; }
.section-narrow { max-width: var(--max-prose); }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

/* Hero (tip pages + hub) */
.hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.hero h1 { max-width: 780px; }
.hero p.subline { font-size: 1.1rem; color: var(--ink-dim); margin-top: 1.2rem; max-width: 640px; line-height: 1.55; }

/* Breadcrumb / meta line above the H1 */
.tip-breadcrumb {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.tip-breadcrumb a { color: var(--ink-dim); }
.tip-breadcrumb a:hover { color: var(--accent); }

/* Content prose */
.prose { max-width: var(--max-prose); margin: 0 auto; }
.prose p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.2rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0.8rem 0 1.2rem 1.5rem; color: var(--ink-dim); }
.prose li { margin-bottom: 0.5rem; font-size: 0.98rem; line-height: 1.6; }

/* Pager: prev / next tip within a track */
.tip-pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.tip-pager a {
  flex: 1 1 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  color: var(--ink-dim);
}
.tip-pager a:hover { border-color: var(--accent); opacity: 1; color: var(--ink); }
.tip-pager .pager-next { text-align: right; }
.tip-pager .pager-dir { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.tip-pager .pager-title { display: block; font-size: 0.95rem; color: var(--ink); font-family: 'Fraunces', serif; }

/* Related tips list */
.related-tips {
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.related-tips h3 { color: var(--ink); margin-bottom: 0.9rem; }
.related-tips ul { margin: 0; padding: 0; list-style: none; }
.related-tips li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.related-tips li:last-child { margin-bottom: 0; }
.related-tips a { color: var(--accent); }

/* Hub: track intro + category groups + tip grid */
.track-intro { margin-bottom: 2.5rem; }
.track-intro h2 { margin-bottom: 0.6rem; }
.category-block { margin-bottom: 2.8rem; }
.category-block h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}
.tip-grid a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.tip-grid a:hover { color: var(--accent); opacity: 1; }
.tip-grid .tip-num { color: var(--ink-faint); margin-right: 0.5rem; font-family: 'Fraunces', serif; font-style: italic; }

.track-switch {
  display: flex;
  gap: 0.8rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}
.track-switch a {
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.track-switch a.active { border-color: var(--accent); color: var(--accent); }
.track-switch a:hover { color: var(--ink); opacity: 1; }

/* CTA */
.cta {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 5.5rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(224,169,109,0.03));
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 720px; margin: 0 auto 1.1rem; line-height: 1.12; }
.cta p { font-size: 1.05rem; max-width: 540px; margin: 0 auto; color: var(--ink-dim); }
.cta .cta-row { display: flex; justify-content: center; gap: 0.8rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--ink); }
.footer-mark { font-family: 'Fraunces', serif; font-style: italic; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 880px) {
  .section { padding: 4rem 1.5rem; }
  .nav { display: none; }
  .tip-grid { grid-template-columns: 1fr; }
  .tip-pager { flex-direction: column; }
  .tip-pager .pager-next { text-align: left; }
}
