/* Hallmark · genre: atmospheric · macrostructure: Index-First · theme: Lumen · drop: night
 * enrichment: none · nav: none · footer: Ft2
 * audience: Instagram / social followers · use: open a destination link · tone: premium technical
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="lumen"] {
  color-scheme: dark;

  --color-paper: #000000;
  --color-paper-2: oklch(16% 0 0);
  --color-paper-3: oklch(21% 0 0);
  --color-rule: oklch(28% 0 0);
  --color-rule-2: oklch(40% 0 0);
  --color-muted: oklch(58% 0 0);
  --color-neutral: oklch(74% 0 0);
  --color-ink-2: oklch(84% 0 0);
  --color-ink: oklch(97% 0 0);
  --color-accent: oklch(78% 0.15 55);
  --color-accent-2: oklch(72% 0.14 60);
  --color-accent-ink: #000000;
  --color-focus: oklch(78% 0.15 55);
  --color-glow: oklch(80% 0.14 55 / 0.38);
  --color-glow-2: oklch(80% 0.14 55 / 0.08);
  --color-paper-emit: oklch(76% 0.15 55 / 0.04);
  --color-edge: oklch(100% 0 0 / 0.06);

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-future: "Tomorrow", ui-sans-serif, system-ui, sans-serif;

  --display-weight: 400;
  --tracking-display: -0.032em;
  --tracking-label: 0.12em;
  --lh-tight: 1.05;
  --lh-snug: 1.18;
  --lh-normal: 1.55;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card:
    0 1px 0 var(--color-edge) inset, 0 18px 48px -28px oklch(0% 0 0 / 0.65),
    0 1px 2px oklch(0% 0 0 / 0.45);
  --shadow-card-hover:
    0 1px 0 oklch(100% 0 0 / 0.1) inset,
    0 22px 56px -24px oklch(0% 0 0 / 0.72),
    0 0 0 1px color-mix(in oklch, var(--color-accent) 35%, transparent);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 480ms;
  --dur-pulse: 5s;

  --z-base: 1;
  --z-raised: 10;
}

/* Space canvas — behind content, same feel as main site */
.space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* Page layer over the starfield */
.canvas {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100dvh;
}

.canvas::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    48% 36% at 50% -4%,
    var(--color-paper-emit),
    transparent 68%
  );
  pointer-events: none;
}

.shell {
  width: min(100% - 2rem, 24.5rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 12vh, 5.5rem) var(--space-3xl);
  display: grid;
  gap: var(--space-xl);
}

/* Profile */
.profile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.avatar-wrap {
  position: relative;
  width: 6rem;
  height: 6rem;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in oklch, var(--color-accent) 55%, transparent);
  box-shadow:
    0 0 0 1px oklch(0% 0 0 / 0.35),
    0 0 28px -6px var(--color-glow);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  opacity: 0.55;
  pointer-events: none;
}

.avatar {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
  display: block;
  background: var(--color-paper-2);
  box-shadow: 0 12px 32px -16px oklch(0% 0 0 / 0.7);
}

.identity {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--color-accent);
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem 0.45rem 0.95rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--color-paper-3) 70%, transparent),
    var(--color-paper-2)
  );
  color: var(--color-ink);
  text-decoration: none;
  box-shadow:
    0 1px 0 var(--color-edge) inset,
    0 10px 28px -18px oklch(0% 0 0 / 0.55);
  transition:
    border-color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.contact__icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--dur-short) var(--ease-out);
}

.contact__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact:hover,
.contact:focus-visible {
  border-color: color-mix(in oklch, var(--color-accent) 55%, transparent);
  box-shadow:
    0 1px 0 var(--color-edge) inset,
    0 14px 32px -16px oklch(0% 0 0 / 0.6),
    0 0 0 1px color-mix(in oklch, var(--color-accent) 28%, transparent);
  transform: translateY(-1px);
}

.contact:hover .contact__icon,
.contact:focus-visible .contact__icon {
  transform: translateY(-0.5px);
}

.contact:active {
  transform: translateY(1px);
}

.contact:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Index list */
.index {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  min-height: 3.75rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  background: linear-gradient(
    165deg,
    color-mix(in oklch, var(--color-paper-3) 55%, transparent) 0%,
    var(--color-paper-2) 42%
  );
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}


.link:hover {
  border-color: var(--color-rule-2);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1.5px);
}

.link:active {
  transform: translateY(1px);
}

.link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--color-rule);
  background: oklch(12% 0 0 / 0.55);
  overflow: hidden;
}

.link__favicon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}

.link__fallback {
  width: 1rem;
  height: 1rem;
  color: var(--color-neutral);
}

.link__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.link__label {
  font-family: var(--font-future);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

.link__hint {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  background: oklch(12% 0 0 / 0.45);
  transition:
    border-color var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out);
}

.link:hover .link__meta,
.link:focus-visible .link__meta {
  border-color: color-mix(in oklch, var(--color-accent) 45%, transparent);
  background: color-mix(in oklch, var(--color-accent) 12%, transparent);
}

.link__arrow {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--color-neutral);
  transition:
    color var(--dur-short) var(--ease-out),
    transform var(--dur-short) var(--ease-out);
}

.link:hover .link__arrow,
.link:focus-visible .link__arrow {
  color: var(--color-accent);
  transform: translate(1px, -1px);
}

/* Footer — Ft2 inline single line */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
  margin: 0;
  padding-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
  text-align: center;
  opacity: 0.85;
}

.colophon a {
  color: var(--color-neutral);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

.colophon a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.dot {
  color: var(--color-rule-2);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .reveal {
    animation: reveal-reduced 150ms linear forwards;
  }

  @keyframes reveal-reduced {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .link:hover,
  .link:active,
  .contact:hover,
  .contact:active {
    transform: none;
  }
}

@media (max-width: 360px) {
  .shell {
    width: min(100% - 1.25rem, 24.5rem);
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .link {
    padding-inline: 1rem;
  }

  .link__label {
    font-size: 1.05rem;
  }
}
