:root {
  --ink: #101a17;
  --ink-soft: #4a5f56;
  --ink-faint: #6d8278;
  --wash: #dfece6;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 26, 23, 0.1);
  --line-strong: rgba(16, 26, 23, 0.22);
  --accent: #1a7a62;
  --accent-deep: #0e4f40;
  --mark-bg: #16352c;
  --page-pad: clamp(1.25rem, 4vw, 2.75rem);
  --max: 30rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "Fraunces", Georgia, serif;
  --font-ui: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 8% -10%, #f3f7d8 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 100% 5%, #8fc4b4 0%, transparent 48%),
    radial-gradient(ellipse 80% 50% at 40% 110%, #5f9788 0%, transparent 55%),
    linear-gradient(168deg, #e8f1ec 0%, #c5d9d0 45%, #a8c4b8 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: min(48vw, 22rem);
  height: min(48vw, 22rem);
  top: -8%;
  right: -6%;
  background: #c8e38a;
  animation: drift-a 16s var(--ease) infinite alternate;
}

.orb-b {
  width: min(56vw, 26rem);
  height: min(56vw, 26rem);
  bottom: -12%;
  left: -10%;
  background: #6eaea0;
  animation: drift-b 20s var(--ease) infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23101a17' stroke-opacity='0.05' d='M0 80h160M80 0v160'/%3E%3Ccircle cx='80' cy='80' r='1.2' fill='%23101a17' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 80%);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--page-pad);
  padding-top: clamp(2.5rem, 10vh, 5.5rem);
  padding-bottom: 2rem;
}

.intro {
  margin-bottom: clamp(2rem, 6vh, 3rem);
  text-align: center;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.15rem;
  border-radius: 1rem;
  background: var(--mark-bg);
  color: #e8f4ef;
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(16, 26, 23, 0.18);
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.02s forwards;
}

.domain {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.08s forwards;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.5rem, 10vw, 3.6rem);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.14s forwards;
}

.tagline {
  margin: 0.9rem auto 0;
  max-width: 18rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.75s var(--ease) 0.24s forwards;
}

.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.links li {
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: calc(0.34s + var(--i) * 0.09s);
}

.link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.6rem;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.link:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 16px 36px rgba(16, 26, 23, 0.1);
}

.link:active {
  transform: translateY(-1px);
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.link-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.link-label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.link-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s var(--ease);
}

.link-arrow {
  font-size: 1.15rem;
  color: var(--accent);
  transform: translateX(0);
  opacity: 0.55;
  transition:
    transform 0.28s var(--ease),
    opacity 0.28s var(--ease);
}

.link:hover .link-hint,
.link:focus-visible .link-hint {
  color: var(--accent-deep);
}

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.footer {
  margin-top: auto;
  padding-top: 2.75rem;
  text-align: center;
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.75s forwards;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-8%, 12%) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(10%, -8%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  .domain,
  .brand,
  .tagline,
  .links li,
  .footer {
    opacity: 1;
    animation: none;
  }

  .orb-a,
  .orb-b {
    animation: none;
  }

  .link,
  .link-arrow {
    transition: none;
  }

  .link:hover {
    transform: none;
  }

  .link:hover .link-arrow {
    transform: none;
  }
}

@media (min-width: 480px) {
  .link {
    gap: 1.1rem;
    padding: 1.05rem 1.2rem;
  }

  .link-body {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}
