/* ==========================================================================
   Practical Tribune Media — publication stylesheet
   Used by: site/index.html, site/about/index.html
   ========================================================================== */

:root {
  --pt-bg: #ffffff;
  --pt-bg-alt: #f4f6fa;
  --pt-bg-navy: #0e1c3a;
  --pt-ink: #10182b;
  --pt-ink-soft: #4a5266;
  --pt-line: #e2e6ee;
  --pt-navy: #17296b;
  --pt-blue: #2952d9;
  --pt-blue-dark: #1b3aa8;
  --pt-amber: #b7791f;
  --pt-amber-bg: #fdf3e0;
  --pt-radius-s: 8px;
  --pt-radius-m: 14px;
  --pt-radius-l: 22px;
  --pt-shadow: 0 12px 32px -18px rgba(16, 24, 43, 0.35);
  --pt-font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pt-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pt-bg);
  color: var(--pt-ink);
  font-family: var(--pt-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pt-blue-dark); text-decoration-thickness: 1.5px; }
a:hover { color: var(--pt-navy); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--pt-amber);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--pt-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pt-ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.5em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- utility layer ---- */
.container { width: 100%; max-width: 700px; margin: 0 auto; padding: 0 18px; }
.container--wide { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 18px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 8px; }
.gap-s { gap: 14px; }
.gap-m { gap: 22px; }
.gap-l { gap: 36px; }
.text-center { text-align: center; }

.section { padding: 44px 0; }
.section--alt { background: var(--pt-bg-alt); }
.section--navy { background: var(--pt-bg-navy); color: #eef1fb; }
.section--navy h2, .section--navy h3 { color: #fff; }

@media (min-width: 768px) {
  .section { padding: 68px 0; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--pt-radius-s);
  font-family: var(--pt-font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pt-blue); color: #fff; }
.btn--primary:hover { background: var(--pt-blue-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--pt-navy); color: var(--pt-navy); }
.btn--ghost:hover { background: var(--pt-navy); color: #fff; }
.btn--block { width: 100%; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--pt-line); background: var(--pt-bg); position: relative; z-index: 30; }
.site-header__inner { padding: 14px 18px; max-width: 980px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pt-ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pt-navy), var(--pt-blue));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--pt-font-display); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.brand__name { font-family: var(--pt-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.72rem; color: var(--pt-ink-soft); font-family: var(--pt-font-body); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--pt-line);
  background: #fff; cursor: pointer;
}
.nav-toggle__bar { width: 20px; height: 2px; background: var(--pt-ink); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }

.nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--pt-line);
  display: none; box-shadow: var(--pt-shadow); }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 2px; }
.nav__link { display: block; padding: 12px 6px; color: var(--pt-ink); text-decoration: none; font-weight: 600; border-radius: 8px; min-height: 44px; }
.nav__link:hover { background: var(--pt-bg-alt); color: var(--pt-navy); }

@media (min-width: 768px) {
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px; }
  .nav-toggle { display: none; }
  .nav { display: block; position: static; box-shadow: none; border: none; background: transparent; }
  .nav__list { flex-direction: row; padding: 0; gap: 4px; }
  .nav__link { padding: 8px 12px; font-weight: 500; }
}

/* ---- disclosure ribbon ---- */
.ribbon { background: var(--pt-amber-bg); border-bottom: 1px solid #f0dcae; }
.ribbon__inner { max-width: 700px; margin: 0 auto; padding: 10px 18px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ribbon__label { font-weight: 700; color: var(--pt-amber); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ribbon__text { font-size: 0.86rem; color: #6b501c; }
.ribbon a { color: #6b501c; text-underline-offset: 2px; }

/* ---- article ---- */
.article { padding: 30px 0 10px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 0.85rem; color: var(--pt-ink-soft); margin-bottom: 18px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }

.kicker {
  display: inline-block; font-family: var(--pt-font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--pt-blue-dark);
  background: #e8edfc; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

.article h1 { font-size: clamp(1.85rem, 1.35rem + 2.3vw, 3.1rem); letter-spacing: -0.01em; margin-bottom: 0.4em; }
.article .lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--pt-ink-soft); margin-bottom: 1.6em; }

.article-body h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin-top: 1.6em; }
.article-body h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); margin-top: 1.4em; }
.article-body p, .article-body ul { font-size: 1.05rem; }

.qa { margin: 1.8em 0; padding: 22px 20px; background: var(--pt-bg-alt); border-radius: var(--pt-radius-m); border: 1px solid var(--pt-line); }
.qa__q { display: flex; gap: 10px; align-items: flex-start; font-family: var(--pt-font-display); font-weight: 700; font-size: 1.08rem; color: var(--pt-navy); margin-bottom: 10px; }
.qa__q-mark { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pt-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.qa__a { display: flex; gap: 10px; align-items: flex-start; }
.qa__a-mark { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pt-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; }
.qa__a p:last-child { margin-bottom: 0; }

.takeaway {
  margin: 1.8em 0; padding: 20px; border-left: 4px solid var(--pt-blue);
  background: #eef2fd; border-radius: 0 var(--pt-radius-s) var(--pt-radius-s) 0;
}
.takeaway__title { font-family: var(--pt-font-display); font-weight: 700; color: var(--pt-navy); margin-bottom: 6px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.takeaway p:last-child { margin-bottom: 0; }

.rates-box { margin: 1.8em 0; padding: 22px; background: var(--pt-bg-navy); border-radius: var(--pt-radius-m); color: #eef1fb; }
.rates-box__title { font-family: var(--pt-font-display); font-size: 1.1rem; margin-bottom: 4px; color: #fff; }
.rates-box__sub { font-size: 0.9rem; color: #b9c3e4; margin-bottom: 16px; }
.rates-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rates-table th, .rates-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.rates-table th { font-family: var(--pt-font-display); font-weight: 600; color: #b9c3e4; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.rates-table td { color: #fff; }
.rates-table tr:last-child td { border-bottom: none; }
.rates-box__note { font-size: 0.8rem; color: #9aa6cc; margin-top: 14px; margin-bottom: 0; }
.rates-table__wrap { overflow-x: auto; }

.deliverables { list-style: none; padding: 0; margin: 1.6em 0; display: flex; flex-direction: column; gap: 10px; }
.deliverables li {
  margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-s);
  display: flex; gap: 10px; align-items: flex-start; font-size: 1rem;
}
.deliverables li::before { content: "✓"; color: var(--pt-blue); font-weight: 700; flex-shrink: 0; }

.figure { margin: 1.9em 0; }
.figure img, .figure video { border-radius: var(--pt-radius-m); box-shadow: var(--pt-shadow); }
.figure__caption { font-size: 0.85rem; color: var(--pt-ink-soft); margin-top: 8px; }

.media-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--pt-radius-m); background: #dde3ef; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }

.cta-band {
  margin: 2.2em 0; padding: 26px 22px; border-radius: var(--pt-radius-l);
  background: linear-gradient(135deg, var(--pt-navy), var(--pt-blue-dark));
  color: #fff; text-align: center;
}
.cta-band__title { color: #fff; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); margin-bottom: 8px; }
.cta-band__text { color: #dbe3fb; margin-bottom: 18px; font-size: 1rem; }

.divider { border: none; border-top: 1px solid var(--pt-line); margin: 2.4em 0; }

.closing { padding: 24px; background: var(--pt-bg-alt); border-radius: var(--pt-radius-m); margin: 2em 0; }
.closing h2 { margin-top: 0; }

.disclaimer-note { font-size: 0.82rem; color: var(--pt-ink-soft); border-top: 1px solid var(--pt-line); padding-top: 16px; margin-top: 2em; }
.disclaimer-note a { color: var(--pt-ink-soft); }

/* ---- sticky CTA bar ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--pt-line); box-shadow: 0 -10px 30px -18px rgba(16,24,43,0.4);
  padding: 10px 14px; transform: translateY(120%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { max-width: 700px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-cta__text { font-size: 0.85rem; color: var(--pt-ink-soft); display: none; }
body.has-sticky-cta { padding-bottom: 78px; }

@media (min-width: 480px) {
  .sticky-cta__text { display: block; }
}

/* ---- about page ---- */
.about-hero { padding: 40px 0 10px; }
.about-hero h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.9rem); }
.about-hero .lede { font-size: 1.1rem; color: var(--pt-ink-soft); }

.principles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.principle { padding: 18px; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-m); background: var(--pt-bg-alt); }
.principle h3 { margin-bottom: 6px; font-size: 1.1rem; }
.principle p { margin-bottom: 0; font-size: 0.98rem; color: var(--pt-ink-soft); }

.team-note { padding: 20px; border-radius: var(--pt-radius-m); background: var(--pt-bg-navy); color: #eef1fb; }
.team-note h2 { color: #fff; }

@media (min-width: 768px) {
  .principles { flex-direction: row; flex-wrap: wrap; }
  .principle { flex: 1 1 calc(50% - 16px); }
}

/* ---- footer ---- */
.site-footer { background: var(--pt-bg-navy); color: #b9c3e4; padding: 40px 0 26px; margin-top: 20px; }
.footer__inner { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.footer__brand { color: #fff; font-family: var(--pt-font-display); font-weight: 700; margin-bottom: 6px; }
.footer__desc { font-size: 0.88rem; max-width: 480px; margin-bottom: 22px; }
.footer__links { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer__links a { color: #d7deef; font-size: 0.88rem; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal { font-size: 0.78rem; color: #7f8ab3; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.footer__legal p { margin-bottom: 4px; }

@media (min-width: 1024px) {
  .article { padding: 46px 0 10px; }
}
