@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/dancing-script-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-400-500-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #faf9f6;
  --text: #292826;
  --muted: #74716b;
  --underline: #aaa69e;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Newsreader", Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  width: min(100% - 3rem, 36rem);
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: 3rem;
}

.identity {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.identity h1 {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.portrait {
  flex: 0 0 auto;
  width: 8.4rem;
  margin: 0;
  padding: 0.24rem;
  border: 1px solid var(--underline);
  border-radius: 50%;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.blog-link {
  align-self: flex-start;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1.2;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.blog-arrow {
  margin-left: 0.16em;
  font-size: 0.72em;
}

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.3rem;
  align-items: baseline;
  font-size: 1rem;
}

.elsewhere h2 {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
}

.elsewhere h2::after {
  width: 1.4rem;
  height: 2px;
  background: var(--underline);
  content: "";
}

.elsewhere nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.elsewhere a {
  color: inherit;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.blog-link:hover,
.elsewhere a:hover {
  text-decoration-color: currentColor;
}

.blog-link:focus-visible,
.elsewhere a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 0.25rem;
}

@media (max-width: 30rem) {
  .page {
    gap: 2.25rem;
    width: min(100% - 2rem, 36rem);
    padding-block: 2rem;
  }

  .identity {
    gap: 0.75rem;
  }

  .identity h1 {
    font-size: clamp(2.5rem, 12.5vw, 4.25rem);
  }

  .portrait {
    width: 6.9rem;
  }
}
