/* Freedom of the Pulpit — shared stylesheet */

@font-face {
  font-family: "Decimal";
  src: url("/fonts/Decimal_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Decimal";
  src: url("/fonts/Decimal_Light_Italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Decimal";
  src: url("/fonts/Decimal_Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Decimal";
  src: url("/fonts/Decimal_Semibold_Italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Decimal";
  src: url("/fonts/Decimal_Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #695d51;
  --bg-deep: #5a4f45;
  --text: #eeebe6;
  --text-dim: #cfc7bd;
  --highlight: #e1c0b1;
  --rule: rgba(238, 235, 230, 0.22);
  --max: 42rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Decimal", "Georgia", serif;
  font-weight: 300;
  font-feature-settings: "ss01" 1, "onum" 1;
  font-variant-numeric: oldstyle-nums;
  line-height: 1.6;
  font-size: 1.0625rem;
}

@media (prefers-reduced-motion: no-preference) {
  a, .stmt-item { transition: color 0.15s ease, opacity 0.15s ease; }
}

a {
  color: var(--highlight);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover, a:focus-visible { color: var(--text); }
a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }

h1, h2, h3 {
  font-weight: 900;
  font-feature-settings: "ss01" 1, "onum" 1;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); }
.hero h1 em,
.brand em { font-weight: 600; font-style: italic; }
h2 { font-size: clamp(1.3rem, 2vw + 1rem, 1.7rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.15em; }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--highlight);
  color: var(--bg-deep);
  padding: 0.6em 1em;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  font-weight: 600;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.3;
  max-width: 26rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--highlight);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
}
nav.site-nav a:hover,
nav.site-nav a:focus-visible,
nav.site-nav a[aria-current="page"] {
  color: var(--highlight);
}

/* ---------- Layout shells ---------- */
main { display: block; }

.hero {
  padding: 3.5rem 1.25rem 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
}
.eyebrow {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-feature-settings: "ss01" 1, "onum" 1, "smcp" 1;
  color: var(--highlight);
  margin-bottom: 0.9rem;
}

.byline {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  text-transform: lowercase;
  font-feature-settings: "ss01" 1, "onum" 1, "smcp" 1;
}

.section {
  padding: 3rem 1.25rem;
}
.section-narrow {
  max-width: var(--max);
  margin: 0 auto;
}
.section + .section { border-top: 1px solid var(--rule); }

.cover-frame {
  max-width: 44rem;
  margin: 0 auto 2.25rem;
  border: 1px solid var(--rule);
  padding: 1.75rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.cover-frame img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ---------- Buy links ---------- */
.buy-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.buy-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--rule);
  padding: 0.9rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.buy-list a:hover, .buy-list a:focus-visible {
  border-color: var(--highlight);
  color: var(--highlight);
}
.buy-list a::after { content: "→"; font-weight: 300; }

/* ---------- Pull quote (homepage signature) ---------- */
.pull {
  position: relative;
  margin: 2.25rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--highlight);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}

/* ---------- Endorsements ---------- */
.endorsement {
  margin: 0 0 2.25rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.endorsement:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.endorsement blockquote {
  margin: 0 0 0.85rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--highlight);
  font-style: italic;
  font-size: 1.1rem;
}
.endorsement cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 1.5rem;
}

/* ---------- Practice Statement — numbered statute list (signature element) ---------- */
.stmt-intro { color: var(--text-dim); margin-bottom: 2rem; }
ol.statement {
  list-style: none;
  counter-reset: stmt;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.stmt-item {
  counter-increment: stmt;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.stmt-item::before {
  content: counter(stmt);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--highlight);
  font-feature-settings: "ss01" 1, "lnum" 1;
  font-variant-numeric: lining-nums;
}
.stmt-item p { margin: 0; align-self: center; }

/* ---------- Bio ---------- */
.bio-meta {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: -0.5rem;
}
ul.plain { padding-left: 1.2rem; margin: 0.5rem 0 0; }
ul.plain li { margin-bottom: 0.4rem; }

/* ---------- Speaking topics ---------- */
ul.topics {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.6rem;
}
ul.topics li {
  padding-left: 1.4rem;
  position: relative;
}
ul.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 1px;
  background: var(--highlight);
}

.cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.25rem 3rem;
}
.site-footer-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logos a { display: inline-flex; align-items: center; }
.footer-logos img { height: 28px; width: auto; display: block; }
.footer-logo-fallback {
  border: 1px solid var(--rule);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
}

@media (max-width: 40rem) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .stmt-item { grid-template-columns: 2.25rem 1fr; }
}
