@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #1A2530;
  --ink-soft: #2C3A47;
  --paper: #F2F1EC;
  --paper-raised: #FBFAF7;
  --accent: #1D5A8C;
  --accent-deep: #12456D;
  --slate: #5B6670;
  --line: #D8D5CC;
  --serif: 'Source Serif 4', serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */

header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--accent);
}

.nav-links a.current {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* ---------- citation tag (signature element) ---------- */

.citation {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 14px;
}

.citation::before {
  content: "§ ";
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; }

.docket {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.docket dl { margin: 0; }

.portrait {
  margin: 0 0 24px;
}

.portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
}

.portrait figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
}

.docket dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 4px;
}

.docket dd {
  margin: 0 0 20px;
  font-size: 15px;
  font-family: var(--serif);
}

.docket dd:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink-soft); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--accent); }

/* ---------- sections ---------- */

section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 28px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

/* specialties list */

.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.specialty-grid div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.specialty-grid div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.specialty-grid div:nth-child(even) { padding-left: 24px; }

/* CTA band */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 64px 32px;
}

.cta-band h2 { color: var(--paper); margin-bottom: 12px; }
.cta-band p { color: #C7CCD1; margin: 0 0 28px; }

.cta-band .btn-primary { background: var(--accent); color: #FFFFFF; }
.cta-band .btn-primary:hover { background: #2670A8; }

.cta-band .btn-secondary { color: var(--paper); border-color: #46525E; }

/* ---------- footer ---------- */

footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- about page ---------- */

.bio-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 56px 0 40px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--accent);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.bio-header h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 6px; }
.bio-header p { color: var(--slate); font-size: 14px; margin: 0; }

.bio-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
}

.credential-list { list-style: none; margin: 0; padding: 0; }

.credential-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  font-size: 14.5px;
}

.credential-list li:first-child { border-top: 1px solid var(--line); }

.credential-list .cred-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- contact page ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 56px;
}

.process-steps div {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 8px;
}

.process-steps h4 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 6px;
}

.process-steps p { font-size: 13.5px; color: var(--slate); margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

form { display: flex; flex-direction: column; gap: 18px; }

label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
  display: block;
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 2px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 100px; }

.contact-info {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--paper-raised);
  height: fit-content;
}

.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 4px;
}

.contact-info dd {
  margin: 0 0 18px;
  font-size: 15px;
}

.contact-info dd:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .hero h1 { font-size: 32px; }
  .docket { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: 1fr; }
  .specialty-grid div:nth-child(odd) { padding-right: 0; border-right: none; }
  .specialty-grid div:nth-child(even) { padding-left: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
  .bio-header { grid-template-columns: 72px 1fr; }
  .credential-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- education ---------- */

.education-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.education-list li {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-list .degree {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.education-list .school {
  font-size: 13.5px;
  color: var(--slate);
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .t-range {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  padding-top: 1px;
}

.timeline .t-role {
  font-size: 14.5px;
}

.timeline .t-role strong {
  font-weight: 600;
}

/* ---------- publications ---------- */

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.pub-item:first-child { padding-top: 0; }

.pub-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--slate);
  display: block;
  margin-bottom: 8px;
}

.pub-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pub-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 68ch;
}

.pub-link {
  font-size: 13px;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-deep);
}

.pub-link:hover, .pub-link:focus-visible { color: var(--ink); border-color: var(--ink); }

@media (max-width: 780px) {
  .education-list { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
