/* =========================================================================
   Ramesh Sharma — Personal Site
   Design system: light, restrained, reading-first.
   Inter (primary) + JetBrains Mono (metadata). Single accent (link blue).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Color */
  --bg:        #ffffff;
  --bg-soft:   #fafaf9;
  --text:      #171717;
  --text-mute: #6b6b6b;
  --text-dim:  #9a9a9a;
  --border:    rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent:    #0070f3;
  --accent-soft: #ebf5ff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Spacing — 8px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --content-max: 720px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 400ms;
}

/* -------------------------------------------------------------------------
   2. Reset + base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  font-feature-settings: 'cv11', 'ss01';
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}

a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* -------------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}

.section__heading {
  margin: 0 0 var(--space-7);
  font-size: 1px;        /* collapse the h2 itself, eyebrow carries the visual */
  font-weight: 400;
  line-height: 0;
  color: transparent;
  overflow: hidden;
  user-select: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.2;
}

/* -------------------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding: var(--space-8) 0 var(--space-9);
}

.hero__monogram {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: var(--space-7);
}

.hero__portrait {
  margin-bottom: var(--space-5);
}

.hero__portrait img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.hero__name {
  margin: 0 0 var(--space-3);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.hero__eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero__location {
  margin: 0 0 var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.hero__tagline {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 640px;
}

/* -------------------------------------------------------------------------
   5. Prose (About)
   ------------------------------------------------------------------------- */
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-5);
}

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

/* -------------------------------------------------------------------------
   6. Experience
   ------------------------------------------------------------------------- */
.experience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.experience__entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.experience__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
}

.experience__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.experience__org {
  margin: 0;
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.4;
}

.experience__dates {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  line-height: 1.4;
}

.experience__desc {
  margin: var(--space-2) 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
}

/* -------------------------------------------------------------------------
   7. Contact
   ------------------------------------------------------------------------- */
.contact__lead {
  margin: 0 0 var(--space-5);
  font-size: 17px;
  color: var(--text-mute);
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 90px;
}

.contact__list a {
  font-size: 16px;
  color: var(--text);
}

.contact__list a.coming-soon {
  color: var(--text-dim);
  border-bottom: 1px dashed var(--border);
}

.contact__list a.coming-soon:hover {
  color: var(--text-mute);
  border-color: var(--text-dim);
}

/* -------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------- */
.footer {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------------
   9. Scroll reveal
   Removed for now — on a single-page reading site, fade-in just produces
   blank gaps when sections are below the fold. The CSS lives below in case
   it's useful later; the script no longer adds the .reveal class.

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  will-change: opacity, transform;
}

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

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

/* -------------------------------------------------------------------------
   10. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding: var(--space-6) 0 var(--space-8); }
  .hero__monogram { margin-bottom: var(--space-6); }
  .hero__name { font-size: 40px; letter-spacing: -0.03em; }
  .hero__tagline { font-size: 16px; }

  .section { padding: var(--space-7) 0; }
  .section__heading { margin-bottom: var(--space-6); }

  .prose p { font-size: 16px; }
  .experience { gap: var(--space-7); }
  .experience__title { font-size: 17px; }
  .experience__desc { font-size: 15px; }

  .contact__list li {
    flex-direction: column;
    gap: var(--space-1);
  }
  .contact__label { min-width: 0; }
}
