:root {
  --bg: #f1f1f1;
  --ink: #363636;
  --wash: #e3e3e1;
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lock: cubic-bezier(0.55, 0.02, 0.18, 1);
  --font: "EB Garamond", Garamond, Palatino, "Palatino Linotype", serif;
  --rise: 72px;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

main {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 56px;
  text-align: center;
}

.name {
  /* The line box is tighter than EB Garamond's ink. Safari clips anything
     outside the border box while a filter or transform is applied, which
     slices the g descenders on some versions and displays. Padding enlarges
     that box; the matching negative margin keeps the centering unchanged. */
  margin: -0.22em -0.14em -0.42em;
  padding: 0.22em 0.14em 0.42em;
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  white-space: nowrap;
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, calc(var(--rise) + 28px), 0);
}

.soon {
  margin: 0;
  padding-top: 72px;
  overflow: hidden;
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.2;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding-top: 22px;
}

.mask {
  display: block;
  overflow: hidden;
}

.curtain {
  display: block;
  transform: translate3d(0, 120%, 0);
}

.is-in > .curtain,
.is-in .curtain {
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s var(--ease-arrive);
}

.links a {
  position: relative;
  display: inline-block;
  padding: 0.08em 0.2em 0.2em;
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-arrive);
}

.links a::after {
  content: "";
  position: absolute;
  left: 0.2em;
  right: 0.2em;
  bottom: 0.12em;
  height: 1px;
  background: var(--ink);
}

.label {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    105deg,
    #363636 0%,
    #363636 42%,
    #ffffff 50%,
    #363636 58%,
    #363636 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.85s var(--ease-lock);
}

.links a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .links a:hover::before,
  .links a:focus-visible::before {
    transform: scaleX(1);
  }

  .links a:hover .label,
  .links a:focus-visible .label {
    background-position: 100% 50%;
  }
}

.links a:active::before {
  transform: scaleX(1);
}

@media (min-width: 760px) {
  .name {
    font-size: 60px;
    letter-spacing: -1.2px;
    line-height: 55px;
  }

  .soon {
    padding-top: 80px;
    font-size: 20px;
    line-height: 24px;
  }

  .links {
    flex-direction: row;
    gap: 26px;
    padding-top: 30px;
  }

  .links a {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (forced-colors: active) {
  .label {
    color: LinkText;
    -webkit-text-fill-color: unset;
    background: none;
  }

  .links a::before {
    display: none;
  }
}

body.is-settled .name {
  opacity: 1;
  filter: none;
  transform: none;
}

body.is-settled .curtain {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .name,
  .curtain,
  .label,
  .links a::before {
    transition: none !important;
    animation: none !important;
  }

  .name {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .curtain {
    transform: none;
  }
}
