@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --ink: #0c1016;
  --cream: #f6f1e8;
  --gold: #d4b483;
  --muted: #b7c0cc;
  --line: rgba(212, 180, 131, 0.32);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 360;
}

#silk, .grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#silk { z-index: 0; }
.grain {
  z-index: 1;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 4vw 1rem;
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

header { padding-bottom: 0.85rem; }

h1, p { margin: 0; }

h1 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 .mark { width: 36px; height: 36px; display: block; flex: 0 0 auto; }

header p, footer p {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.desk {
  position: relative;
  flex: 1 1 auto;
  min-height: 7.6rem;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.15rem 1.4rem;
  align-items: center;
  padding: 0.85rem 0.2rem;
  border-top: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.desk + .desk { border-top-color: var(--line); }

.ghost {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  translate: 0 -52%;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(4.8rem, 12vw, 9.5rem);
  font-weight: 560;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 180, 131, 0.2);
  pointer-events: none;
  user-select: none;
}

.idx, .copy { position: relative; z-index: 1; }

.idx {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  align-self: center;
}

.copy { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }

.title { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }

.name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2.7rem, 6.4vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  font-variation-settings: "opsz" 72, "SOFT" 70, "WONK" 1, "wght" 560;
}

.about {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.host {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.beta {
  border: 1px solid rgba(212, 180, 131, 0.75);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.18rem 0.5rem 0.14rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer { padding-top: 0.85rem; }

.desk:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  .desk { transition: flex-grow 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s ease; }
  .name { transition: font-variation-settings 0.5s ease; }
  .desk:hover, .desk:focus-visible {
    flex-grow: 1.7;
    background: linear-gradient(90deg, rgba(246, 241, 232, 0.05), transparent 62%);
  }
  .desk:hover .name, .desk:focus-visible .name {
    font-variation-settings: "opsz" 144, "SOFT" 15, "WONK" 1, "wght" 650;
  }
  .desk:hover .ghost, .desk:focus-visible .ghost {
    -webkit-text-stroke-color: rgba(212, 180, 131, 0.42);
  }
}

@media (max-width: 800px) {
  .page { padding: 1.1rem 1.15rem 0.9rem; }
  header, footer { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .desk {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: start;
    padding: 1rem 0;
    min-height: 0;
  }
  .ghost { display: none; }
  .about { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .desk, .name { transition: none; }
  #silk { display: none; }
}
