:root {
  color: #2f3331;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page {
  width: min(100% - 48px, 980px);
  margin-inline: auto;
}

.masthead,
.footer {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.masthead {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eceeec;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  text-decoration: none;
}

.wordmark img { width: 36px; height: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a { text-decoration: none; }
.nav form { margin: 0; }

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cfd3d0;
  border-radius: 4px;
}

.language-switch button {
  min-width: 32px;
  border: 0;
  padding: 4px 6px;
  color: #626863;
  background: #fff;
  font: 600 11px system-ui, sans-serif;
  cursor: pointer;
}

.language-switch button + button { border-left: 1px solid #cfd3d0; }
.language-switch button[aria-current="true"] { color: #fff; background: #303532; }

.page {
  min-height: calc(100vh - 148px);
  padding: 64px 0 88px;
}

.flash-messages {
  width: min(100% - 48px, 980px);
  margin: 22px auto 0;
}

.flash-message {
  margin: 0;
  border-left: 3px solid #6c726e;
  padding: 10px 14px;
  background: #f4f5f4;
  font-size: 14px;
}

.flash-success { border-color: #3f7655; background: #eef6f0; }
.flash-error { border-color: #9e2d27; background: #fbefee; }

.page.narrow { max-width: 760px; }
.page.auth-page { max-width: 520px; }

h1,
h2 {
  letter-spacing: 0;
  font-weight: 400;
}

h1 {
  margin: 0 0 18px;
  color: #242826;
  font-size: 38px;
  line-height: 1.12;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

p { margin: 0 0 18px; }
.lede { color: #636965; font-size: 19px; }
.quiet-link, .note, .status, .result-summary, .breadcrumb { color: #6c726e; font-size: 14px; }
.eyebrow { margin-bottom: 10px; color: #6c726e; font: 600 12px system-ui, sans-serif; text-transform: uppercase; }

.intro {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr);
  gap: 42px;
  align-items: center;
}

.home-page { width: min(100% - 48px, 1160px); }
.home-page .intro-copy > p:not(.hero-kicker) { max-width: 31rem; }
.home-page h1 { max-width: 9em; font-size: 48px; }
.home-page h1 span { display: block; font-size: .72em; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  border-radius: 4px;
  padding: 5px 9px 5px 6px;
  color: #6d4a2d;
  background: #f5ede2;
  font: 600 12px system-ui, sans-serif;
}

.hero-kicker img { width: 22px; height: 22px; }

.hero-carousel { min-width: 0; }
.carousel-viewport { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide picture { display: block; width: 100%; height: 100%; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel-controls {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
}

.carousel-toggle,
.carousel-dot {
  border: 0;
  color: #555c57;
  background: transparent;
  cursor: pointer;
}

.carousel-toggle {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  font: 11px/1 system-ui, sans-serif;
}

.carousel-dots { display: flex; align-items: center; gap: 7px; padding: 0 3px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; padding: 0; background: #c8ccc9; }
.carousel-dot.is-active { background: #343936; }
.carousel-dot:hover { background: #343936; }
.carousel-toggle:hover { color: #111; }
.carousel-toggle:focus-visible,
.carousel-dot:focus-visible { outline: 2px solid #785b42; outline-offset: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.dictionary-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  margin-top: 38px;
  border-block: 1px solid #d9ddda;
  padding: 22px 0;
}

.dictionary-entry h2 { margin-bottom: 2px; font-size: 28px; }
.dictionary-entry p { align-self: center; margin: 0; }
.dictionary-class { color: #6c726e; font: 12px system-ui, sans-serif; text-transform: uppercase; }

.access-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-bottom: 1px solid #d9ddda;
}

.access-option { padding: 24px 36px 24px 0; }
.access-option + .access-option { border-left: 1px solid #e3e6e3; padding-right: 0; padding-left: 36px; }
.access-option h2 { font-size: 18px; }
.access-option p { max-width: 34rem; margin-bottom: 9px; color: #555c57; font-size: 14px; }

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #303532;
  border-radius: 6px;
  padding: 7px 15px;
  color: #303532;
  background: #fff;
  font: 600 14px system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { color: #303532; background: #fff; }
.button:hover, .button:focus-visible, .quiet-link:hover { opacity: .72; }
.text-button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; }

.band {
  max-width: 720px;
  margin-top: 52px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 64px;
}

.feature-grid p { color: #5d645f; font-size: 15px; }

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.page-heading .lede { margin-bottom: 0; }
.page-actions { justify-content: flex-end; margin-top: 0; }

.workspace-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #eceeec;
  padding: 22px 0;
}

.workspace-name { font-size: 21px; }
.workspace-list span { color: #6c726e; font-size: 14px; text-align: right; }

.onboarding {
  max-width: 700px;
  border-top: 1px solid #303532;
  padding-top: 30px;
}

.onboarding-steps { margin: 34px 0 0; padding-left: 24px; }
.onboarding-steps li { margin: 0 0 18px; padding-left: 6px; }
.onboarding-example { margin-top: 34px; border-block: 1px solid #e3e6e3; padding: 20px 0 4px; }
.prompt { max-width: 620px; color: #303532; font-size: 20px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .65fr) auto;
  gap: 18px;
  align-items: end;
  border-block: 1px solid #e3e6e3;
  padding: 22px 0;
}

.search-form label,
.field label {
  display: block;
  margin-bottom: 7px;
  color: #626863;
  font: 600 13px system-ui, sans-serif;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd3d0;
  border-radius: 4px;
  padding: 8px 10px;
  color: #2f3331;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus { border-color: #303532; outline: 2px solid #d9e8df; outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }

.result-summary { margin: 24px 0 10px; }
.pagination {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}
.pagination > :last-child { text-align: right; }
.pagination span { color: #747a76; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { color: #626863; font: 600 12px system-ui, sans-serif; text-align: left; text-transform: uppercase; }
th, td { border-bottom: 1px solid #eceeec; padding: 14px 16px 14px 0; vertical-align: top; }
td:last-child, th:last-child { padding-right: 0; }
.row-detail { display: block; color: #747a76; font-size: 13px; }
.event-summary { margin: 0; padding: 0; list-style: none; }
.event-summary li + li { margin-top: 4px; }
.freshness { font-size: 13px; font-weight: 700; }
.freshness-current { color: #28633f; }
.freshness-stale { color: #9a4b21; }
.freshness-unknown { color: #6c726e; }

.endpoint,
.connector-section {
  border-top: 1px solid #e3e6e3;
  padding: 28px 0 10px;
}

.endpoint { margin-top: 38px; }
.connector-section { margin-top: 30px; }
.connector-section ol { margin: 18px 0; padding-left: 24px; }
.connector-section li { margin: 11px 0; padding-left: 4px; }

.copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  border: 1px solid #e1e4e1;
  padding: 10px 12px;
  background: #f7f8f7;
  font: 14px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status { min-height: 1.5em; margin: 6px 0 0; }
.note { margin-top: 38px; }

.auth-panel {
  border-top: 1px solid #303532;
  padding-top: 32px;
}

.auth-page form { display: grid; gap: 18px; margin-top: 28px; }
.auth-page form p { display: grid; gap: 6px; margin: 0; }
.auth-page form label { color: #4f5752; font: 600 13px system-ui, sans-serif; }
.auth-page form input {
  width: 100%;
  border: 1px solid #cfd3d0;
  border-radius: 4px;
  padding: 9px 10px;
  background: #fff;
}
.auth-page form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-page form .checkbox-field label { margin: 0; }
.auth-page form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #303532;
}
.auth-page form button {
  justify-self: start;
  border: 1px solid #303532;
  border-radius: 6px;
  padding: 8px 15px;
  color: #303532;
  background: #fff;
  font: 600 14px system-ui, sans-serif;
  cursor: pointer;
}
.auth-page form button.social-button { color: #303532; background: #fff; }
.auth-page form ul { margin: 0; padding-left: 20px; color: #9e2d27; }

.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.social-auth form { margin: 0; }
.social-button { width: 100%; gap: 9px; background: #fff; }
.social-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.github-icon { color: #24292f; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; color: #737975; font: 12px system-ui, sans-serif; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #e3e6e3; content: ""; }

.stacked-form { display: grid; gap: 20px; margin-top: 34px; }
.stacked-form > .button { justify-self: start; }
.settings-form { max-width: 520px; }
.settings-section { border-top: 1px solid #e3e6e3; padding: 28px 0; }
.settings-section h2 { margin-bottom: 18px; font-size: 21px; }
.inline-settings-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 14px; align-items: end; max-width: 700px; }
.share-form { grid-template-columns: minmax(220px, 1fr) auto auto; }
.member-list { margin: 0; padding: 0; list-style: none; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #eceeec; padding: 16px 0; }
.member-row:first-child { border-top: 0; }
.member-controls { display: flex; align-items: center; gap: 10px; }
.toggle-control { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font: 600 13px system-ui, sans-serif; }
.toggle-control input { width: 18px; min-height: 18px; margin: 0; }
.button-danger { color: #9e2d27; }
.danger-link { color: #9e2d27; }
.danger-action { border-color: #9e2d27; background: #9e2d27; }
.inventory-edit-form { max-width: 700px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.item-description { max-width: 720px; font-size: 18px; }
.item-metadata { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 28px 0 44px; }
.item-metadata div { min-width: 140px; }
.item-metadata dt { color: #6c726e; font: 600 12px system-ui, sans-serif; text-transform: uppercase; }
.item-metadata dd { margin: 4px 0 0; }
.book-catalog { border-top: 1px solid #e3e6e3; margin: 34px 0 46px; padding-top: 28px; }
.book-catalog > p { max-width: 720px; }
.book-catalog-error { color: #9e2d27; }
.book-candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.book-candidate { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 20px; min-width: 0; border: 1px solid #e3e6e3; padding: 20px; }
.book-candidate-no-cover { grid-template-columns: minmax(0, 1fr); }
.book-candidate > div { min-width: 0; }
.book-candidate-with-cover .book-candidate-metadata div { grid-template-columns: 1fr; gap: 2px; }
.book-candidate-with-cover .book-candidate-metadata dt { margin-top: 7px; }
.book-candidate img,
.book-details img { width: 78px; max-height: 116px; object-fit: cover; border: 1px solid #e3e6e3; }
.book-candidate h3 { margin: 0 0 10px; font-size: 20px; }
.book-candidate form { margin-top: 16px; }
.book-candidate-metadata { display: grid; gap: 6px; margin: 0; }
.book-candidate-metadata div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.book-candidate-metadata dt { color: #6c726e; font: 600 12px system-ui, sans-serif; text-transform: uppercase; }
.book-candidate-metadata dd { margin: 0; overflow-wrap: break-word; }
.book-details { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 20px; max-width: 720px; }
.book-details-no-cover { grid-template-columns: minmax(0, 1fr); }
.book-synopsis { max-width: 720px; margin-top: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.field .helptext { margin-top: 6px; color: #737975; font-size: 13px; }
.field .helptext ul { margin: 8px 0 0; padding-left: 20px; }
.errorlist { margin: 7px 0 0; padding-left: 20px; color: #9e2d27; font-size: 14px; }
.auth-alternate { margin-top: 30px; color: #636965; }
.legal-page { max-width: 720px; }
.legal-page .lede { margin-bottom: 38px; }
.legal-page section { margin-top: 34px; }
.legal-page h2 { margin-bottom: 10px; font-size: 22px; }
.legal-page ul { padding-left: 22px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #eceeec;
  padding: 22px 0 28px;
  color: #747a76;
  font-size: 13px;
}

.footer a:first-child { margin-right: auto; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .masthead, .page, .footer { width: min(100% - 32px, 980px); }
  .page { padding: 44px 0 64px; }
  .nav { gap: 13px; }
  .home-page { width: min(100% - 32px, 980px); }
  .home-page h1 { max-width: 10em; font-size: 42px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .dictionary-entry { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .access-band { grid-template-columns: 1fr; margin-top: 38px; }
  .access-option { padding: 22px 0; }
  .access-option + .access-option { border-top: 1px solid #e3e6e3; border-left: 0; padding: 22px 0; }
  .band { margin-top: 58px; }
  .page-heading { display: block; }
  .page-heading > .button, .page-heading > .page-actions { margin-top: 20px; }
  .workspace-list li { align-items: flex-start; flex-direction: column; gap: 14px; }
  .workspace-list span { text-align: left; }
  .search-form { grid-template-columns: 1fr; }
  .inline-settings-form, .share-form { grid-template-columns: 1fr; align-items: start; }
  .member-row, .member-controls { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .book-candidate-metadata div { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .masthead { align-items: flex-start; padding: 17px 0; }
  .nav { align-items: flex-end; flex-direction: column; gap: 5px; }
  h1 { font-size: 32px; }
  .home-page h1 { font-size: 36px; }
  .hero-kicker { align-items: flex-start; }
  .social-auth { grid-template-columns: 1fr; }
  .carousel-controls { justify-content: center; }
  .copy-row { align-items: stretch; flex-direction: column; }
  .copy-row .button { align-self: flex-start; }
  .footer span { width: 100%; }
}

@media (max-width: 600px) {
  .carousel-viewport { aspect-ratio: 5 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}
