:root {
  --navy: #162451;
  --blue: #173f91;
  --purple: #714071;
  --green: #3c6658;
  --mauve: #9b6596;
  --mauve-dark: #5a345e;
  --mauve-pale: #e8dce9;
  --paper: #fffefb;
  --line: #c8afca;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--navy);
  background: #e8e0ea;
  font: 1rem/1.58 Verdana, Geneva, Tahoma, sans-serif;
}

a { color: #164fad; text-underline-offset: 0.14em; }
a:visited { color: #705179; }
a:hover, a:focus-visible { color: #8a145d; }

.site-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 28px rgb(57 35 60 / 18%);
}

.site-header {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  color: white;
  text-align: center;
  background: #9a6594 url('/assets/lavender-banner-texture.webp') center / cover no-repeat;
  border-bottom: 4px ridge #d9c0dc;
}

.brand {
  display: flex;
  flex-direction: column;
  color: white !important;
  text-decoration: none;
  text-shadow: 1px 2px 2px rgb(47 20 51 / 72%);
}

.brand span {
  font: 700 clamp(1rem, 2vw, 1.3rem)/1.1 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand strong {
  margin: 0.1em 0;
  font: 700 clamp(2.25rem, 6vw, 4.5rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.035em;
}

.brand small {
  font: 700 0.92rem/1.2 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.18em;
}

.page-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1rem, 3vw, 2.4rem);
}

aside { min-width: 0; }

.nav-panel { position: sticky; top: 1rem; }
.nav-panel summary {
  margin-bottom: 0.55rem;
  color: var(--mauve-dark);
  font: italic 1rem Georgia, serif;
  cursor: pointer;
}

.nav-panel nav { display: grid; gap: 0.3rem; }
.nav-panel nav > a,
.subnav a {
  display: block;
  padding: 0.42rem 0.62rem;
  color: #311c3a;
  background: #e1cbe3;
  border: 1px solid #b28cb6;
  border-left: 5px solid #8a5b8e;
  font: 700 0.9rem/1.25 "Arial Narrow", Arial, sans-serif;
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a:focus-visible,
.nav-panel a[aria-current="page"] {
  color: white;
  background: var(--mauve-dark);
  border-color: #4e2e53;
}

.subnav {
  display: grid;
  gap: 0.28rem;
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 2px groove var(--line);
}

.subnav h2 {
  margin: 0 0 0.15rem;
  color: var(--purple);
  font: 700 0.92rem/1.2 "Trebuchet MS", Arial, sans-serif;
}

.subnav a { padding-left: 0.8rem; background: #f1eaf2; font-weight: 400; }

main { min-width: 0; }
main > :first-child { margin-top: 0; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
h1 { color: #163276; font-size: clamp(1.75rem, 4vw, 2.55rem); }
h2 { margin-top: 1.7em; color: var(--purple); font-size: clamp(1.25rem, 2.6vw, 1.65rem); }
h3 { color: var(--green); font-size: 1.18rem; }
h4 { color: #7b3f4a; }

p, li { max-width: 80ch; }
li + li { margin-top: 0.25em; }
ul { list-style-image: url('/assets/sumbul1a.gif'); }
ul ul { list-style-image: url('/assets/sumbul2a.gif'); }
ul ul ul { list-style-image: url('/assets/sumbul3a.gif'); }

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

table {
  max-width: 100%;
  border-collapse: collapse;
}
td, th { vertical-align: top; }

pre, code { max-width: 100%; overflow-wrap: anywhere; }

.align-center { text-align: center; }
.align-right { text-align: right; }
.align-left { text-align: left; }

.memorial {
  margin: 1.4rem 0;
  padding: 0.8rem 1rem;
  background: #f4edf4;
  border-left: 5px solid var(--purple);
}

.last-updated {
  max-width: none;
  margin-top: 3rem;
  padding-top: 0.8rem;
  text-align: right;
  color: #63566b;
  border-top: 1px solid #d9ceda;
  font-size: 0.78rem;
}

.email-button,
.site-search button {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  color: white !important;
  background: var(--mauve-dark);
  border: 2px outset #ba96bd;
  font-weight: 700;
}

.site-search {
  max-width: 44rem;
  padding: 1.2rem;
  background: #f2ebf3;
  border: 2px groove var(--line);
}
.site-search label { display: block; margin-bottom: 0.45rem; font-weight: 700; }
.site-search div { display: flex; gap: 0.5rem; }
.site-search input { min-width: 0; flex: 1; padding: 0.65rem; font: inherit; }

footer {
  padding: 0 1.2rem 2rem;
  color: #5e3b69;
  text-align: center;
}
footer img { display: block; width: min(540px, 100%); margin: 0 auto 0.25rem; }
footer p { max-width: none; margin: 0.35rem auto; }

@media (max-width: 760px) {
  .site-header { min-height: 135px; }
  .page-grid { display: block; }
  .nav-panel { position: static; margin-bottom: 1.6rem; }
  .nav-panel:not([open]) { padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
  .nav-panel nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subnav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subnav h2 { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .page-grid { padding: 0.9rem; }
  .nav-panel nav, .subnav { grid-template-columns: 1fr; }
  .site-search div { display: block; }
  .site-search input, .site-search button { width: 100%; }
  .site-search button { margin-top: 0.5rem; }
}

@media print {
  body { background: white; }
  .site-shell { width: auto; box-shadow: none; }
  .site-header { min-height: auto; color: black; background: none; border: 0; }
  .brand { color: black !important; text-shadow: none; }
  .page-grid { display: block; padding: 0; }
  aside, footer { display: none; }
}
