/* ============================================================
   Powers of Forensic Minds — static site
   Design tokens + styles
   ============================================================ */

:root {
  /* Color — a cool "case-file on a desk" palette, navy ink + restrained burgundy */
  --paper:        #e7eaef;
  --surface:      #ffffff;
  --surface-2:    #f2f4f7;
  --ink:          #15243b;
  --ink-soft:     #43526a;
  --muted:        #6c7889;
  --brass:        #6a1e35;
  --brass-bright: #8a2f4a;
  --line:         #cdd4de;
  --line-soft:    #e1e6ec;
  --ink-deep:     #11202f;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - calc(var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* mono eyebrow / case-file label */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 34px; height: auto; border-radius: 2px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brass);
}
.nav .btn-sm { margin-left: 0.25rem; }
.nav a.btn-brass, .nav a.btn-brass:hover { color: #fff; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.88rem; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-bright); transform: translateY(-1px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.cred-strip span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cred-strip span:not(:last-child)::after {
  content: "·";
  color: var(--brass);
  margin-left: 1.1rem;
}
.hero-figure {
  position: relative;
}
.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(17, 32, 47, 0.45);
  aspect-ratio: 12 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
.hero-figure .tag {
  position: absolute;
  left: -10px;
  bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 0.55rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: 0 12px 28px -18px rgba(17, 32, 47, 0.5);
}

/* ============================================================
   Intro / statement band
   ============================================================ */
.statement {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); }
.statement h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.statement p { color: var(--ink-soft); margin-bottom: 0; }
.statement .lede { font-size: 1.18rem; color: var(--ink); }

/* ============================================================
   Services
   ============================================================ */
.services .head { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services .head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.75rem; }
.services .head p { color: var(--ink-soft); margin: 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.2s ease;
}
.service:hover { background: var(--surface-2); }
.service .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.service h3 { font-size: 1.35rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ============================================================
   Credentials
   ============================================================ */
.credentials { background: var(--ink-deep); color: #e9edf2; }
.credentials .eyebrow { color: var(--brass-bright); }
.credentials .eyebrow::before { background: var(--brass-bright); }
.credentials h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 22ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.cred {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.2rem;
}
.cred h3 {
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}
.cred p { color: #aeb9c7; font-size: 0.96rem; margin: 0; }
.cred strong { color: var(--brass-bright); font-weight: 600; }

/* ============================================================
   Contact band
   ============================================================ */
.contact .wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.contact p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.contact .name { color: var(--ink); font-weight: 600; }
.contact-actions { display: flex; flex-direction: column; gap: 0.7rem; min-width: 240px; }
.contact-actions .btn { justify-content: center; }

/* ============================================================
   Fees page
   ============================================================ */
.page-head { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; margin-bottom: 1rem; }
.page-head p { color: var(--ink-soft); max-width: 56ch; }

.ledger { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}
.ledger-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.ledger-head .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.ledger p.note { color: var(--ink-soft); font-size: 0.98rem; margin: 1rem 0 1.25rem; max-width: 70ch; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table tr { border-bottom: 1px solid var(--line-soft); }
.fee-table tr:hover { background: var(--surface); }
.fee-table td {
  padding: 0.9rem 0.5rem;
  vertical-align: baseline;
}
.fee-table td.type { color: var(--ink); font-size: 1.02rem; }
.fee-table td.price {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.98rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 1.5rem;
}
.fee-table td.price.soft { color: var(--muted); }
.ledger .book { margin-top: 1.25rem; }

.fees-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: #c4cdd8;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: auto;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer p { color: #9aa6b4; font-size: 0.95rem; margin: 0.9rem 0 0; max-width: 42ch; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 500;
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #c4cdd8; font-size: 0.95rem; transition: color 0.16s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #7e8b9a;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Motion (reveal)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .hero-figure img { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 520px; }
  .statement .wrap { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
  .contact-actions { min-width: 0; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .nav .nav-link-text { display: none; }
  .nav { gap: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
}

/* ============================================================
   Blog index
   ============================================================ */
.blog-head { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 2vw, 1.5rem); }
.blog-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.75rem; }
.blog-head p { color: var(--ink-soft); max-width: 56ch; margin: 0; }

.post-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card {
  background: var(--surface);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: background 0.2s ease;
}
.post-card:hover { background: var(--surface-2); }
.post-card .thumb {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}
.post-card .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.post-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.6rem; }
.post-card h2 a { transition: color 0.16s ease; }
.post-card h2 a:hover { color: var(--brass); }
.post-card p { color: var(--ink-soft); margin: 0 0 1rem; font-size: 0.98rem; }
.post-card .more { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }

/* ============================================================
   Single post (article)
   ============================================================ */
.article-head { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.article-head .wrap { max-width: 760px; }
.back-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.back-link:hover { color: var(--brass); }
.article-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.08; margin-bottom: 1.1rem; }
.byline {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: center;
}
.byline .cat { color: var(--brass); }
.article-figure { margin-block: clamp(2rem, 4vw, 2.75rem); }
.article-figure .wrap { max-width: 920px; }
.article-figure img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 12 / 5; object-fit: cover; background: var(--surface-2);
}

.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2, .prose h3 {
  font-family: var(--serif); color: var(--ink);
  margin-top: 2.4rem; margin-bottom: 0.2rem;
}
.prose h3 { font-size: 1.4rem; }
.prose h3 a { color: var(--ink); border-bottom: 2px solid var(--brass); }
.prose h3 a:hover { color: var(--brass); }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}
.prose blockquote p { color: var(--ink); margin: 0; }
.prose ol, .prose ul { margin: 0.5rem 0; padding-left: 1.4rem; }
.prose li { margin-top: 0.5rem; color: var(--ink-soft); }
.prose li strong { color: var(--ink); }
.prose ol > li { margin-top: 1rem; }
.prose ol ul, .prose ul ul { margin-top: 0.5rem; }
.prose ol > li::marker { color: var(--brass); font-family: var(--mono); font-weight: 500; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--brass); transition: color 0.16s ease; }
.prose a:hover { color: var(--brass); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.25rem 0; }
.prose .sources li { font-size: 0.95rem; }

.article-foot {
  max-width: 720px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.share { display: flex; gap: 0.5rem; align-items: center; }
.share span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 0.25rem; }

@media (max-width: 620px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb { max-width: 100%; }
}
