/* jisingh personal site - static
   Direction: ink + sage, editorial tech, not purple / cream-terracotta / broadsheet */

:root {
  --ink: #0f1c1a;
  --ink-soft: #1a2e2a;
  --sage: #5c7a6e;
  --sage-bright: #7a9a8a;
  --mist: #e8efe9;
  --paper: #f4f7f4;
  --accent: #c4a35a;
  --accent-dim: #a6863f;
  --line: rgba(15, 28, 26, 0.12);
  --max: 68rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sage);
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(92, 122, 110, 0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 20%, rgba(196, 163, 90, 0.12), transparent 50%),
    linear-gradient(165deg, #eef3ef 0%, var(--paper) 40%, #e4ebe5 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 28, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 26, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  position: relative;
  color: var(--ink-soft);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.75rem 0 0.25rem;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
  }
}

/* Hero */
.hero {
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  padding: 2rem 0 4rem;
  position: relative;
}

.hero-panel {
  max-width: 40rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.hero-support {
  margin: 0 0 1.75rem;
  color: var(--sage);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--mist);
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--mist);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.hero-visual {
  position: absolute;
  right: max(0px, calc((100% - var(--max)) / 2));
  top: 12%;
  width: min(42vw, 28rem);
  height: min(55vh, 28rem);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(92, 122, 110, 0.45), rgba(15, 28, 26, 0.75)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(232, 239, 233, 0.08) 12px,
      rgba(232, 239, 233, 0.08) 13px
    );
  animation: drift 1.2s var(--ease) 0.15s both;
  pointer-events: none;
}

.hero-visual span {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mist);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 12rem;
    margin-bottom: 1.5rem;
    order: -1;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 1rem;
  }
}

/* Proof strip - below fold */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  margin-bottom: 3.5rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.proof-item span {
  font-size: 0.9rem;
  color: var(--sage);
}

/* Obvious pre-launch markers when value is [placeholder] */
.proof-item.is-placeholder strong {
  color: var(--accent-dim);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-item.is-placeholder span {
  color: var(--ink);
  opacity: 0.85;
}

.headshot {
  margin: 1.25rem 0 0;
  max-width: 12rem;
}

.headshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Sections */
.section {
  padding: 2.5rem 0 3.5rem;
  animation: rise 0.7s var(--ease) both;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.5rem;
}

.section h1,
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.awards-line {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.awards-line strong {
  font-weight: 600;
  color: var(--ink);
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.15rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Work list - not card-heavy */
.work-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.work-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .work-list li {
    grid-template-columns: 11rem 1fr;
  }
}

.work-meta {
  font-size: 0.85rem;
  color: var(--sage);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.work-list p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-dim);
}

.note {
  font-size: 0.95rem;
  color: var(--sage);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.prose pre {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  font-size: 0.82rem;
  line-height: 1.45;
}

.prose pre code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  white-space: pre;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.empty-state {
  padding: 2rem 0;
  color: var(--sage);
  font-style: italic;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--sage);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer a {
  color: var(--sage);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    opacity: 0;
    transform: translateX(1.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
