:root {
  color-scheme: light;
  --ink: #211e1b;
  --muted: #56514b;
  --rule: #b3aaa0;
  --heading: #682d35;
  --link: #203d78;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 112.5%;
  line-height: 1.45;
  color: var(--ink);
  background: #faf8f2;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 3rem), 64rem); margin-inline: auto; }
a, .text-button { color: var(--link); text-underline-offset: .12em; }
a:visited { color: #573c70; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
input, select, textarea, button { font: inherit; }
button, select, input[type="search"], .field input:not([type="file"]), textarea {
  border: 1px solid #8b847d;
  border-radius: 2px;
  background-color: #fff;
  color: var(--ink);
  padding: .18rem .4rem;
  max-width: 100%;
}
button, select { background-color: #f3f1ee; }
button:active { background-color: #e4e0dc; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--link);
  text-decoration: underline;
}
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.18; }
h1, h2 { color: var(--heading); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.35rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
main { padding-block: 1.5rem 2rem; }
main > p, .page-heading p { max-width: 50rem; }
.masthead {
  color: #472331;
  background: #ead9bb;
  border-top: 3px solid #632938;
  border-bottom: 1px solid #b79a78;
}
.masthead a, .masthead a:visited, .masthead button.text-button { color: inherit; }
.masthead :focus-visible { outline-color: #203d78; }
.navrow, .navrow nav, .account, .action-row, .section-top, .project-top,
.project-tools, .tree-top, .viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
}
.navrow { align-items: center; padding-block: .65rem; gap: .25rem 1.75rem; }
.wordmark, .wordmark:visited {
  display: inline-flex;
  align-items: center;
  color: #632938;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: -.045em;
  text-decoration: none;
}
.wordmark img { width: 6.7rem; height: auto; display: block; }
.wordmark span { font-size: 1.45rem; line-height: 1; }
.navrow nav { gap: .25rem .9rem; }
.navrow nav a[aria-current="page"] { font-weight: bold; }
.account { margin-left: auto; }
#filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  margin-top: 1.2rem;
}
.search-field { display: grid; max-width: 100%; gap: .15rem; }
.search-field:first-child input { width: 24rem; }
.archive-intro { max-width: 40rem; }
#author-filter { align-self: end; }
#author-filter summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: .12em; }
#author-filter input { width: 15rem; margin-top: .2rem; }
input::placeholder { color: #69635f; opacity: 1; }
.prompt-tools { margin-top: .6rem; }
#prompt-status, .metadata, .hint, .field small, .state, .file-kind, .project-code {
  font-size: .91rem;
  color: var(--muted);
}
#prompt-status { margin-left: .35rem; }
#prompt-fallback { display: grid; margin-top: .45rem; }
#prompt-fallback textarea { display: block; width: 100%; max-width: 51rem; }
.catalog-section { margin-top: 1.35rem; border-top: 1px solid var(--rule); padding-top: .85rem; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
#count { font-size: .94rem; }
#count:empty, .feedback:empty { display: none; }
.publications { padding-left: 1.7rem; margin: .5rem 0 0; }
.publications li { padding-left: .16rem; margin: 0 0 .9rem; }
.publications h3 { margin: 0; }
.publications p { margin: .12rem 0 0; max-width: 54rem; }
.publications .metadata { margin-top: .1rem; }
.page-heading, .project-heading { margin-bottom: 1rem; }
.page-heading + section, .signed-out, .guide, .form-layout { max-width: 52rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.form-layout aside { border-top: 1px solid var(--rule); margin-top: 1.2rem; padding-top: .85rem; }
.form-layout form, .form-layout aside, .manage-grid form, .manage-grid section, .guide { max-width: 44rem; }
.form-card { min-width: 0; }
.field { display: grid; gap: .2rem; margin: .75rem 0; }
.field input, .field select, .field textarea { width: min(100%, 34rem); }
.field textarea { min-height: 4rem; resize: vertical; }
.field input[type="file"] { max-width: 100%; }
.field small, .hint { display: block; max-width: 40rem; }
.check { display: block; margin: .55rem 0; }
.check input { margin-inline: 0 .4rem; }
.segmented, .project-tools, .action-row { display: flex; flex-wrap: wrap; gap: .4rem .65rem; }
.segmented button[aria-pressed="true"] { font-weight: bold; border: 2px solid var(--ink); padding: calc(.18rem - 1px) calc(.4rem - 1px); }
.feedback { margin: .45rem 0; }
.feedback.error, .error-text { color: #8b2727; }
.notice { color: #6d470b; margin: .7rem 0; }
.section-top { justify-content: space-between; }
.section-top h2 { margin-bottom: 0; }
.lined-section { padding-top: .8rem; border-top: 1px solid var(--rule); }
.upper-link { display: inline-block; margin-bottom: .6rem; }
.project-top { gap: .25rem .8rem; margin-bottom: .25rem; }
.project-tools { margin-block: .75rem 1rem; }
.project-tools .feedback { margin: 0; }
.viewer-layout { display: grid; grid-template-columns: minmax(9rem, 21%) minmax(0, 1fr); border-block: 1px solid var(--rule); }
.tree { min-width: 0; padding: .65rem .7rem .65rem 0; border-right: 1px solid var(--rule); }
.tree-top { gap: .4rem; align-items: baseline; }
.tree ul { list-style: none; padding: 0 0 0 .8rem; margin: .15rem 0; }
.tree ul.tree-root { padding-left: 0; }
.tree summary, .management summary { cursor: pointer; }
.tree summary, .tree button { overflow-wrap: anywhere; }
.tree button { border: 0; text-align: left; background: transparent; padding: .12rem 0; color: var(--link); text-decoration: underline; }
.tree button[aria-pressed="true"] { font-weight: bold; }
.file-view { min-width: 0; }
.viewer-toolbar { padding: .55rem .65rem; border-bottom: 1px solid var(--rule); justify-content: space-between; }
.file-path, .record-code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; overflow-wrap: anywhere; }
.artifact-frame { display: block; border: 0; width: 100%; height: min(70vh, 42rem); min-height: 17rem; }
.file-view pre, .guide pre { font: .86rem/1.4 ui-monospace, Menlo, monospace; overflow: auto; }
.file-view pre { padding: .65rem; margin: 0; max-height: 70vh; }
.file-view .empty, .file-view .loading { padding: .65rem; }
.management { margin-top: 1rem; }
.management > summary { color: var(--heading); font-size: 1.25rem; font-weight: bold; }
.manage-grid > * { padding-top: .75rem; margin-top: .75rem; border-top: 1px solid var(--rule); }
.manage-grid .button + .button, .manage-grid .button + a { margin-inline-start: .5rem; }
.guide section + section { margin-top: 1.3rem; }
.guide pre { padding: .65rem; border-left: 2px solid var(--rule); }
.guide-links { margin-block: .75rem 1.3rem; }
.guide .agent-prompt { margin: .85rem 0; border-inline-start: 2px solid var(--rule); padding-inline-start: .85rem; }
.agent-prompt p { margin-bottom: .2rem; }
.agent-prompt button { font-size: .9rem; }
.guide-aside p { max-width: 44rem; }
.dialog { border: 1px solid var(--ink); color: var(--ink); padding: 1rem; max-width: min(30rem, 94vw); }
.dialog::backdrop { background: rgb(0 0 0 / 30%); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; left: .5rem; top: .5rem; z-index: 1; padding: .25rem; background: #fff; }

@media (max-width: 42rem) {
  .frame { width: calc(100% - 1.5rem); }
  .navrow { gap: .3rem 1rem; }
  .navrow nav { order: 2; width: 100%; }
  .account { font-size: .92rem; }
  #filters { align-items: start; }
  .search-field { width: 100%; }
  .search-field input { width: 100% !important; }
  .viewer-layout { grid-template-columns: minmax(0, 1fr); }
  .tree { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 12rem; overflow: auto; }
  .viewer-toolbar { padding-inline: 0; }
  #prompt-status:not(:empty) { display: block; margin: .3rem 0 0; }
}
