:root {
  --editorial-serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
  --editorial-sans: "DM Sans", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --paper: #faf8f5;
  --ink: #261d21;
  --muted: #62585a;
  --line: #d9d2ce;
  --wine: #571b35;
  --wrap: 1600px;
  --pad: clamp(20px,4.7vw,80px);
  font-family: var(--editorial-sans);
  background: var(--paper);
  color: var(--ink);
}
body { background: var(--paper); font-family: var(--editorial-sans); }
button, input, select, textarea { font-family: var(--editorial-sans); }
::selection { background: #edcbd4; color: #331b26; }
body :is(a,button,summary,input,select):focus-visible {
  outline: 2px solid #90465e;
  outline-offset: 3px;
}
.skip { background: white; color: var(--ink); z-index: 100; }
.masthead { position: relative; z-index: 20; background: var(--paper); border-block-end: 1px solid #e8e2df; }
.masthead .navwrap {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 1rem; height: clamp(66px,6.1vw,88px);
}
.nav-start, .nav-end, .masthead .site-links { display: flex; align-items: center; }
.masthead .site-links { margin: 0; gap: clamp(1.25rem,2vw,2.4rem); }
.masthead .site-links a, .masthead .site-menu nav a {
  display: block; color: var(--ink); text-decoration: none; text-transform: none; font-size: .91rem;
  font-weight: 550; letter-spacing: .01em; line-height: 1.35; padding-block: .5rem;
}
.masthead .site-links a:hover, .masthead .site-links a[aria-current], .masthead .site-menu nav a:hover {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .36em;
}
.masthead .brand, .editorial-footer .brand { color: inherit; text-decoration: none; }
.wordmark { font: 400 clamp(2rem,2.75vw,3rem)/1 var(--editorial-serif); letter-spacing: .105em; direction: ltr; }
.masthead-wordmark { justify-self: center; padding-block: .3rem; }
.nav-end { justify-content: flex-end; gap: clamp(.4rem,1.15vw,1.25rem); }
.masthead .header-saved, .masthead summary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  min-width: 38px; color: var(--ink); text-decoration: none; list-style: none; cursor: pointer;
}
.masthead summary::-webkit-details-marker { display: none; }
.masthead .header-saved:hover, .masthead summary:hover { color: var(--wine); }
.masthead .header-saved svg, .masthead summary svg, .nav-search-form button svg { width: 20px; height: 20px; }
.masthead .header-saved[aria-current] svg { fill: #ead8df; }
.masthead .prefs { position: relative; margin: 0; z-index: 3; }
.masthead .prefs summary { gap: .4rem; font-size: .87rem; font-weight: 500; max-width: none; white-space: nowrap; }
.masthead .prefs summary svg:last-child { width: 13px; }
.masthead .pref-menu, .masthead .site-menu nav, .nav-search-form {
  z-index: 30; position: absolute; top: calc(100% + .35rem); inset-inline-end: 0; background: #fffdfb;
  color: var(--ink); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 12px 28px #39262e16; padding: 1.25rem; margin: 0;
}
.masthead .pref-menu { width: min(19rem, calc(100vw - 2 * var(--pad))); }
.masthead .pref-menu select, .nav-search-form input {
  border: 1px solid #b6abae; color: var(--ink); background-color: white; border-radius: 0;
  font: 400 1rem/1.35 var(--editorial-sans); min-height: 44px;
}
.masthead .pref-menu select { padding-inline: .65rem 2rem; }
.masthead .pref-menu label > span, .nav-search-form label { font: 600 .88rem/1.4 var(--editorial-sans); color: var(--ink); }
.masthead .header-search { position: relative; }
.nav-search-form { width: 22rem; }
.nav-search-form label { display: block; margin-block-end: .6rem; }
.nav-search-form > div { display: flex; }
.nav-search-form input { flex: 1 1 auto; min-width: 0; width: 100%; padding-inline: .65rem; }
.nav-search-form button { display: grid; place-items: center; background: var(--wine); color: white; border: 0; min-width: 46px; }
.masthead .site-menu { margin: 0; display: none; }
.masthead .site-menu nav { display: grid; gap: .25rem; }
.editorial-footer { background: #302027; color: #fff6ef; border: 0; }
.editorial-footer .foot {
  display: grid; grid-template-columns: 1fr auto auto; gap: clamp(1.3rem,4vw,4rem); align-items: center;
  padding-block: clamp(2.3rem,5vw,5rem); color: inherit;
}
.editorial-footer .wordmark { font-size: clamp(2.75rem,4.6vw,4.7rem); }
.editorial-footer .store-links { display: flex; flex-wrap: wrap; gap: .75rem 1.65rem; order: initial; margin: 0; width: auto; }
.editorial-footer .foot a { color: inherit; }
.editorial-footer .store-links a, .editorial-footer .foot-top { display: inline-block; font: 500 .9rem/1.4 var(--editorial-sans); padding-block: .4rem; }
.editorial-footer .foot-top { text-decoration: underline; text-underline-offset: .35em; }
.editorial-footer a:focus-visible { outline-color: #fff4db; }
@media(max-width: 900px) {
  .masthead .site-links { display: none; }
  .masthead .site-menu { display: block; position: static; }
  .masthead .site-menu nav, .masthead .header-search .nav-search-form { inset-inline: var(--pad); top: calc(100% - 1px); width: auto; }
  .masthead .header-search { position: static; }
  .masthead .prefs summary span, .masthead .prefs summary svg:last-child { display: none; }
  .masthead .site-menu summary { padding: 0; min-width: 36px; justify-content: flex-start; font-size: 1rem; border: 0; }
  .masthead .navwrap { gap: .35rem; }
}
@media(max-width: 650px) {
  .masthead .navwrap { height: 64px; padding-inline: 14px; }
  .masthead .wordmark { font-size: clamp(1.72rem,6.9vw,2.35rem); }
  .nav-end { gap: 0; }
  .masthead .header-saved, .masthead .nav-end summary { min-width: 33px; }
  .masthead .header-saved svg, .masthead .nav-end summary svg { width: 18px; height: 18px; }
  .editorial-footer .foot { grid-template-columns: 1fr auto; }
  .editorial-footer .store-links { grid-column: 1 / -1; grid-row: 2; }
}
@media(max-width: 360px) {
  .masthead .navwrap { padding-inline: 8px; }
  .masthead .header-saved, .masthead .nav-end summary { min-width: 30px; }
}
