/* Surabhi Saxena — editorial personal site (not a CV) */

:root {
  --ivory: #faf8f4;
  --ink: #141312;
  --body: #3d3a36;
  --muted: #6f6a63;
  --sand: #a8947c;
  --sand-soft: color-mix(in srgb, var(--sand) 35%, transparent);
  --line: rgba(20, 19, 18, 0.07);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --measure: 36rem;
  --header-h: 3.25rem;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -0.011em;
  color: var(--body);
  background: var(--ivory);
}

::selection {
  background: color-mix(in srgb, var(--sand) 28%, transparent);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.875rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(1rem, 5vw, 3.25rem);
  background: color-mix(in srgb, var(--ivory) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav {
  display: none;
  gap: 1.85rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.65s var(--ease-slow);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.is-active {
  color: var(--ink);
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-menu-btn {
    display: none;
  }
}

.nav-menu-btn__line {
  display: block;
  height: 1px;
  width: 1.2rem;
  margin-left: auto;
  background: var(--body);
  transition: transform 0.65s var(--ease-slow), opacity 0.45s var(--ease);
}

.nav-menu-btn[aria-expanded="true"] .nav-menu-btn__line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-menu-btn[aria-expanded="true"] .nav-menu-btn__line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 899;
  padding: 2.25rem clamp(1rem, 5vw, 3.25rem) 2.75rem;
  background: color-mix(in srgb, var(--ivory) 95%, white);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease-slow), opacity 0.55s var(--ease);
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.5s var(--ease);
}

.nav-drawer a:hover {
  color: var(--sand);
}

/* Hero — presence only */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 7vw, 4rem) 6rem;
  text-align: center;
}

.hero__inner {
  max-width: 38rem;
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 10vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 2.5rem;
}

.hero__line {
  font-size: clamp(1.0625rem, 2.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--body);
  margin: 0;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(2.5rem, 8vh, 4.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem;
  transition: opacity 0.7s var(--ease-slow);
}

.hero__scroll:hover {
  opacity: 0.75;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.75rem;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--sand), transparent);
  opacity: 0.45;
  transition: opacity 0.7s var(--ease-slow), height 0.75s var(--ease-slow);
}

.hero__scroll:hover .hero__scroll-line {
  opacity: 0.7;
  height: 3.25rem;
}

/* Main flow — longform article rhythm */
main {
  padding: 0 clamp(1.25rem, 7vw, 4rem) clamp(5rem, 12vh, 9rem);
}

.chapter {
  max-width: var(--measure);
  margin: 0 auto;
  padding-bottom: clamp(5rem, 14vh, 9rem);
}

.chapter--philosophy {
  padding-top: clamp(1rem, 4vh, 2rem);
}

.chapter--reflections {
  max-width: 34rem;
}

.chapter--connect {
  padding-bottom: clamp(6rem, 18vh, 12rem);
}

.section-kicker {
  font-family: var(--font-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 2.75rem;
}

.prose p {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--body);
}

.prose--philosophy p {
  font-size: 1.1875rem;
  line-height: 1.92;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Lenses */
.lenses {
  display: flex;
  flex-direction: column;
}

.lens {
  border-top: 1px solid var(--line);
}

.lens:last-of-type {
  border-bottom: 1px solid var(--line);
}

.lens__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.6s var(--ease-slow), padding-left 0.65s var(--ease-slow);
}

.lens__trigger:hover {
  color: color-mix(in srgb, var(--sand) 55%, var(--ink));
  padding-left: 0.3rem;
}

.lens__trigger[aria-expanded="true"] {
  padding-bottom: 1.15rem;
}

.lens__title {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 3.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lens__hint {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.65s var(--ease-slow), opacity 0.5s var(--ease);
}

.lens__trigger[aria-expanded="true"] .lens__hint {
  transform: rotate(45deg) scale(1.15);
  opacity: 0.9;
}

.lens__panel {
  padding: 0 0 2rem;
}

.lens__panel[hidden] {
  display: none;
}

.lens__panel p {
  margin: 0;
  max-width: 33rem;
  font-size: 1rem;
  line-height: 1.88;
  color: var(--muted);
}

/* Journey */
.snapshots {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 10vh, 5.5rem);
}

.snapshot {
  margin: 0;
  padding: 0;
  border: none;
}

.snapshot__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 3.4vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.48;
  color: var(--ink);
  margin: 0 0 1.15rem;
  quotes: none;
}

.snapshot__cap {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--muted);
  max-width: 33rem;
}

/* Reflections — poetic, no lists */
.verses {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 2.75rem);
}

.verse {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  padding-bottom: clamp(2rem, 5vh, 2.75rem);
  border-bottom: 1px solid var(--line);
  transition: color 0.65s var(--ease-slow);
}

.verse:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.verse:hover {
  color: var(--ink);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 1.05s var(--ease-slow), transform 1.1s var(--ease-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Connect */
.connect__body {
  text-align: left;
}

.connect__lead {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  line-height: 1.88;
  color: var(--body);
}

.connect__links {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.connect__links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sand-soft);
  padding-bottom: 3px;
  transition: color 0.6s var(--ease-slow), border-color 0.6s var(--ease-slow);
}

.connect__links a:hover {
  color: var(--sand);
  border-bottom-color: color-mix(in srgb, var(--sand) 55%, transparent);
}

.connect__sep {
  margin: 0 0.7rem;
  color: var(--muted);
  letter-spacing: 0;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 5rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media print {
  .site-header,
  .nav-drawer,
  .nav-menu-btn,
  .hero__scroll {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .lens__panel[hidden] {
    display: block !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
