/* History in Practice — site styles
   Brand: navy #01076e, accent #010aa1, Roboto throughout */

:root {
  --navy: #01076e;
  --navy-accent: #010aa1;
  --paper: #fafaf7;
  --ink: #1a1a1a;
  --muted: #555;
  --rule: #e5e3da;
  --max: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
}

h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 1.2rem; }

h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 2.8rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}

h2.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 0;
  margin-top: 3rem;
}

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

p { margin: 0 0 1.1rem; }

a {
  color: var(--navy-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy); }

/* ---------- Header ---------- */
header.site {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}
.logo-lockup:hover { color: #fff; }

.logo-mark {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
}

.logo-text { line-height: 1.1; }

.logo-firm {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.logo-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
}

nav.main { display: flex; gap: 1.6rem; flex-wrap: wrap; }

nav.main a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main a:hover { color: #fff; }
nav.main a.active { color: #fff; border-bottom-color: #fff; }

/* ---------- Layout ---------- */
main { min-height: 70vh; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 6rem 1.5rem;
  text-align: center;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(1,7,110,0.55), rgba(1,7,110,0.65)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner { max-width: 900px; margin: 0 auto; }

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero .subhead {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ---------- Inline page hero ---------- */
.page-hero {
  margin: 0 0 2rem;
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: #ddd9c8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Home problem blocks ---------- */
.problem {
  border-top: 2px solid var(--navy);
  padding: 1.5rem 0 0.5rem;
  margin: 2rem 0;
}

.problem .lead {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.cta-link { display: inline-block; margin-top: 0.3rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.5rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid var(--navy);
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-accent); border-color: var(--navy-accent); color: #fff; }

.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
.anchor-section { scroll-margin-top: 100px; padding-top: 1rem; }

.section-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #ddd9c8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 0 1.2rem;
}
.section-image.top { background-position: center top; }

.practice-line {
  background: #f3f1e8;
  border-left: 3px solid var(--navy);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.97rem;
}
.practice-line strong { color: var(--navy); }

.example {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.97rem;
}
.example strong { color: var(--navy); }

hr.divider { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ---------- Experience page ---------- */
.institution { margin: 2.5rem 0 1.5rem; }
.institution h2 { margin-bottom: 0.2rem; border-bottom: none; padding-bottom: 0; }

.institution .meta {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.subsection-lead { font-weight: 700; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-portrait {
  float: right;
  width: 240px;
  height: 320px;
  margin: 0 0 1.5rem 2rem;
  background-image: url('images/headshot.jpg');
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--rule);
}

.contact-block {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin: 1.5rem 0;
  clear: right;
}

.contact-block h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 0;
  font-weight: 700;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
}
footer.site a { color: rgba(255,255,255,0.9); }
footer.site .footer-nav { margin-bottom: 0.8rem; }
footer.site .footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin: 0 0.6rem;
}
footer.site .footer-nav a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 4rem 1.25rem; min-height: 380px; }
  h2 { font-size: 1.35rem; }
  .site-inner { flex-direction: column; align-items: flex-start; }
  nav.main { gap: 1rem; }
  .logo-mark { height: 44px; }

  .contact-portrait {
    float: none;
    width: 100%;
    max-width: 280px;
    height: 360px;
    margin: 0 auto 1.5rem;
  }
}
