/* 101ish shared site stylesheet — used by public/index.html and any future
   new pages. public/Syllabus/index.html is intentionally NOT migrated to
   this file; it stays frozen with its own inline styles. */

:root {
  --accent: oklch(0.55 0.14 300);
  --accent-hover: oklch(0.45 0.14 300);
  --accent-light: oklch(0.65 0.13 300);
  --accent-lighter: oklch(0.72 0.14 300);
  --teal: oklch(0.78 0.13 190);
  --teal-soft: oklch(0.82 0.09 190);
  --joy: #9C7CD2;

  --text-heading: #2b2620;
  --text-body: #4a453d;
  --text-secondary: #5a5449;
  --text-muted: #8a8377;

  --divider: oklch(0.9 0.015 250);
  --divider-strong: oklch(0.85 0.02 250);

  --max-width: 800px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--text-body);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  font-size: 29px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  background: linear-gradient(90deg, var(--accent-lighter), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow .lowercase { text-transform: lowercase; }

h1, h2, h3 { color: var(--text-heading); font-weight: 300; text-wrap: balance; margin: 0; }

/* ---------- Sticky nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.site-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-lighter), var(--teal));
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-nav .brand {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent-lighter), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.site-nav .brand:hover {
  text-decoration: none;
}

.site-nav .brand .sparkle {
  position: relative;
  display: inline-block;
}

.site-nav .brand .sparkle::before,
.site-nav .brand .sparkle::after {
  content: '✦';
  position: absolute;
  font-size: .45em;
  color: var(--accent-lighter);
  -webkit-text-fill-color: var(--accent-lighter);
  opacity: 0;
  pointer-events: none;
}

.site-nav .brand .sparkle::before { top: -1px; left: -6px; }
.site-nav .brand .sparkle::after { bottom: -1px; right: -7px; }

.site-nav .brand:hover .sparkle {
  animation: sparkle-grow .7s ease-in-out;
}

.site-nav .brand:hover .sparkle::before {
  animation: sparkle-pop .7s ease-out;
}

.site-nav .brand:hover .sparkle::after {
  animation: sparkle-pop .7s ease-out .1s;
}

@keyframes sparkle-grow {
  0% { transform: scale(1); }
  45% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  40% { opacity: 1; transform: scale(1) translateY(-3px); }
  100% { opacity: 0; transform: scale(.6) translateY(-7px); }
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav .links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.site-nav .links a:hover { color: var(--accent); text-decoration: none; }

.site-nav .links a.syllabus-link {
  color: var(--accent);
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  padding: 5px 14px;
}

.site-nav .links a.syllabus-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section[id] { scroll-margin-top: 80px; }

.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-lighter), var(--teal));
}

.hero { padding-top: 64px; }

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 12px 0 16px;
}

.hero p.lede {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 56ch;
  margin: 0 0 32px;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.link-card {
  display: block;
  border: 1px solid var(--divider-strong);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text-heading);
}

.link-card:hover {
  border-color: var(--accent-light);
  text-decoration: none;
}

.link-card .link-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.link-card:hover .link-card-title { color: var(--accent); }

.link-card .link-card-desc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
}

section > .eyebrow { margin-bottom: 10px; }
section > h2 { font-size: 26px; margin-bottom: 8px; }
section > p.section-lede {
  font-size: 18.5px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ---------- Prompt library ---------- */

.prompt-card {
  border: 1px solid var(--divider-strong);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}

.prompt-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}

.prompt-card .prompt-desc {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.6;
}

.code-block {
  position: relative;
  background: #faf9f6;
  border: 1px solid var(--divider-strong);
  border-radius: 8px;
  padding: 16px 18px;
}

.code-block pre {
  margin: 0;
  padding-right: 90px;
  white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy-btn.copied { background: var(--teal-soft); color: #2b2620; border-color: var(--teal-soft); }

/* ---------- Concepts ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.concept-card {
  border: 1px solid var(--divider-strong);
  border-radius: 10px;
  padding: 20px;
}

.concept-card .concept-marker {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-lighter);
  margin-bottom: 12px;
}

.concept-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.concept-card p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Best practices ---------- */

.bp-group { margin-bottom: 32px; }
.bp-group:last-child { margin-bottom: 0; }

.bp-group h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.bp-group ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-group li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
}

.bp-group li strong { color: var(--text-heading); font-weight: 500; }

footer.site-footer {
  padding: 36px 0 56px;
  font-size: 13px;
  color: var(--text-muted);
}

.disclaimer {
  margin: 40px 0 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.disclaimer .wide-break { display: none; }

@media (min-width: 640px) {
  .disclaimer .wide-break { display: inline; }
}

.sparkle {
  color: var(--accent-lighter);
  font-style: normal;
  -webkit-text-fill-color: var(--accent-lighter);
}

@media (max-width: 560px) {
  .site-nav .links { gap: 12px; }
  .site-nav .links a:not(.syllabus-link) { display: none; }
  .hero h1 { font-size: 28px; }
}
