@import url("assets/fonts/smiley/result.css");

@font-face {
  font-family: "Xintao Notes";
  src: url("assets/fonts/notes.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Xintao Mono";
  src: url("assets/fonts/mono.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --display-font: "Smiley Sans Oblique", "Noto Sans CJK SC", sans-serif;
  --note-font: "Xintao Notes", "AR PL UKai CN", KaiTi, serif;
  --meta-font: "Xintao Mono", "DejaVu Sans Mono", monospace;
}

.wordmark {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.1px;
  transform: rotate(-3deg);
  font-synthesis: none;
}

.hero h1,
h2,
.work-card h3,
.timeline h3 {
  font-family: var(--display-font);
  font-synthesis: none;
}

.hero h1,
h2,
.work-card h3,
.timeline h3 {
  font-weight: 400;
}

.hero h1 .asterisk {
  font-family: Arial, sans-serif;
}

.experience-stamp strong {
  font-family: var(--display-font);
  font-weight: 400;
}

.section-label > span:last-child,
.timeline-date,
.work-card > .tiny-label,
footer > span:first-child {
  font-family: var(--meta-font);
  font-weight: 400;
  letter-spacing: 0.045em;
  font-variant-numeric: tabular-nums;
}

.section-label > span:last-child {
  font-size: 9px;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .hero h1 .asterisk {
    font-size: 32px;
  }

  .work-card h3 {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .wordmark {
    font-size: 26px;
    letter-spacing: 0.9px;
  }

  .hero h1 .asterisk {
    font-size: 30px;
  }

  .about-layout > h2,
  .journey-intro h2,
  .work-heading h2,
  .resume-layout h2 {
    font-size: 34px;
  }

  .timeline h3 {
    font-size: 23px;
  }

  .work-card h3 {
    font-size: 27px;
  }

  .closing h2 {
    font-size: 38px;
  }

  .section-label > span:last-child {
    font-size: 8px;
    letter-spacing: 0.01em;
  }

  .experience-stamp strong {
    font-size: 48px;
  }
}

@media print {
  .wordmark {
    font-size: 22px;
    transform: none;
  }

  .about-layout > h2,
  .journey-intro h2,
  .work-heading h2,
  .resume-layout h2 {
    font-size: 22px;
    letter-spacing: 0;
  }

  .work-card h3 {
    font-size: 15px;
  }

  .timeline h3 {
    font-size: 14px;
  }
}
