/* Locally served Noto Serif CJK SC subsets. License: assets/qiri-font-license.html */
@font-face {
  font-family: "Qiri Almanac";
  src: url("assets/qiri-almanac.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Qiri Date";
  src: url("assets/qiri-date.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --display: "Qiri Almanac", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --date-face: "Qiri Date", "Iowan Old Style", Georgia, serif;
  --numbers: "Avenir Next", "Segoe UI", var(--sans);
}

body { line-height: 1.55; letter-spacing: .012em; }
button, input, textarea, select { letter-spacing: inherit; }

.brand strong,
.hero h1,
.tray-toolbar h2,
.space-heading h2,
.day-section-heading h3,
.day-dialog #day-title,
.day-dialog .journal-label-row label {
  font-family: var(--display);
  font-weight: 700;
  font-kerning: normal;
  letter-spacing: .025em;
}

.brand strong { line-height: 1.2; letter-spacing: .045em; }
.hero h1 { line-height: 1.15; letter-spacing: .02em; }
.hero-label { font-weight: 600; letter-spacing: .06em; }
.hero-description { line-height: 1.7; letter-spacing: .024em; }
.button { font-weight: 600; }

.navigation-month {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .012em;
}

.tile-date {
  font-family: var(--date-face);
  font-size: clamp(1.55rem, 2.45vw, 2.13rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: -.018em;
}

.tile-caption { font-weight: 600; letter-spacing: .012em; }
.tile-task { line-height: 1.3; }
.day-dialog #day-title { line-height: 1.22; font-variant-numeric: lining-nums; }
.day-dialog .day-stamp { font-weight: 600; letter-spacing: .034em; }
.day-dialog #day-note { letter-spacing: .024em; }

@media (max-width: 830px) {
  .hero h1 { letter-spacing: .018em; }
  .tile-date { font-size: clamp(1.27rem, 4.45vw, 1.58rem); }
}
