/* ============================================================
   Looking for Truth In Bryan Mineo
   Static site stylesheet — longform journalism aesthetic
   ============================================================ */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: #fbf8f3;
  color: #1a1a1a;
  font-family: "Charter", "Iowan Old Style", "Sitka Text", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

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

a {
  color: #8a1f1f;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 31, 31, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: #8a1f1f;
}

a:visited {
  color: #6e1818;
}

hr {
  border: 0;
  border-top: 1px solid #d8d2c4;
  margin: 3rem 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Charter", "Iowan Old Style", "Sitka Text", Georgia, "Times New Roman", serif;
  color: #111;
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #d8d2c4;
  padding-bottom: 0.4rem;
  margin-top: 3.5rem;
}

h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1.2rem;
}

blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 3px solid #8a1f1f;
  color: #2c2c2c;
  font-style: italic;
}

blockquote p:last-child { margin-bottom: 0; }

strong { color: #000; }

ul, ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

li { margin-bottom: 0.4rem; }

small, .meta {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6358;
}

/* ---------- Masthead ---------- */
.masthead {
  background: #fbf8f3;
  border-bottom: 1px solid #d8d2c4;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.masthead-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.masthead-title a {
  color: #111;
  border: 0;
}

.masthead-rule {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6358;
}

/* ---------- Primary nav ---------- */
.nav {
  background: #fbf8f3;
  border-bottom: 2px solid #1a1a1a;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}

.nav a {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  border: 0;
  padding: 0.4rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #8a1f1f;
}

/* Dropdown submenu */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
  opacity: 0.6;
  margin-left: 0.2em;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: -0.6rem;
  display: none;
  background: #fbf8f3;
  border: 1px solid #d8d2c4;
  border-top: 2px solid #1a1a1a;
  min-width: 220px;
  padding: 0.4rem 0;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.nav-submenu a:hover {
  background: #f1ebdc;
  color: #8a1f1f;
}

@media (max-width: 600px) {
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown > a::after { content: ""; }
  .nav-submenu {
    position: static;
    display: block;
    border: 0;
    border-left: 1px solid #d8d2c4;
    margin: 0 0 0.4rem 0.4rem;
    padding: 0;
    box-shadow: none;
    min-width: 0;
  }
  .nav-submenu a {
    padding: 0.3rem 0 0.3rem 0.8rem;
    font-size: 0.7rem;
    color: #4a4438;
  }
}

/* ---------- Layout ---------- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

main.wide {
  max-width: 1000px;
}

article header {
  margin-bottom: 2.5rem;
}

.kicker {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a1f1f;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.dek {
  font-size: 1.25rem;
  line-height: 1.45;
  color: #3a3a3a;
  font-style: italic;
  margin: 1rem 0 1.5rem;
  font-weight: 400;
}

.byline {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.85rem;
  color: #6b6358;
  margin-bottom: 0;
}

/* ---------- Hero image ---------- */
.hero {
  margin: 0 -1.5rem 2.5rem;
}

.hero img {
  width: 100%;
}

.hero-caption {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  color: #6b6358;
  padding: 0.6rem 1.5rem 0;
}

@media (min-width: 760px) {
  .hero { margin-left: 0; margin-right: 0; }
  .hero-caption { padding-left: 0; padding-right: 0; }
}

/* ---------- Disclaimer / standfirst ---------- */
.standfirst {
  background: #f1ebdc;
  border-left: 4px solid #8a1f1f;
  padding: 1.3rem 1.5rem;
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.standfirst strong {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a1f1f;
  margin-right: 0.4rem;
}

/* ---------- Table of contents ---------- */
.toc {
  background: #fff;
  border: 1px solid #d8d2c4;
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
}

.toc h2 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6358;
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-weight: 700;
}

.toc ol, .toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  padding: 0.55rem 0;
  border-bottom: 1px dotted #d8d2c4;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.toc li:last-child { border-bottom: 0; }

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.75rem;
  color: #b09c7a;
  letter-spacing: 0.06em;
  min-width: 1.8em;
}

.toc a {
  border-bottom: 0;
  color: #1a1a1a;
  font-weight: 500;
}

.toc a:hover { color: #8a1f1f; }

.toc .ext {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6358;
  margin-left: auto;
  padding-left: 0.4rem;
  white-space: nowrap;
}

/* ---------- Section sub-toc ---------- */
.section-title {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a1f1f;
  margin: 3rem 0 0.4rem;
  font-weight: 700;
  border: 0;
  padding: 0;
}

/* ---------- Profile / source list ---------- */
.sources {
  margin: 2rem 0;
}

.source {
  padding: 1.4rem 0;
  border-top: 1px solid #d8d2c4;
}

.source:last-child { border-bottom: 1px solid #d8d2c4; }

.source h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.source p { margin-bottom: 0.6rem; font-size: 0.95rem; }

.source a.profile-link {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 0;
}

/* ---------- Question / numbered list ---------- */
.questions {
  counter-reset: qq;
  list-style: none;
  padding-left: 0;
}

.questions > li {
  counter-increment: qq;
  padding: 1.4rem 0;
  border-top: 1px solid #d8d2c4;
  position: relative;
  padding-left: 3.5rem;
}

.questions > li:last-child { border-bottom: 1px solid #d8d2c4; }

.questions > li::before {
  content: counter(qq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8a1f1f;
  letter-spacing: 0.04em;
}

.questions .closing {
  margin-top: 0.8rem;
  font-style: italic;
  color: #6b6358;
  font-size: 0.95rem;
}

.refs {
  margin-top: 0.8rem;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
}

.refs a { word-break: break-all; }

/* ---------- Testimonial card ---------- */
.testimonial {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 3px solid #1a1a1a;
}

.testimonial:first-of-type { border-top: 0; padding-top: 0; }

.testimonial header {
  margin-bottom: 1.5rem;
}

.testimonial .who {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a1f1f;
  margin: 0;
  font-weight: 700;
}

.testimonial h2 {
  border: 0;
  padding: 0;
  margin: 0.2rem 0 0.6rem;
  font-size: 1.7rem;
}

.testimonial .bio {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.85rem;
  color: #6b6358;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-size: 1.4rem;
  line-height: 1.4;
  color: #111;
  font-style: italic;
  text-align: center;
  margin: 2.5rem 0;
  padding: 1.5rem 1rem;
  border-top: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
}

/* ---------- Card grid for court records ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 2rem 0;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #d8d2c4;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-top: 0; }
.card p { font-size: 0.92rem; }
.card .card-actions {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.btn {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  background: transparent;
}

.btn-primary {
  background: #1a1a1a;
  color: #fbf8f3;
}

.btn-primary:hover { background: #8a1f1f; border-color: #8a1f1f; color: #fff; }
.btn:hover { background: #1a1a1a; color: #fbf8f3; }

a.btn, a.btn-primary { border-bottom: 1px solid #1a1a1a; }

/* ---------- Deposition / brief style ---------- */
.doc-page {
  font-size: 17px;
  line-height: 1.6;
}

.doc-page h2 {
  margin-top: 2.5rem;
}

.doc-page h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: #8a1f1f;
}

.exhibit {
  padding: 1.2rem 1.3rem;
  background: #fff;
  border: 1px solid #d8d2c4;
  margin: 1rem 0;
}

.exhibit .exhibit-id {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fbf8f3;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.exhibit h4 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.02rem;
}

.exhibit dl {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}

.exhibit dt {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6358;
  margin-top: 0.5rem;
}

.exhibit dd { margin: 0.1rem 0 0.4rem; }

/* Q/A transcript */
.qa {
  margin: 0.8rem 0;
}

.qa .speaker {
  display: inline-block;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a1f1f;
  min-width: 2.5rem;
  margin-right: 0.4rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #1a1a1a;
  color: #c8c0b0;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

footer.site-footer h3 {
  color: #fbf8f3;
  font-size: 1rem;
  margin-top: 0;
}

footer.site-footer a {
  color: #d6c3a0;
  border-bottom-color: rgba(214,195,160,0.3);
}

footer.site-footer a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Figure / image caption ---------- */
figure {
  margin: 2rem 0;
}

figure img {
  border: 1px solid #d8d2c4;
}

figcaption {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.82rem;
  color: #6b6358;
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  main { padding: 2rem 1.2rem 4rem; }
  .nav-inner { gap: 0 1rem; }
  .nav a { font-size: 0.72rem; }
  .standfirst { padding: 1.1rem 1.2rem; }
  .toc { padding: 1.2rem; }
  .toc li { flex-wrap: wrap; }
  .toc .ext { margin-left: 2.6em; }
  .pullquote { font-size: 1.15rem; }
}

/* ============================================================
   Password lock screen overlay
   ============================================================ */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a1a 0%, #2b1f1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

html.unlocked .lock-screen { display: none; }
html:not(.unlocked) body { overflow: hidden; }

.lock-card {
  background: #fbf8f3;
  border: 1px solid #d8d2c4;
  width: 100%;
  max-width: 440px;
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.lock-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.6rem;
  background: #8a1f1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbf8f3;
}

.lock-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.lock-card h1 {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  border: 0;
  padding: 0;
}

.lock-card .lock-desc {
  font-size: 0.95rem;
  color: #6b6358;
  line-height: 1.5;
  margin: 0 0 1.8rem;
  font-style: normal;
  font-family: inherit;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lock-form input {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d8d2c4;
  background: #fff;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.1em;
  width: 100%;
}

.lock-form input:focus {
  outline: 2px solid #8a1f1f;
  outline-offset: -1px;
  border-color: #8a1f1f;
}

.lock-form button {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.9rem 1rem;
  background: #1a1a1a;
  color: #fbf8f3;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lock-form button:hover {
  background: #8a1f1f;
}

.lock-error {
  color: #8a1f1f;
  font-size: 0.85rem;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  margin-top: 0.5rem;
  min-height: 1.3em;
}

.lock-error.shake {
  animation: lock-shake 0.4s;
}

@keyframes lock-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@media (max-width: 480px) {
  .lock-card { padding: 2.2rem 1.6rem 2rem; }
  .lock-card h1 { font-size: 0.85rem; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .site-footer, .hero { display: none; }
  body { background: #fff; color: #000; }
  main { max-width: 100%; }
  a { color: #000; border: 0; }
}
