@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #262626;        /* charcoal: text and marks */
  --muted: #5E5E5E;      /* secondary text, 6.5:1 on white */
  --paper: #FFFFFF;
  --rule: #DFDFDF;       /* hairlines */
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;           /* 17px: Garamond runs small */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
main:focus { outline: none; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10;
  padding: 0.5rem 0.9rem; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 640px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wm-name { font-weight: 600; font-size: 1.35rem; letter-spacing: 0.12em; margin-right: -0.12em; }
.wm-tag { font-size: 0.875rem; color: var(--muted); margin-top: 0.35rem; }
.nav { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 1rem; color: var(--muted); padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Home */
.home main { display: flex; align-items: center; }
.intro { max-width: 640px; padding-top: 5rem; padding-bottom: 6rem; }
.intro h1 {
  font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15;
  letter-spacing: -0.005em; margin: 0 0 2rem;
}
.intro-body { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.intro-body p { margin: 0 0 1rem; }
.intro-body p:last-child { margin-bottom: 0; }

/* Inner pages */
.page { padding-top: 4rem; padding-bottom: 5rem; }
h1, h2 { text-wrap: balance; }
h1 { font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 1.5rem; }

.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
address { font-style: normal; }

/* Legal: reads like a printed document */
.legal { font-size: 1rem; line-height: 1.5; }
.legal .doc + .doc { margin-top: 4.5rem; padding-top: 3.5rem; border-top: 1px solid var(--rule); }
.legal h2 { font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin: 0 0 0.35rem; }
.legal .doc-meta { color: var(--muted); margin: 0 0 2rem; }
.legal h3 { font-weight: 400; font-size: 1.2rem; margin: 2.25rem 0 0.75rem; }
.legal p { margin: 0 0 0.9rem; }
.legal .section-name { font-weight: 400; }
.legal p.section-name { margin-bottom: 0.4rem; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 0.9rem; }
.legal li { margin-bottom: 0.35rem; }

.table-wrap { overflow-x: auto; margin: 0.75rem 0 1.25rem; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 0.9375rem; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 500; color: var(--muted); }
tbody th { font-weight: 400; }

/* Footer: one quiet line */
.site-footer { border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .header-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .nav { gap: 1.25rem; }
  .intro { padding-top: 3rem; padding-bottom: 4rem; }
  .page { padding-top: 2.75rem; padding-bottom: 3.5rem; }
  .contact-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media print {
  .skip-link, .site-header nav, .site-footer nav { display: none; }
}

/* Contact: SMS disclosure, deliberately small */
.sms-note { margin: 2.5rem 0 0; max-width: 30rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.sms-note a { color: var(--muted); }
