:root {
  --ground:  #FBF8F7;
  --surface: #FFFFFF;
  --raised:  #F4EEEB;
  --ink:     #1A120F;
  --muted:   #75635C;
  --faint:   #9C8B84;
  --rule:    #E9DFDA;
  --ember:   #C13E1B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:  #16100D;
    --surface: #211814;
    --raised:  #2B201B;
    --ink:     #F8F4F3;
    --muted:   #A8968F;
    --faint:   #7C6C66;
    --rule:    #392A24;
    --ember:   #F2673F;
  }
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 48px 22px 80px; }

.rounded {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.masthead img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
}

.masthead .names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.masthead .name { font-size: 30px; line-height: 1.1; }
.masthead .tag { color: var(--muted); font-size: 15px; }

nav {
  display: flex;
  gap: 20px;
  margin: 20px 0 44px;
  font-size: 15px;
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ember); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---- text ---- */

h1 {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 10px;
  text-wrap: balance;
}

.effective {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 34px;
}

h2 {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
  font-size: 17px;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; text-wrap: pretty; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 18px;
}

ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }

a { color: var(--ember); text-underline-offset: 2px; }

strong { font-weight: 600; }

/* ---- pieces ---- */

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ember);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 32px;
}

.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.contact a {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 17px;
  font-weight: 600;
  word-break: break-all;
}

details {
  border-bottom: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

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

summary::before {
  content: "+";
  color: var(--ember);
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 600;
}

details[open] summary::before { content: "\2212"; }

summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

details .answer {
  padding: 0 0 16px 22px;
  color: var(--muted);
}

details .answer p:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 14px;
}

footer p { margin: 0 0 6px; }

@media (max-width: 520px) {
  .wrap { padding: 34px 18px 64px; }
  body { font-size: 16.5px; }
}
