@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --orange: #f0640b;
  --band: #f6881f;
  --white: #fffaf5;
  --ink: #3d1606;
  --visited: #5e1407;
  --band-height: 3rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  min-width: 16rem;
  background: var(--orange);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

.bar {
  position: relative;
  height: var(--band-height);
  overflow: clip;
  background: var(--band);
  border-bottom: 1px solid rgb(255 255 255 / 45%);
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bar.svg") no-repeat right center / auto 100%;
}

.container {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--band-height));
  min-height: calc(100svh - var(--band-height));
  padding: var(--space-6) max(var(--space-3), env(safe-area-inset-right))
    calc(var(--space-6) + var(--space-4))
    max(var(--space-3), env(safe-area-inset-left));
  text-align: center;
}

.identity {
  max-width: 64rem;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5.3vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.name-part { display: inline-block; }
.light { font-weight: 300; }

.tagline {
  margin: var(--space-3) 0 0;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

.home-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  margin-top: var(--space-4);
  padding: var(--space-1) 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  transition: text-decoration-thickness 150ms var(--ease-out);
}

.profile-link:visited { color: var(--visited); }
.profile-link:hover { text-decoration-thickness: 2px; }
.profile-link:active { transform: translateY(1px); }

.profile-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 200ms var(--ease-out);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip-link:focus { transform: translateY(0); }

@keyframes reveal-band {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes glide-facets {
  from { opacity: 0; transform: translateX(2.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes rise-in {
  from { opacity: 0.45; transform: translateY(0.625rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .bar { animation: reveal-band 520ms var(--ease-out) backwards; }
  .bar::after { animation: glide-facets 700ms var(--ease-out) 80ms backwards; }

  .name-part { animation: rise-in 690ms var(--ease-out) 90ms backwards; }
  .name-part.light { animation-delay: 145ms; }
  .tagline { animation: rise-in 620ms var(--ease-out) 220ms backwards; }
  .profile-link { animation: rise-in 560ms var(--ease-out) 320ms backwards; }

  .profile-link:hover svg,
  .profile-link:focus-visible svg { transform: translate(2px, -2px); }
}

@media (max-width: 40rem) {
  :root { --band-height: 2rem; }
  .tagline { margin-top: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-link,
  .profile-link svg { transition: none; }
  .profile-link:active { transform: none; }
}
