/* ============================================================
   tea.school — shared page utilities (header, footer, buttons)
   Used by all 7 pages (index, catalog, course, lesson, path,
   instructors, cohort).
   ============================================================ */

html, body { margin: 0; padding: 0; background: var(--bg, #F5EFE0); color: var(--ink, #14110D); font-family: var(--font-sans); }
body { font-feature-settings: "ss01", "ss02", "kern"; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }

.ts-shell { max-width: 1280px; margin: 0 auto; }

/* Typography helpers */
.tt-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.tt-link { color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.tt-link:hover { color: var(--link-hover); }

/* Buttons */
.tt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; font-family: var(--font-sans); font-weight: 500; font-size: 15px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: all 180ms ease; }
.tt-btn--primary { background: var(--steep); color: var(--cream-50); }
.tt-btn--primary:hover { background: var(--steep-700); }
.tt-btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.tt-btn--ghost:hover { background: var(--bg-tonal); }
.tt-btn--cream { background: var(--cream-50); color: var(--ink); border: 0; }

/* Header */
.ts-header { display:flex; align-items:center; justify-content:space-between; padding:24px 32px; border-bottom: 1px solid var(--border); }
.ts-header__logo { text-decoration:none; color:inherit; font-family: var(--font-display); font-size: 22px; }
.ts-header__logo em { color: var(--steep); }
.ts-header__nav { display:flex; gap:28px; font-family: var(--font-sans); font-size: 14px; }
.ts-header__nav a { color:inherit; text-decoration:none; }
.ts-header__nav a:hover { color: var(--link-hover); }
.ts-header__nav a.is-active { border-bottom: 2px solid var(--steep); padding-bottom: 4px; }

/* Footer */
.ts-footer { padding: 60px 32px; border-top: 1px solid var(--border); display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; background: var(--bg-tonal); }
.ts-footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 0 0 16px; }
.ts-footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; font-size:14px; }
.ts-footer a { color:inherit; text-decoration:none; }
.ts-footer a:hover { color: var(--link); }

/* Common section heading */
.ts-section-head { display:flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.ts-section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--h1); line-height: 1.05; letter-spacing: -0.01em; margin: 12px 0 0; }
.ts-section-head__sub { font-size: 17px; color: var(--graphite); line-height: 1.55; margin: 16px 0 0; max-width: 60ch; }

/* Breadcrumb */
.ts-crumb { display:flex; gap: 8px; font-size: 13px; color: var(--stone); padding: 16px 32px 0; }
.ts-crumb a { color: inherit; text-decoration: none; }
.ts-crumb a:hover { color: var(--link); }
.ts-crumb .sep { opacity: 0.4; }
