/* HawkHurst Chambers. Libre Baskerville and Source Sans 3 are self-hosted. */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-baskerville-400.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-baskerville-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --navy: #0e1c33;
  --royal: #1a438c;
  --paper: #f3f0e8;
  --white: #ffffff;
  --ink: #1c2430;
  --muted: #3c4654;
  --rule: #d7d0c4;
  --line: #5c564c;
  --serif: "Libre Baskerville", Georgia, "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
dl,
dd {
  margin: 0;
}

a {
  color: var(--royal);
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--royal);
}

a:hover {
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.55rem 0.8rem;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
  border-bottom: 3px solid var(--royal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100% - 5.5rem);
  padding: 0.45rem 0.7rem 0.4rem;
  background: var(--royal);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  line-height: 1.15;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:visited {
  color: var(--white);
  text-decoration: none;
}

.wordmark:focus-visible,
.site-header a:focus-visible,
.nav summary:focus-visible {
  outline-color: var(--white);
}

.nav {
  position: relative;
}

.nav summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav ul {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 31;
  min-width: 14rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--rule);
}

.nav[open] ul {
  display: block;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 1rem;
  color: var(--navy);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--royal);
  text-decoration: underline;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a:visited,
.desktop-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .desktop-nav {
    display: block;
  }

  .nav {
    display: none;
  }

  .wordmark {
    max-width: none;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 28, 51, 0.94) 0%, rgba(14, 28, 51, 0.9) 55%, rgba(14, 28, 51, 0.86) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-block: clamp(3.25rem, 8vw, 6.25rem);
}

.kicker {
  margin: 0 0 0.85rem;
  color: #c5d4ef;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12em;
  color: var(--white);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  line-height: 1.12;
}

.hero-lede {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.4;
}

.hero-text {
  max-width: 36rem;
  margin-top: 1.15rem;
  color: #e6ebf3;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

a.button,
a.button:hover,
a.button:focus,
a.button:focus-visible,
a.button:visited,
a.button:active {
  text-decoration: none;
}

/* Visited must keep the resting colours. Browsers ignore background
   changes on :visited, so a visited colour that only works on the hover
   fill makes the label disappear. */
a.button-solid,
a.button-solid:link,
a.button-solid:visited,
a.button-solid:focus,
a.button-solid:focus-visible {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0e1c33;
}

a.button-solid:hover,
a.button-solid:active {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

a.button-ghost,
a.button-ghost:link,
a.button-ghost:visited,
a.button-ghost:focus,
a.button-ghost:focus-visible {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

a.button-ghost:hover,
a.button-ghost:active {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0e1c33;
}

a.button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
}

.page-hero-inner {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-hero h1 {
  max-width: 16em;
  color: var(--white);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
}

.page-hero p {
  max-width: 38rem;
  margin-top: 0.85rem;
  color: #e6ebf3;
}

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-follow {
  padding-top: 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.block-title {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
}

.section-head p,
.intro {
  margin-top: 0.85rem;
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.person-card,
.service-card,
.panel {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--royal);
}

.person-card a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.15rem;
  min-height: 100%;
  padding: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.person-card h3 {
  font-size: 1.35rem;
}

.person-card p,
.service-card p,
.profile p {
  margin-top: 0.45rem;
}

.meta {
  color: var(--royal);
  font-size: 0.95rem;
  font-weight: 600;
}

.portrait {
  width: 7.5rem;
  height: 9.2rem;
  background: var(--navy);
  color: var(--white);
}

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

.monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.photo-missing {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.service-card {
  padding: 1.25rem 1.3rem 1.4rem;
}

.service-card h3 {
  font-size: 1.25rem;
}

.service-card a {
  font-weight: 600;
}

.more-link {
  margin-top: 1.5rem;
}

.facts {
  display: grid;
  gap: 1rem;
}

.fact {
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.fact strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
}

.profile {
  display: grid;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.profile + .profile {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.profile-head {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  align-items: end;
}

.profile .portrait {
  width: 8.5rem;
  height: 10.6rem;
}

.profile h2 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
}

.profile h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.profile ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.profile li + li {
  margin-top: 0.45rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-list dt {
  margin-top: 1.2rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dt:first-child {
  margin-top: 0;
}

.contact-list dd {
  margin-top: 0.25rem;
}

.contact-list a {
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.panel h2 + .notice {
  margin-top: 1rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--navy);
  border-left: 4px solid var(--royal);
  background: var(--white);
  color: var(--navy);
}

.panel {
  padding: 1.25rem;
}

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

.honeypot {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  color: var(--navy);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

button {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 0.25rem;
  padding: 0.6rem 1.3rem;
  border: 2px solid #0e1c33;
  background-color: #0e1c33;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
button:active {
  border-color: #1a438c;
  background-color: #1a438c;
  color: #ffffff;
}

button:focus,
button:focus-visible {
  border-color: #0e1c33;
  background-color: #0e1c33;
  color: #ffffff;
  outline: 3px solid #1a438c;
  outline-offset: 3px;
}

.form-privacy {
  color: var(--navy);
  font-size: 1rem;
}

.site-footer {
  background: var(--navy);
  color: #e6ebf3;
  padding-block: 2.75rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.15rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer p,
.site-footer li {
  margin-top: 0.35rem;
}

.site-footer ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer address {
  margin-top: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.direct-access {
  margin-top: 0.85rem;
  max-width: 46rem;
  color: var(--white);
}

.photo-credit {
  margin-top: 0.85rem;
  max-width: 46rem;
  color: #c5d4ef;
  font-size: 0.95rem;
}

.photo-credit a,
.photo-credit a:visited,
.photo-credit a:hover {
  color: #ffffff;
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: -3px;
}

@media (max-width: 40rem) {
  button,
  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .person-card a,
  .profile-head {
    grid-template-columns: 6.4rem 1fr;
  }

  .portrait,
  .profile .portrait {
    width: 6.4rem;
    height: 8rem;
  }
}

@media (min-width: 42rem) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .card-grid.services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 52rem) {
  .wrap {
    width: min(72rem, calc(100% - 4rem));
  }

  .card-grid.people {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }

  .profile {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
  }

  .profile-head {
    display: block;
  }

  .profile .portrait {
    width: 11rem;
    height: 13.5rem;
  }
}

@media (min-width: 70rem) {
  .card-grid.services.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (forced-colors: active) {
  .wordmark,
  .button,
  .person-card,
  .service-card,
  .notice,
  button,
  input,
  textarea {
    border: 1px solid ButtonText;
  }
}

@media print {
  .skip-link,
  .nav summary,
  .hero-actions,
  .form {
    display: none;
  }

  .site-header,
  .hero,
  .page-hero,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero h1,
  .page-hero h1,
  .site-footer h2,
  .wordmark {
    color: #000;
  }
}
