@font-face {
  font-family: "Virgil";
  src: url("assets/Virgil.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg-canvas: #faf9f5;
  --text-primary: #000000;
  --border-light: #e8e6dc;
  --accent-blue: #2a7ae2;

  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-hand: "Virgil", "Segoe Print", "Comic Sans MS", cursive;

  --max-width: 680px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-canvas);
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  padding: 4rem 1.5rem 6rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

a,
a:visited,
.desc strong a,
.desc strong a:visited {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover,
.desc strong a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4, .section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

.my-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.navigation {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
}

.navigation .sep {
  margin: 0 0.4rem;
  color: var(--text-primary);
}

.hero {
  margin-bottom: 1.5rem;
}

.hero svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero .hand {
  font-family: var(--font-hand);
}

.hero .mono {
  font-family: var(--font-mono);
}

.hero-keys {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 3em;
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-primary);
  transition: opacity 180ms ease;
}

body.home {
  padding-top: 1.5rem;
}

.cover {
  max-width: 760px;
  margin: 0 auto 2rem;
}

header {
  text-align: center;
}

.hero-keys .key {
  white-space: nowrap;
}

.hero-keys .sep {
  color: #b5b2a7;
}

@media (max-width: 520px) {
  .hero-keys {
    font-size: 0.8rem;
    min-height: 4.5em;
  }

  .hero-keys .key {
    white-space: normal;
  }
}

.section {
  margin-bottom: 3.5rem;
}

.section h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.entry {
  margin-bottom: 2.25rem;
}

.desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.desc strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.desc small {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.cta-links {
  margin-top: 1rem;
}

footer {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  margin-top: 4rem;
}
