:root {
  color-scheme: light dark;
  --bg-main: #f6f3ed;
  --surface: rgba(255, 255, 255, 0.7);
  --text-main: #211c1a;
  --text-soft: #645954;
  --border: rgba(63, 54, 49, 0.18);
  --link: #112f45;
  --link-hover: #0a1d2c;
  --shadow: 0 22px 45px rgba(25, 18, 14, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #101113;
    --surface: rgba(18, 20, 24, 0.76);
    --text-main: #efebe4;
    --text-soft: #b9aea3;
    --border: rgba(216, 204, 191, 0.18);
    --link: #cddde8;
    --link-hover: #ffffff;
    --shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Source Serif 4", Georgia, serif;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  line-height: 1.45;
}

.content {
  width: min(740px, 100%);
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: clamp(3rem, 14vh, 8rem);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.03;
  letter-spacing: 0.015em;
  opacity: 0;
  animation: rise-in 520ms ease-out 0ms forwards;
}

p {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  color: var(--text-soft);
  width: 100%;
  opacity: 0;
  animation: rise-in 520ms ease-out 140ms forwards;
}

.email {
  display: inline-block;
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--link);
  text-decoration: none;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.13em;
  font-size: clamp(0.92rem, 1.08vw, 1.03rem);
  font-weight: 600;
  transition: color 160ms ease, text-decoration-thickness 160ms ease;
}

.email-arrow {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.34em;
  vertical-align: -0.1em;
  opacity: 0;
  transform: translateY(0.04em);
  transition: opacity 160ms ease, transform 160ms ease;
}

.email.is-typing .email-arrow {
  opacity: 0.78;
}

.email-arrow svg {
  width: 100%;
  height: 100%;
}

.email-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-text {
  display: inline;
}

.cursor {
  display: inline-block;
  width: 0.08em;
  height: 1.1em;
  margin-left: 0.16em;
  vertical-align: -0.11em;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 160ms ease;
  animation: none;
}

.email.is-typing .cursor {
  opacity: 1;
  animation: cursor-blink 900ms steps(1, end) infinite;
}

.email:hover,
.email:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 0.13em;
}

.email:hover .email-arrow,
.email:focus-visible .email-arrow {
  opacity: 1;
  transform: translateY(0.01em) scale(1.04);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  p,
  .email,
  body {
    animation: none;
    opacity: 1;
  }

  .cursor {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  h1,
  p {
    font-size: 1.02rem;
  }

  .email {
    font-size: 0.99rem;
  }
}
