/* Each name subset contains only its own glyphs. */
@font-face {
  font-family: "Name Serif";
  src: url("/fonts/name-newsreader.woff2?v=6028d5ef") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+48, U+5A, U+61, U+67-68, U+6E;
}
@font-face {
  font-family: "Name Serif";
  src: url("/fonts/name-serif-sc.woff2?v=5f59c813") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+5F20, U+6DB5;
}
:root { --site-gutter: clamp(1rem, 5vw, 2rem); }
.site-head {
  --chrome-deep: #2a2520;
  --chrome-ink: #5c554b;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 .5rem;
  width: var(--chrome-width, min(1120px, calc(100% - 48px)));
  min-height: 64px;
  margin-inline: auto;
  padding-block-start: env(safe-area-inset-top);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: .875rem;
  line-height: 1.4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
.site-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 44px;
  min-height: 44px;
  color: var(--chrome-deep);
  font-family: "Name Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
}
.site-mark:lang(zh) { letter-spacing: .04em; }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .125rem; margin-inline-start: auto; }
.site-head nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  color: var(--chrome-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease-out, text-decoration-color 150ms ease-out;
}
.site-head nav a:last-child { justify-content: flex-end; padding-inline-end: 0; }
.site-head nav a:active, .site-mark:active { color: #a84f28; }
.site-head :is(nav a, .site-mark)[aria-current="page"] {
  color: var(--chrome-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: #a84f28;
}
.site-head a:focus-visible { outline: 2px solid #a84f28; outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .site-mark:hover, .site-head nav a:hover {
    color: var(--chrome-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: #d9734a;
  }
}
@media (max-width: 640px) {
  .site-head { width: var(--chrome-width-sm, calc(100% - 2 * var(--site-gutter))); min-height: 56px; }
}
html { scrollbar-gutter: stable; }
::selection { background: #f8dcc4; color: #2a2520; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-head { view-transition-name: site-head; }
::view-transition-old(root) { animation: 140ms ease-out both chrome-fade-out; }
::view-transition-new(root) { animation: 280ms 60ms cubic-bezier(.2, .7, .2, 1) both chrome-fade-in; }
@keyframes chrome-fade-out { to { opacity: 0; } }
@keyframes chrome-fade-in { from { opacity: 0; } }
.confirm {
  display: grid;
  gap: 1rem;
  width: min(26.25rem, calc(100vw - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  border: 1px solid #e6dfd0;
  border-radius: 18px;
  background: #fffdf8;
  color: #2a2520;
  opacity: 1;
  box-shadow: 0 1px 2px rgb(84 62 36 / .06), 0 24px 48px -20px rgb(84 62 36 / .4);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
/* The class sets display, which would otherwise keep a closed dialog laid out below the page. */
.confirm:not([open]) { display: none; }
.confirm::backdrop { background: rgb(42 37 32 / .4); overflow: hidden; overscroll-behavior: contain; }
.confirm-copy { display: flex; flex-direction: column; gap: .5rem; text-align: center; }
.confirm-title { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.75rem; }
.confirm-desc { margin: 0; color: #6b6357; font-size: .875rem; font-weight: 400; line-height: 1.25rem; }
.confirm-actions { display: flex; flex-direction: column-reverse; gap: .5rem; }
.confirm button {
  height: 2.25rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, scale 120ms ease-out;
}
.confirm button[value="cancel"] { border: 1px solid #e6dfd0; background: #fffdf8; color: #2a2520; }
.confirm button[value="confirm"] { border: 1px solid #2a2520; background: #2a2520; color: #fffdf8; }
.confirm button:active { scale: .97; }
@media (hover: hover) and (pointer: fine) {
  .confirm button[value="cancel"]:hover { border-color: #d5cbb7; background: #f7f3ea; }
  .confirm button[value="confirm"]:hover { border-color: #3d362f; background: #3d362f; }
}
.confirm button:focus,
.confirm button:focus-visible { outline: none; }
.confirm:not([data-pointer]) button:focus-visible { box-shadow: 0 0 0 3px rgb(168 79 40 / .4); }
@media (max-width: 639px) {
  .confirm { padding: 1.25rem; }
  .confirm button { width: 100%; height: 2.75rem; }
}
@media (pointer: coarse) {
  .confirm button { height: 2.75rem; }
}
@media (min-width: 640px) {
  .confirm-copy { text-align: left; }
  .confirm-actions { flex-direction: row; justify-content: flex-end; }
}
@media (prefers-reduced-motion: no-preference) {
  .confirm { animation: confirm-in 200ms ease-out both; }
}
@keyframes confirm-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
