@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1E1B16;
  --ink-soft: rgba(30, 27, 22, 0.62);
  --ink-faint: rgba(30, 27, 22, 0.38);
  --paper: #F7F4ED;
  --paper-deep: #EEE8DA;
  --brass-dark: #8C6F2E;
  --brass-dark-soft: rgba(140, 111, 46, 0.16);
  --rule: rgba(30, 27, 22, 0.13);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--brass-dark);
}

.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.lang-switch a { transition: color 0.15s ease; }
.lang-switch a:hover { color: var(--brass-dark); }
.lang-switch span.current { color: var(--ink); }

/* ---------- Hero / Letterhead ---------- */

.letterhead {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.letterhead-crest {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 620px;
  max-width: 60vw;
  opacity: 0.05;
  pointer-events: none;
}

.letterhead .wrap {
  position: relative;
  padding: 88px 32px 68px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass-dark); color: var(--brass-dark); }

/* document metadata strip */
.meta-strip {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.meta-item .meta-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.meta-item .meta-value {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Sections ---------- */

section.block { padding: 72px 0; }
section.block.deep { background: var(--paper-deep); }
section.block.tight { padding: 56px 0; }

.block-head { max-width: 62ch; margin-bottom: 44px; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.block-head p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0;
}

/* practice index — document-style multi-column list */
.index-list {
  columns: 2;
  column-gap: 48px;
}

.index-list .index-item {
  break-inside: avoid;
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.index-list .index-item:first-child,
.index-list .index-item:nth-child(2) {
  border-top: none;
}

.index-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  padding-top: 2px;
  min-width: 22px;
}

.index-item h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.index-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* credentials / dossier layout for About */
.dossier {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.dossier-mark {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-deep);
}

.dossier-mark img.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%);
}

.dossier-mark .mark-crest {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 15%;
  object-fit: contain;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}

.dossier-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.dossier-body p strong { color: var(--ink); font-weight: 600; }

dl.credentials {
  margin: 32px 0 0;
  border-top: 1px solid var(--rule);
}

dl.credentials > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

dl.credentials dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

dl.credentials dd {
  margin: 0;
  font-size: 15.5px;
}

/* contact */
.contact-block {
  max-width: 480px;
}

.contact-block dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.contact-block dd {
  margin: 0 0 26px;
  font-size: 17px;
}

.contact-block dd a:hover { color: var(--brass-dark); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.footer-affiliation {
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-cross {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.footer-cross a { color: var(--brass-dark); font-weight: 600; }
.footer-cross a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  h1 { font-size: 32px; }
  .meta-strip { grid-template-columns: 1fr; gap: 18px; }
  .index-list { columns: 1; }
  .dossier { grid-template-columns: 1fr; }

  nav.main-nav { gap: 16px; flex-wrap: wrap; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .letterhead-crest { display: none; }
}

:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 2px;
}
