@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --bg: #f0f0f0;
  --surface: #ffffff;
  --ink: #222222;
  --muted: #3a3a3a;
  --line: #cccccc;
  --accent: #520000;
  --accent-deep: #510003;
  --accent-darker: #420000;
  --accent-soft: rgba(82, 0, 0, 0.10);
  --max: 52rem;
  --wide: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Gill Sans MT", "Gill Sans", "Trebuchet MS", Calibri, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  background: var(--accent);
  border-bottom: 1px solid var(--accent-darker);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .brand,
.site-header .brand small,
.site-header .nav a {
  color: #ffffff;
}
.site-header .brand small { opacity: 0.85; }
.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-header-inner,
.site-footer-inner,
.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Source Sans 3", "Gill Sans MT", "Gill Sans", "Trebuchet MS", Calibri, sans-serif;
}

.brand small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

main {
  padding: 2.25rem 0 3.5rem;
}

.hero,
.section {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero.wide,
.section.wide {
  width: min(100% - 2rem, var(--wide));
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  font-family: "Garamond", "EB Garamond", "Palatino Linotype", Palatino, serif;
  color: var(--accent);
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-size: 1.1rem;
  margin: 1.35rem 0 0.4rem;
}

p { margin: 0 0 1rem; color: var(--ink); }
.lede { font-size: 1.12rem; color: var(--muted); }

ul.plain {
  margin: 0.35rem 0 1rem;
  padding-left: 1.25rem;
}
ul.plain li { margin: 0.2rem 0; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
  overflow: hidden;
}

.card img {
  display: block;
  width: calc(100% + 2.4rem);
  max-width: none;
  margin: -1.15rem -1.2rem 0.85rem;
  height: 10rem;
  object-fit: cover;
}

.card h2 {
  border: 0;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.2rem;
}

.card p { color: var(--muted); margin-bottom: 0.85rem; }

.card a.more {
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
}

.fee-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0.85rem 0 1.25rem;
}

.fee-block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.fee-block li { margin: 0.25rem 0; }

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.note p { margin: 0; }

.placeholder {
  border: 1px dashed var(--line);
  background: #faf7f7;
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
  margin: 0.75rem 0 1.25rem;
}

.cta {
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.photo-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 1.25rem 0 1.75rem;
}
.photo-row figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.photo-row img {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
}
.photo-row figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.bio {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin: 1rem 0 1.5rem;
}
@media (min-width: 720px) {
  .bio {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}
.bio img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
table.data-table th,
table.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data-table th {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tbody tr:nth-child(even) td {
  background: #faf7f7;
}

.reamer-groups {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1rem 0 1.5rem;
}
.reamer-groups .fee-block h3 {
  margin-top: 0;
}
.reamer-groups ul {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  columns: 1;
}
.reamer-groups li { margin: 0.15rem 0; }

.memo-list {
  columns: 1;
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.2rem;
}
@media (min-width: 640px) {
  .memo-list { columns: 2; }
}
.memo-list li {
  break-inside: avoid;
  margin: 0.2rem 0;
}

.site-footer {
  border-top: 1px solid var(--accent-darker);
  background: var(--accent-darker);
  padding: 1.5rem 0 2rem;
  color: #ffffff;
  font-size: 0.95rem;
}
.site-footer p,
.site-footer li,
.site-footer span {
  color: #ffffff;
}
.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer a:hover { opacity: 0.9; }
.site-footer strong { color: #ffffff; }
.site-footer .footer-links {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .site-header-inner { align-items: flex-start; }
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 45vw);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .brand-logo { height: 40px; }
  .brand-text small { display: none; }
}
