:root {
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.68);
  --sky-core: #d7f0ff;
  --sky-mid: #8fd0f7;
  --sky-edge: #4eade8;
  --serif: "Libre Baskerville", "Times New Roman", Times, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--sky-edge);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 38%,
      #e7f6ff 0%,
      var(--sky-core) 28%,
      var(--sky-mid) 62%,
      var(--sky-edge) 100%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  z-index: 2;
}

.mark {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

nav a {
  opacity: 0.78;
}

nav a:hover,
.mark:hover {
  opacity: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16vh 24px 6vh;
}

h1 {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 6.4vw, 3.65rem);
  letter-spacing: 0.16em;
  line-height: 1.18;
  text-transform: uppercase;
}

.lede {
  margin: 2.5vh 0 0;
  max-width: 28em;
  padding: 0 12px;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}

.projects {
  list-style: none;
  width: min(520px, calc(100% - 32px));
  margin: 4vh 0 0;
  padding: 0;
}

.projects a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  transition: background-color 0.2s ease;
  border-top: 1px solid rgba(10, 10, 10, 0.18);
}

.projects li:last-child a {
  border-bottom: 1px solid rgba(10, 10, 10, 0.18);
}

.projects a:hover,
.projects a:focus-visible {
  background-color: rgba(255, 255, 255, 0.16);
}

.name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
}

.desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  text-align: right;
}

.hero-mail {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.hero-mail:hover {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .top {
    padding: 18px 16px;
    gap: 12px;
  }

  .mark {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  nav {
    gap: 14px;
    font-size: 0.875rem;
  }

  .hero {
    padding: max(120px, 16vh) 20px 8vh;
  }

  .projects a {
    flex-direction: column;
    gap: 4px;
    padding: 15px 2px;
  }

  .desc {
    text-align: left;
  }
}

/* Quiet interaction details, without shifting the original composition. */
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

nav a {
  display: inline-block;
  padding-block: 8px;
  transition: opacity 0.2s ease;
}

.hero-mail {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.hero-mail:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .top { flex-wrap: wrap; }
  h1 { font-size: 1.85rem; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
