@charset "UTF-8";
/* ============================================================
   Custom CSS — astral-fi.github.io
   Inspired by arjunvirk.com aesthetic
   ============================================================ */
/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap");
/* ============================================================
   Work Detail Page
   ============================================================ */
.work-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color var(--transition);
  margin-bottom: 0.25rem;
}

.work-back-link:hover {
  color: var(--fg);
}

.work-hero-img {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  aspect-ratio: 16/9;
}

.work-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --card-bg: #f5f5f4;
  --accent: #44403c;
  --link: #1c1917;
  --link-hover: #57534e;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-article: "Lora", Georgia, serif;
  --max-width: 1024px;
  --radius: 12px;
  --transition: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--link-hover);
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: #d6d3d1;
  color: var(--fg);
}

/* ============================================================
   Site Navigation
   ============================================================ */
.site-nav {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.site-nav__name:hover {
  color: var(--muted);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--fg);
}

/* ============================================================
   Main Wrapper
   ============================================================ */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* ============================================================
   Hero Section (Home)
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }
}
.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

/* Roles — side-by-side flex wrap, no bullets */
.hero__roles {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  max-width: 520px;
}

.hero__role {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
  position: relative;
  padding-right: 0.75rem;
}

.hero__role::after {
  content: "·";
  position: absolute;
  right: -0.1rem;
  color: var(--border);
}

.hero__role:last-child::after {
  display: none;
}

.hero__bio {
  margin-top: 1.25rem;
  max-width: 520px;
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.7;
}

.hero__bio p + p {
  margin-top: 0.75rem;
}

/* Social icons row */
.hero__social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero__social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.hero__social a:hover {
  color: var(--fg);
}

.hero__social svg {
  display: block;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Photo */
.hero__photo-wrap {
  flex-shrink: 0;
  align-self: center;
}

@media (min-width: 768px) {
  .hero__photo-wrap {
    align-self: flex-start;
  }
}
.hero__photo {
  width: 260px;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .hero__photo {
    width: 300px;
    height: 380px;
  }
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   Work / Projects Section
   ============================================================ */
.work-section {
  margin-top: 4rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.section-sub {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.section-sub a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.section-sub a:hover {
  color: var(--fg);
}

/* Project card grid */
.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.5rem;
}

@media (min-width: 540px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Card */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-card__thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: opacity var(--transition);
}

.project-card__thumb:hover {
  opacity: 0.82;
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card__thumb:hover img {
  transform: scale(1.03);
}

.project-card__title {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}

.project-card__title a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.project-card__title a:hover {
  text-decoration: underline;
}

.project-card__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.project-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.55;
}

/* Tag chips */
.project-card__tags {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ============================================================
   Page Layout (Research, Projects, 404, etc.)
   ============================================================ */
.page-layout {
  max-width: 700px;
}

.page-layout__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.page-layout__lead {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Page content typography */
.page-content {
  margin-top: 2.5rem;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content p {
  font-family: var(--font-article);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fg);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.page-content > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.page-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.5rem;
  line-height: 0.85;
  margin-right: 0.15em;
  margin-top: 0.1em;
  color: var(--fg);
  font-weight: 400;
}

.page-content ul, .page-content ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-content ol {
  counter-reset: custom-counter;
}

.page-content li {
  font-family: var(--font-article);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--fg);
  display: flex;
  align-items: baseline;
}

.page-content ol > li {
  counter-increment: custom-counter;
}

.page-content ol > li::before {
  content: counter(custom-counter) ".";
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  width: 1.4rem;
  flex-shrink: 0;
}

.page-content ul > li::before {
  content: "—";
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  width: 1.5rem;
  flex-shrink: 0;
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.page-content th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid var(--fg);
  font-weight: 600;
  color: var(--fg);
}

.page-content td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.page-content tbody tr:last-child td {
  border-bottom: 2px solid var(--fg);
}

.page-content tbody tr {
  transition: background-color var(--transition);
}

.page-content tbody tr:hover {
  background-color: var(--card-bg);
}

.page-content strong {
  font-weight: 600;
  color: var(--fg);
}

.page-content a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color var(--transition);
}

.page-content a:hover {
  text-decoration-color: var(--fg);
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Research entry block */
.research-entry {
  margin-top: 2rem;
}

.research-entry__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Tags in page content */
.page-content .badge,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18em 0.6em;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-right: 0.3em;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}

.badge--accent {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Inline Code */
.page-content code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.82em;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: var(--fg);
}

/* Code Blocks */
.page-content div.highlighter-rouge {
  background: #18181b;
  color: #e4e4e7;
  border-radius: var(--radius);
  margin: 1.75rem 0;
  border: 1px solid #27272a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-content div.highlighter-rouge pre {
  background: transparent;
  border: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.page-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Blockquotes */
.page-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--fg);
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content blockquote p {
  margin-top: 0;
  font-style: italic;
  color: var(--muted);
}

/* Images & Captions */
.page-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 2rem auto 0.5rem;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-content p:has(img) {
  text-align: center;
}

.page-content p:has(img) + p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 3rem 0;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--border);
  font-weight: 400;
}

.error-page__msg {
  font-size: 1rem;
  color: var(--muted);
}

.error-page__link {
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Responsive nav
   ============================================================ */
@media (max-width: 480px) {
  .site-nav__links {
    gap: 1rem;
  }
  .site-nav__links a {
    font-size: 0.8125rem;
  }
}

/*# sourceMappingURL=main.css.map */