﻿/* ==========================================================================
   Suhana Shrestha â€” Portfolio
   Design tokens, base styles, type scale, layout primitives
   ========================================================================== */

:root {
  /* Monochrome editorial palette — ink, cream, taupe */
  --ink: #141414;
  --cream: #F5F5F4;
  --cream-card: #EAEAE8;
  --taupe: #6B6B6B;
  --line: rgba(20, 20, 20, 0.12);
  --line-soft: var(--line);

  /* Palette aliases (monochrome mapping so existing rules inherit the new palette) */
  --bg: var(--cream);
  --surface: var(--cream-card);
  --ink-soft: var(--taupe);
  --accent: var(--taupe);
  --accent-dark: var(--ink);
  --accent-soft: var(--cream-card);
  --warm: var(--taupe);
  --warm-dark: var(--ink);
  --warm-soft: var(--cream-card);

  /* Type scale */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: 1.3rem;
  --fs-h4: 1.05rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.78rem;

  --lh-tight: 1.15;
  --lh-body: 1.7;

  /* Layout */
  --container: 1120px;
  --measure: 720px; /* readable body line length */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 30, 30, 0.05), 0 4px 14px rgba(30, 30, 30, 0.05);
  --shadow-md: 0 8px 30px rgba(30, 30, 30, 0.08);

  --space-section: clamp(3.5rem, 9vw, 6.5rem);
}

/* -------------------------------------------------------------------------- */
/* Reset & base
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 1.1em;
}

ul {
  padding-left: 1.2rem;
}

/* Focus visibility for accessibility */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--ink);
  color: var(--cream);
}

/* -------------------------------------------------------------------------- */
/* Layout primitives
/* -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.section {
  padding: var(--space-section) 0;
}

.section--tight {
  padding: calc(var(--space-section) * 0.6) 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.9rem;
}

.eyebrow--warm {
  color: var(--warm);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head p {
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}

/* All button variants share the outlined pill treatment (backgrounds are light) */
.btn--primary,
.btn--ghost,
.btn--warm {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.btn--primary:hover,
.btn--ghost:hover,
.btn--warm:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 11px;
}

.btn + .btn {
  margin-left: 0.6rem;
}

/* -------------------------------------------------------------------------- */
/* Navigation
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 244, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand .brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* -------------------------------------------------------------------------- */
/* Footer
/* -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0 2rem;
  margin-top: var(--space-section);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-note {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: var(--fs-tiny);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* -------------------------------------------------------------------------- */
/* Hero
/* -------------------------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 9vw, 6rem) 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 0.25em;
}

.hero .hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.hero .hero-intro {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-actions .btn + .btn {
  margin-left: 0;
}

/* -------------------------------------------------------------------------- */
/* Cards
/* -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink);
  font-size: var(--fs-small);
  margin-bottom: 1rem;
  flex: 1;
}

.card .card-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.card-tag--warm {
  color: var(--warm-dark);
  background: var(--warm-soft);
}

/* -------------------------------------------------------------------------- */
/* Pull quote
/* -------------------------------------------------------------------------- */
.pull-quote {
  position: relative;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.pull-quote--warm {
  border-left-color: var(--warm);
}

.pull-quote blockquote {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.pull-quote blockquote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  line-height: 0.6;
  margin-bottom: 0.5rem;
}

.pull-quote--warm blockquote::before {
  color: var(--warm);
}

.pull-quote figcaption {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.pull-quote figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
}

.pull-quote .quote-role {
  font-size: var(--fs-tiny);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Case study
/* -------------------------------------------------------------------------- */
.case-study {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.case-study-header {
  margin-bottom: 1.8rem;
}

.case-study-header h2 {
  margin-bottom: 0.4rem;
}

.case-study-meta {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.cs-block {
  margin-bottom: 1.6rem;
}

.cs-block h3 {
  font-size: 1.05rem;
  font-family: var(--font-head);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-block h3 .cs-num {
  color: var(--accent);
}

.cs-block p {
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.cs-block ul {
  margin: 0.4rem 0 0;
  color: var(--ink);
}

.cs-block li {
  margin-bottom: 0.45rem;
}

.cs-outcome {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
}

.cs-outcome p {
  margin: 0;
}

.cs-outcome strong {
  color: var(--accent-dark);
}

/* Diagram frame */
.diagram {
  margin: 1.6rem 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.2rem;
}

.diagram figcaption {
  font-size: var(--fs-tiny);
  color: var(--ink-soft);
  margin-top: 0.8rem;
  text-align: center;
}

.diagram svg {
  width: 100%;
  height: auto;
}

/* Unify existing image/icon tone (color only — size, crop, and position untouched) */
.card-icon img,
.diagram img {
  filter: grayscale(0.15);
}

/* -------------------------------------------------------------------------- */
/* Timeline
/* -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.8rem 1.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline-period {
  font-family: var(--font-head);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.timeline-company {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------- */
/* Skills
/* -------------------------------------------------------------------------- */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.skill-tag {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Infrastructure grid (7 cards)
/* -------------------------------------------------------------------------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-card .card-icon {
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-card .card-tag {
  margin-bottom: 0.9rem;
}

.project-card p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  margin-bottom: 0.9rem;
}

.project-card .tools {
  font-size: var(--fs-tiny);
  color: var(--ink-soft);
  margin-top: auto;
}

/* -------------------------------------------------------------------------- */
/* Community
/* -------------------------------------------------------------------------- */
.community-section {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--warm);
}

.community-section h2 {
  margin-bottom: 0.4rem;
}

.community-meta {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  color: var(--warm-dark);
  margin-bottom: 1.2rem;
}

.community-section ul {
  color: var(--ink);
}

.community-section li {
  margin-bottom: 0.45rem;
}

.impact-list {
  background: var(--warm-soft);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--warm);
}

.impact-list strong {
  color: var(--warm-dark);
}

/* -------------------------------------------------------------------------- */
/* Contact
/* -------------------------------------------------------------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  max-width: var(--measure);
}

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .contact-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  min-width: 84px;
}

.contact-list a {
  color: var(--ink);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-actions {
  margin-top: 1.6rem;
}

/* -------------------------------------------------------------------------- */
/* Reveal-on-scroll
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Page hero (interior pages)
/* -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 0;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .page-lede {
  color: var(--ink-soft);
  max-width: var(--measure);
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------- */
/* Responsive
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--line-soft);
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Timeline
/* -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.8rem 1.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline-period {
  font-family: var(--font-head);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.timeline-company {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------- */
/* Utility
/* -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink); }
.accent { color: var(--accent); }
.warm { color: var(--warm); }

/* -------------------------------------------------------------------------- */
/* Contact — resume download (scoped to Contact page)
/* -------------------------------------------------------------------------- */
.btn--lg {
  padding: 14px 30px;
  font-size: 12px;
}

.resume-download {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.7rem;
  text-align: center;
}

.resume-download .btn--lg {
  width: 100%;
  justify-content: center;
}

.resume-download-note {
  color: var(--ink-soft);
  font-size: var(--fs-tiny);
  margin-top: 0.6rem;
  text-align: center;
}

/* ==========================================================================
   Editorial label / meta typography — Jost (applied to existing label classes)
   ========================================================================== */
.card-link,
.card-tag,
.timeline-period,
.timeline-role,
.skill-tag,
.community-meta,
.contact-label,
.pull-quote figcaption strong {
  font-family: var(--font-body);
}

