@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-regular.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #e8e6e1;
  background: #111111;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding: 2rem 1.25rem;
}

h1, p { margin: 0; }

h1 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

main > * + * { margin-top: 1.5rem; }

.is-entering > * {
  opacity: 0;
  transform: translateY(3px);
}

.is-entering.is-visible > * {
  transition: opacity 360ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.is-entering.is-visible > *.is-resolving {
  opacity: 1;
  transform: translateY(0);
}

.scramble-word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  font-variant-numeric: tabular-nums;
}

.rainbow-name {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #ffb9ed;
}

.name-ink { position: relative; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .name-ink {
    background-image:
      linear-gradient(110deg, transparent 40%, #ffffff 50%, transparent 60%),
      linear-gradient(90deg, #ff9acb, #ffbf85, #fff28a, #9dffbd, #8fdcff, #c4a5ff, #ff9acb);
    background-size: 250% 100%, 200% 100%;
    background-repeat: repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow-shine 5s linear infinite;
  }
}

@keyframes rainbow-shine {
  from { background-position: 166.6667% 0, 0% 0; }
  to { background-position: 0% 0, 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .is-entering > * {
    opacity: 1;
    transform: none;
  }

  .name-ink {
    animation: none;
    background-position: 0% 0, 0% 0;
  }
}

ul {
  margin: 0;
  padding-left: 1rem;
}

li + li { margin-top: 0.25rem; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

a:hover { color: #ffffff; }

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

.egg-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.egg-trigger:focus-visible,
.egg-close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

.easter-egg {
  width: min(31rem, calc(100% - 2.5rem));
  padding: 0;
  border: 1px solid #3a3936;
  border-radius: 2px;
  background: #151515;
  color: #e8e6e1;
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.easter-egg[open] {
  animation: egg-arrive 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.easter-egg::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(3px);
}

.egg-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.egg-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #ff9acb, #ffbf85, #fff28a, #9dffbd, #8fdcff, #c4a5ff, #ff9acb);
  background-size: 200% 100%;
  content: '';
  animation: egg-rainbow 3s linear infinite;
}

.egg-kicker {
  color: #aaa7a1;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.egg-card h2 {
  margin: 1rem 0 0;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.egg-card p { margin: 0.75rem 0 0; }

.egg-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
  cursor: pointer;
}

.egg-close svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes egg-arrive {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes egg-rainbow {
  to { background-position: 200% 0; }
}

.custom-cursor-active body,
.custom-cursor-active a,
.custom-cursor-active button {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: grid;
  width: 8px;
  height: 8px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #ff9acb;
  color: #111111;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height;
  transition: width 180ms ease, height 180ms ease, background-color 180ms ease, opacity 120ms ease;
}

.custom-cursor.is-visible { opacity: 1; }

.custom-cursor.is-link {
  width: 58px;
  height: 28px;
  background: #e8e6e1;
}

.custom-cursor span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 120ms ease, transform 180ms ease;
}

.custom-cursor svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-cursor.is-link span {
  opacity: 1;
  transform: scale(1);
}

@media (pointer: coarse) {
  .custom-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .easter-egg[open],
  .egg-card::before { animation: none; }
}

::selection {
  background: #e8e6e1;
  color: #111111;
}
