:root {
  color-scheme: light;
  --theme-canvas: #f2f2f2;
  --theme-paper: #ffffff;
  --theme-raised: #ffffff;
  --theme-surface: #f7f7f7;
  --theme-recess: #ebebeb;
  --theme-wash: #e1e1e1;
  --theme-ink: #202020;
  --theme-muted: #535353;
  --theme-faint: #646464;
  --theme-line: #d9d9d9;
  --theme-line-strong: #ababab;
  --theme-primary: #363636;
  --theme-on-primary: #ffffff;
  --theme-shadow: #191919;
  --theme-scrim: #171717;
  --theme-room-floor: #e4e4e4;
  --theme-room-rug: #cacaca;
  --theme-room-wood: #adadad;
}
:root[data-theme-mode="dark"] {
  color-scheme: dark;
  --theme-canvas: #181818;
  --theme-paper: #222222;
  --theme-raised: #2b2b2b;
  --theme-surface: #262626;
  --theme-recess: #303030;
  --theme-wash: #3b3b3b;
  --theme-ink: #ededed;
  --theme-muted: #c2c2c2;
  --theme-faint: #aaaaaa;
  --theme-line: #434343;
  --theme-line-strong: #666666;
  --theme-primary: #c8c8c8;
  --theme-on-primary: #1a1a1a;
  --theme-shadow: #050505;
  --theme-scrim: #090909;
  --theme-room-floor: #2e2e2e;
  --theme-room-rug: #3e3e3e;
  --theme-room-wood: #646464;
}
:root {
  --theme-danger: var(--theme-ink);
  --theme-danger-light: var(--theme-wash);
  --theme-success: var(--theme-ink);
  --theme-success-light: var(--theme-recess);
  --theme-warning: var(--theme-ink);
  --theme-warning-light: var(--theme-recess);
  --theme-tint: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-paper));
  --theme-tint-strong: color-mix(in srgb, var(--theme-primary) 20%, var(--theme-paper));
  --theme-tint-line: color-mix(in srgb, var(--theme-primary) 44%, var(--theme-line));
  --theme-primary-hover: color-mix(in srgb, var(--theme-primary) 88%, var(--theme-ink));
  --theme-focus: var(--theme-primary);
  --theme-grid: color-mix(in srgb, var(--theme-primary) 15%, var(--theme-line));
}
:root {
  --theme-heat-1: color-mix(in srgb, var(--theme-primary) 27%, var(--theme-paper));
  --theme-heat-2: color-mix(in srgb, var(--theme-primary) 46%, var(--theme-paper));
  --theme-heat-3: color-mix(in srgb, var(--theme-primary) 67%, var(--theme-paper));
  --theme-heat-4: var(--theme-primary);
}

.site-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-ink, #202020);
  text-decoration: none;
  white-space: nowrap;
}
.site-brand-lockup > strong {
  font-family: var(--font-reading, "Songti SC", "Noto Serif CJK SC", SimSun, serif);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: .12em;
  line-height: 1;
}
.site-brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background-color: var(--theme-primary, #363636);
  color: var(--theme-on-primary, #fff);
}
/* An open frame and the square of light it holds. */
.site-brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px 9px 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 1.5px 1.5px 0 0;
}
.site-brand-mark::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto;
  aspect-ratio: 1;
  border-radius: .75px;
  background: currentColor;
}
