:root {
  color-scheme: light;
  --bg: #050507;
  --ink: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.7);
  --accent: rgba(125, 211, 252, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", sans-serif;
  background: #0b1830;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.75rem;
  padding: 1.3rem 8vw 0.9rem;
  z-index: 6;
  background: rgba(11, 24, 48, 0.9);
  border-bottom: 1px solid rgba(245, 243, 238, 0.08);
  backdrop-filter: blur(10px);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
}

.nav-btn.is-active {
  border-bottom-color: rgba(245, 243, 238, 0.7);
}

.view {
  position: relative;
  min-height: 100vh;
}

.view[hidden] {
  display: none;
}

.intro {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.6rem;
  min-height: 100vh;
  text-align: left;
  padding: 16vh 8vw 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--muted);
}

.name {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
}

.bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34rem;
}

.writing {
  position: relative;
  z-index: 2;
  padding: 18vh 8vw 12vh;
}

.article {
  max-width: 60rem;
}

.article summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(245, 243, 238, 0.35);
  width: fit-content;
  padding-bottom: 0.25rem;
}

.article summary::-webkit-details-marker {
  display: none;
}

.article[open] summary {
  border-bottom-color: rgba(245, 243, 238, 0.6);
}

.article-detail {
  max-width: 60rem;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.article-detail h3 {
  font-size: 1.6rem;
  font-weight: 600;
}

.article-detail p {
  color: var(--muted);
  line-height: 1.8;
}

.article-note {
  color: var(--muted);
}

.article-detail img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  margin: 0.8rem 0;
}

.pdf-frame {
  width: 100%;
  max-width: 56rem;
  min-height: 78vh;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  background: rgba(5, 5, 7, 0.55);
}


@media (max-width: 720px) {
  .top-nav {
    padding: 1.1rem 6vw 0.8rem;
  }

  .intro {
    padding: 18vh 10vw 0;
  }

  .writing {
    padding: 18vh 10vw 8vh;
  }

  .pdf-frame {
    min-height: 65vh;
    max-width: 100%;
  }
}
