/* EB Garamond and Montserrat are SIL Open Font License, self-hosted (latin subset). */
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b2b2b;
  --text: #555;
  --red: #b5323b;
  --red-dark: #962830;
  --bar: #f8f8f8;
  --paper: #fff;
  --rule: #dcdcdc;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --content: 60rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
strong { color: #444; font-weight: 600; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.5rem); font-weight: 500; }
h2.large { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 400; }

.wrap { padding: 0 1rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  color: var(--red);
  padding: .5rem 1rem;
  z-index: 10;
}

/* Header */
.site-header { background: var(--bar); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 1rem;
}
.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .btn { font-size: .78rem; letter-spacing: .16em; font-weight: 500; padding: .8rem 1.25rem; }

/* Buttons */
.btn,
.site-nav .btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
}
.btn:hover,
.site-nav .btn:hover { background: var(--red-dark); color: #fff; }

/* Content */
main { display: block; flex: 1 0 auto; }
.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 5.5rem 1rem 4.5rem;
  text-align: center;
}
hr + .section { padding-top: 4rem; }
.section > p {
  max-width: var(--measure);
  margin: 0 auto 1.1rem;
}
.section .btn { margin-top: 1.5rem; }

hr {
  max-width: var(--content);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--rule);
}
hr.short { max-width: 40rem; }
main > hr:last-child { margin-bottom: 4rem; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.5rem;
}
.service h3 {
  color: var(--red);
  font-style: italic;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { margin: 0 0 .1rem; }

/* Legal pages */
.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1rem 5rem;
}
.legal h1 { margin-bottom: .25rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.legal .updated { font-style: italic; margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--bar);
  text-align: center;
  padding: 4.5rem 0 3.5rem;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.footer-links a {
  color: #444;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--red); }

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

@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; gap: .5rem 1.25rem; }
  .section { padding: 3.5rem 1rem 3rem; }
  .services { grid-template-columns: 1fr; }
}
