:root {
  --ink: #16243c;
  --ink-soft: #46536b;
  --paper: #fcfcfb;
  --surface: #eef1f5;
  --rule: #d5dae2;
  --blue: #2c5a8f;
  --ochre: #9a6b1c;
  --measure: 66ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

h1, h2, h3, .wordmark, .btn, .svc-name, .svc-fee, th, .package-price, .crumb, .ob-meta, .foot-head, .foot-mark {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1rem; z-index: 50;
}
.skip:focus { left: 0; }

.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 3rem); }

/* ---------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem 0; flex-wrap: wrap;
}
.wordmark { text-decoration: none; color: var(--ink); line-height: 1.1; font-weight: 700; font-size: 1.02rem; }
.wordmark-a { display: block; letter-spacing: -0.01em; }
.wordmark-b { display: block; color: var(--ochre); letter-spacing: .06em; font-weight: 500; font-size: .78rem; }
.masthead nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.masthead nav a { color: var(--ink); text-decoration: none; font-family: Archivo, sans-serif; font-size: .95rem; }
.masthead nav a:hover { color: var(--blue); text-decoration: underline; }

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

.hero { padding: 5.5rem 0 2.5rem; }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: var(--measure); font-size: 1.22rem; color: var(--ink-soft); }
.hero-sub { padding: 3.5rem 0 2.25rem; border-bottom: 1px solid var(--rule); }
.hero-sub h1 { max-width: 22ch; }

.crumb { font-size: .82rem; letter-spacing: .04em; margin-bottom: .9rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--blue); text-decoration: underline; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }
.section-lede { max-width: var(--measure); color: var(--ink-soft); }

.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; }

.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  padding: .72rem 1.35rem; border-radius: 2px; font-size: .95rem; font-weight: 500;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------- record block */

.record { margin: 2.5rem 0 0; border-top: 2px solid var(--ink); }
.rec-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule);
}
.rec-row dt {
  font-family: Archivo, sans-serif; font-size: .82rem; font-weight: 500;
  color: var(--ink-soft); letter-spacing: .02em; padding-top: .2rem;
}
.rec-row dd { margin: 0; }
.rec-row:last-child dd { font-weight: 600; color: var(--ochre); }

/* ---------------------------------------------------------- prose */

.prose { padding: 3rem 0; max-width: none; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; max-width: var(--measure); }
ul.ticks li { padding: .45rem 0 .45rem 1.5rem; border-bottom: 1px solid var(--rule); position: relative; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: .55rem; height: 1px; background: var(--ochre);
}

.note {
  border-left: 3px solid var(--ochre); padding: .2rem 0 .2rem 1.1rem;
  color: var(--ink-soft); font-size: .97rem; max-width: var(--measure);
}

.callout {
  background: var(--surface); border-left: 3px solid var(--blue);
  padding: 1.2rem 1.4rem; margin: 1.5rem 0; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- obligations */

.obligations { padding: 2.5rem 0 3.25rem; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; margin-top: 2.2rem; }
.ob { padding: 1.4rem 1.5rem 0 0; border-top: 2px solid var(--ink); margin-right: 1.5rem;
      display: flex; flex-direction: column; }
.ob h3 { margin-bottom: .45rem; }
.ob h3 a { text-decoration: none; }
.ob h3 a:hover { text-decoration: underline; }
.ob p { font-size: .97rem; color: var(--ink-soft); }
.ob-meta { font-size: .78rem; color: var(--ochre); margin: auto 0 0; padding-top: .6rem; letter-spacing: .02em; }

/* ---------------------------------------------------------- band */

.band { background: var(--surface); padding: 3.5rem 0; margin: 0; border-top: 1px solid var(--rule); }
.band p { max-width: var(--measure); }

/* ---------------------------------------------------------- service list */

.group-head { margin: 3rem 0 1.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }

.svc-list { display: grid; }
.svc {
  display: grid; grid-template-columns: 15rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.svc:hover { background: var(--surface); }
.svc-name { font-weight: 600; font-size: 1.02rem; color: var(--blue); }
.svc:hover .svc-name { text-decoration: underline; }
.svc-desc { color: var(--ink-soft); font-size: .97rem; }
.svc-fee { font-size: .9rem; font-weight: 500; color: var(--ochre); white-space: nowrap; }

/* ---------------------------------------------------------- fees */

.fees { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.fees th {
  text-align: left; font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: .03em; padding: 0 0 .6rem; border-bottom: 2px solid var(--ink);
}
.fees td { padding: .85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fees th:last-child { text-align: right; }
.fees td:last-child { text-align: right; font-family: Archivo, sans-serif; font-weight: 500; white-space: nowrap; }

.package { background: var(--ink); color: var(--paper); padding: 2rem 2.2rem; margin: 3rem 0 0; border-radius: 2px; }
.package h2 { color: #fff; margin-top: 0; }
.package p { color: #cfd7e4; }
.package-price { font-size: 1.5rem; color: #fff; margin: 1.2rem 0 .8rem; }
.package-price .was { font-size: .95rem; color: #8d9cb5; text-decoration: line-through; margin-right: .6rem; font-family: "Source Serif 4", serif; }
.package-note { font-size: .92rem; color: #9fadc4; margin-bottom: 0; }

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

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; }
.contact-card { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.contact-card h2 { font-size: 1rem; margin-bottom: .5rem; }
.contact-note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------------------------------------------------------- related */

.related { padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); }
.related h2 { font-size: 1rem; color: var(--ink-soft); }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }

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

.foot { background: var(--ink); color: #b9c4d6; margin-top: 0; padding: 3.5rem 0 2rem; font-size: .93rem; }
main > *:last-child { padding-bottom: 4.5rem; }
main > .band:last-child { padding-bottom: 3.5rem; }
.foot a { color: #dfe6f0; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: .22rem 0; }
.foot-mark { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.foot-head { color: #fff; font-size: .82rem; font-weight: 500; letter-spacing: .03em; margin-bottom: .6rem; }
.foot-note { max-width: 34ch; font-size: .9rem; }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2c3a55;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  font-size: .84rem; color: #8d9cb5;
}
.foot-legal p { max-width: 62ch; margin: 0; }

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

@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; gap: .35rem; }
  .svc-fee { text-align: left; }
  .ob { margin-right: 0; }
}

@media (max-width: 560px) {
  .wrap, .narrow { width: min(100% - 2rem, 1080px); }
  .hero { padding: 3.2rem 0 2.5rem; }
  .rec-row { grid-template-columns: 1fr; gap: .2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .package { padding: 1.5rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------- person */

.person {
  display: grid; grid-template-columns: 220px 1fr; gap: 2.2rem;
  margin: 2rem 0 1rem; align-items: start; max-width: none;
}
.person-photo img {
  width: 100%; height: auto; display: block; border-radius: 2px;
  background: var(--surface);
}
.person-text > * { max-width: none; }
.person-text h3 { font-size: 1.35rem; margin-bottom: .1rem; }
.person-role {
  font-family: Archivo, sans-serif; font-size: .82rem; letter-spacing: .04em;
  color: var(--ochre); margin-bottom: 1.1rem;
}
.person-facts { margin: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.person-facts > div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
}
.person-facts dt {
  font-family: Archivo, sans-serif; font-size: .8rem; font-weight: 500;
  color: var(--ink-soft); padding-top: .15rem;
}
.person-facts dd { margin: 0; font-size: .97rem; }

@media (max-width: 640px) {
  .person { grid-template-columns: 1fr; gap: 1.4rem; }
  .person-photo { max-width: 200px; }
  .person-facts > div { grid-template-columns: 1fr; gap: .1rem; }
}
