/* ==========================================================================
   ESHWAR PRITHVI JONNADULA — ARTICLE / ESSAY STYLESHEET
   Design: Editorial Luxury / Cyber-Obsidian Reading Experience
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=DM+Serif+Display:ital@0;1&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #04070b;
  --bg-card: rgba(13, 22, 34, 0.72);
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --muted: #8899a8;
  --orange: #ff9b54;
  --amber: #ffc078;
  --coral: #ff7950;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "DM Sans", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --mono: "DM Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Ambient Gradient Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 15% 15%, rgba(255, 192, 120, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 60% at 85% 35%, rgba(255, 155, 84, 0.08), transparent 75%),
    radial-gradient(ellipse 70% 65% at 50% 90%, rgba(255, 121, 80, 0.07), transparent 80%);
  animation: ambientFloat 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 25;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes ambientFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(2%, 3%); }
  100% { transform: scale(1) translate(-2%, -2%); }
}

/* Site Header */
.site-header {
  height: 76px;
  padding: 0 clamp(20px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(7, 12, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.monogram {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.monogram span {
  color: var(--orange);
}

.monogram:hover {
  transform: translateY(-1px);
}

.back-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
}

.back-link span {
  color: var(--orange);
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
  border-color: var(--orange);
  background: rgba(255, 155, 84, 0.08);
}

.back-link:hover span {
  transform: translateX(-3px);
}

.family-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.family-link:hover {
  color: var(--bg);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(255, 155, 84, 0.4);
}

/* Article Container */
article {
  padding: clamp(48px, 8vw, 96px) 24px clamp(64px, 10vw, 120px);
}

.article-header {
  max-width: 740px;
  margin: 0 auto clamp(36px, 6vw, 60px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

.kicker > span:first-child {
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.kicker-divider {
  color: var(--muted);
  opacity: 0.5;
}

.article-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin: 0 0 28px;
}

.article-header h1 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--orange);
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.author-mark {
  height: 42px;
  width: 42px;
  border: 1px solid rgba(255, 155, 84, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 155, 84, 0.08);
  box-shadow: 0 0 16px rgba(255, 155, 84, 0.15);
}

.byline strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.byline small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0;
}

/* Article Body */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  color: #d1d9e2;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.95;
}

.article-body > p {
  margin: 0 0 26px;
}

.article-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--orange);
  margin: 54px 0 20px;
}

.article-body .place-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: -10px;
}

.reflection {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: #ff9b54;
  border-left: 2px solid var(--orange);
  padding: 8px 0 8px 24px;
  margin: 36px 0 !important;
  background: linear-gradient(90deg, rgba(255, 155, 84, 0.06), transparent);
  border-radius: 0 8px 8px 0;
}

.hope-lines {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.9;
  color: var(--orange);
  margin: 36px 0 !important;
}

/* Figures & Images */
.wide-figure {
  margin: 44px 0 48px;
}

.wide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.campus-figure img {
  max-height: 500px;
  object-fit: cover;
}

.friends-figure img {
  width: min(100%, 540px);
  margin: 0 auto;
}

.portrait-figure img {
  max-width: 440px;
  margin: 0 auto;
}

.wide-figure figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 12px;
  text-align: right;
}

.friends-figure figcaption {
  text-align: center;
}

/* Blockquotes */
.article-body blockquote {
  margin: 52px 0 42px;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255, 155, 84, 0.04), transparent);
  border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
  margin: 0 0 12px;
}

.article-body blockquote p:last-child {
  margin: 0;
}

/* Article End & Navigation */
.article-end {
  max-width: 680px;
  margin: 72px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.article-end i {
  height: 1px;
  background: var(--line);
  flex: 1;
}

.article-end a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--orange);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.article-end a:hover {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  min-height: 96px;
  padding: 24px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(4, 7, 11, 0.8);
}

.site-footer a:not(.monogram) {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-footer a:not(.monogram):hover {
  color: var(--orange);
}

.site-footer b {
  color: var(--orange);
  font-weight: 400;
}

@media (max-width: 680px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
    gap: 12px;
  }

  .back-link {
    font-size: 10px;
    padding: 6px 12px;
  }

  .family-link {
    font-size: 10px;
    padding: 6px 10px;
  }

  .article-header h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

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