:is(.editorial-home, .editorial-post) {
  --paper: #f8f5ed;
  --ink: #25241e;
  --gutter: clamp(1.15rem, 3.5vw, 4.5rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0 auto;
  max-width: 112rem;
}
:is(.editorial-home, .editorial-post) :is(a, button):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.masthead, .colophon, .masthead-tools, .masthead-links, .colophon > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead, .colophon { padding-inline: var(--gutter); }
.masthead { min-height: clamp(4.4rem, 6.2vw, 6.3rem); }
:is(.editorial-home, .editorial-post) :is(.masthead, .colophon) a {
  color: inherit;
  text-decoration: none;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.25vw, 3.55rem);
  letter-spacing: -.068em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-emoji {
  font-size: .62em;
  letter-spacing: normal;
  vertical-align: .08em;
}
.masthead-tools, .masthead-links, .colophon > div { gap: clamp(1rem, 2.5vw, 2.8rem); font-size: 1rem; }
.masthead-menu { display: none; }
.masthead-links > a, .colophon > div a { padding-block: .6rem; }
:is(.editorial-home, .editorial-post) :is(.masthead-links, .colophon > div) a:hover { text-decoration: underline; text-underline-offset: .28em; }
.masthead #quarto-search {
  border-left: 1px solid #c8c4b8;
  padding-left: clamp(.75rem, 2vw, 2rem);
}
.masthead #quarto-search .aa-DetachedSearchButton {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 2rem;
  min-height: 2.75rem;
  color: var(--ink);
}
.masthead #quarto-search .aa-DetachedSearchButtonIcon { color: inherit; width: 100%; }
.masthead #quarto-search .aa-DetachedSearchButtonQuery { display: none; }
.masthead #quarto-search svg { width: 1.35rem; height: 1.35rem; }

.colophon { padding-block: 2rem; }
.colophon .wordmark { font-size: 2rem; }

@media (max-width: 40rem) {
  .masthead { min-height: 4rem; }
  .masthead-links { display: none; }
  .masthead-tools { gap: .5rem; }
  .masthead-menu { display: block; position: relative; z-index: 3; margin: 0; }
  .masthead-menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    list-style: none;
  }
  .masthead-menu summary::-webkit-details-marker { display: none; }
  .masthead-menu summary span {
    width: .25rem; height: .25rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -.45rem 0 currentColor, .45rem 0 currentColor;
  }
  .masthead-menu nav {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 9rem;
    background: var(--paper);
    border: 1px solid var(--ink);
    padding: .35rem 1rem;
  }
  .masthead-menu a { display: block; padding: .65rem 0; }
  .masthead #quarto-search { padding-left: .55rem; }
  .wordmark { font-size: clamp(1.7rem, 8.5vw, 2.15rem); }
  :is(.editorial-home, .editorial-post) { --gutter: clamp(.75rem, 3.6vw, 1.45rem); }
  .colophon { flex-wrap: wrap; gap: .65rem 1rem; }
  .colophon > div { gap: 1rem; font-size: .86rem; }
}

/* Each painting keeps its paper and ink colors from cover to article. */
.palette-rose  { --cover-paper: #dfa8b1; --cover-ink: #29231f; }
.palette-olive { --cover-paper: #575e3e; --cover-ink: #fff9e9; }
.palette-clay  { --cover-paper: #a84f35; --cover-ink: #fff9e9; }
.palette-blue  { --cover-paper: #c7d6dd; --cover-ink: #242c2c; }
.palette-sand  { --cover-paper: #e9e0cc; --cover-ink: #302b23; }
.palette-ochre { --cover-paper: #e8c879; --cover-ink: #342d20; }
