:root {
  color-scheme: light;
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --muted: #6a6156;
  --paper: #f3efe4;
  --paper-raised: #faf7f0;
  --line: #d8d0c2;
  --brick: #7d2e22;
  --brick-dark: #5c2118;
  --focus: #1f4e79;
  --sans: "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

::selection { background: #ead7c4; }

a {
  color: var(--brick-dark);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--brick); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 2;
}

.skip:focus { top: 0.75rem; }

.stripe { height: 0.45rem; background: var(--brick); }

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--ink);
  margin-bottom: 2.25rem;
}

.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  padding: 1.1rem 0 0.9rem;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.wordmark span { font-style: normal; color: var(--brick); }

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mast nav {
  display: flex;
  gap: 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.mast nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mast nav a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 560; line-height: 1.12; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0.2rem 0 0.6rem; }

h2 { font-size: 1.45rem; margin: 0 0 0.8rem; }

h3 { font-size: 1.25rem; margin: 0; }

p { margin: 0 0 0.9rem; }

.lede { font-size: 1.35rem; line-height: 1.35; }

.role, .share-label, .note, .empty {
  font-family: var(--sans);
}

.role {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note, .empty { color: var(--ink-soft); font-size: 0.95rem; }

.sheet {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.sheet-id { position: sticky; top: 1.25rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.crumbs a { color: var(--ink-soft); }

.block { margin-top: 2rem; }

.block:first-child { margin-top: 0; }

.roster, .places, .links, .index-offices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roster li, .places li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.roster li:last-child, .places li:last-child { border-bottom: 1px solid var(--line); }

.who, .who-line { margin: 0.25rem 0 0; }

.scope { color: var(--ink-soft); font-size: 1rem; }

.links li { margin: 0.35rem 0; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2rem;
  align-items: start;
}

.start {
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  padding: 1rem 1.1rem 0.4rem;
}

.start a { font-size: 1.6rem; }

.index-place { margin-top: 1.5rem; }

.index-child {
  margin: 0.4rem 0 0.4rem 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.index-offices li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.index-offices span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  text-align: right;
}

.share { margin: 2.5rem 0 1rem; }

.share-label { margin-bottom: 0.55rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.share-row a, .share-row button, .tip button, button {
  font-family: var(--sans);
  font-size: 1rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.tip button {
  background: var(--ink);
  color: var(--paper);
  margin-top: 0.4rem;
}

.share-row a:hover, .share-row button:hover { background: #efe7d6; }

.tip {
  display: grid;
  gap: 0.35rem;
  max-width: 38rem;
  margin-top: 1.5rem;
}

.tip label {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.tip label span { color: var(--muted); }

.tip input, .tip textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  font: inherit;
}

.tip textarea { min-height: 9rem; resize: vertical; }

.tip .check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.8rem 0;
}

.tip .check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary { white-space: pre-wrap; }

.foot {
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
  padding: 1.2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.foot p:last-child { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

#search { margin-top: 1rem; --pagefind-ui-primary: var(--brick); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--paper-raised); --pagefind-ui-border: var(--line); --pagefind-ui-font: var(--serif); }

@media (max-width: 800px) {
  .sheet, .home-grid { grid-template-columns: 1fr; }
  .sheet-id { position: static; }
  .index-offices li { flex-direction: column; gap: 0.1rem; }
  .index-offices span { text-align: left; }
  .index-child { margin-left: 0.2rem; }
}
