/* ============================================================
   AKSHAT KOTHARI — Portfolio CSS
   style.css
   ============================================================ */

/* ---------- RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #ffffff;
  --black:       #0F0F0F;
  --gray-50:     #F7F7F5;
  --gray-100:    #EFEFED;
  --gray-200:    #DDDDD9;
  --gray-400:    #9A9A96;
  --gray-600:    #5C5C58;
  --accent:      #1A1AFF;
  --accent-soft: #E8E8FF;
  --accent-dark: #1010CC;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Mono', monospace;

  --nav-h: 56px;
  --ticker-h: 30px;
  --offset: calc(var(--nav-h) + var(--ticker-h));

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.10);

  --section-y: clamp(56px, 8vw, 88px);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--offset); }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---------- LAYOUT ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

section { padding: var(--section-y) 0; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--black);
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 1.75rem; list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--gray-600);
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.18s;
}
.nav-links a:hover { color: var(--black); }

.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-decoration: none; border: 1.5px solid var(--accent);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s; flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: white; }

/* hamburger – mobile only */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.nav-drawer {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--black);
}
.nav-drawer a:hover { color: var(--accent); }

/* ---------- TICKER ---------- */
.ticker {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 98;
  height: var(--ticker-h);
  background: var(--accent); color: white;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
}
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%; background: white;
  animation: blink 2s ease-in-out infinite; flex-shrink: 0; margin-left: 1rem;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex; gap: 4rem; white-space: nowrap;
  width: max-content; animation: scroll-ticker 28s linear infinite;
}
@keyframes scroll-ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---------- SECTION ANATOMY ---------- */
.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif); font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.025em; line-height: 1.12; color: var(--black);
  margin-bottom: 0.75rem;
}
.section-rule { width: 36px; height: 2px; background: var(--accent); margin-bottom: 2.5rem; }

/* ---------- HERO ---------- */
#home {
  padding-top: calc(var(--offset) + clamp(48px, 8vw, 88px));
  padding-bottom: var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1.5px; background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.06; letter-spacing: -0.03em;
  color: var(--black); margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: clamp(15px, 2vw, 17px); font-weight: 300; color: var(--gray-600);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 480px;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 3rem; }

.btn-dark {
  background: var(--black); color: white; font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.18s; letter-spacing: 0.01em; display: inline-block;
}
.btn-dark:hover { background: var(--accent); }

.btn-link {
  color: var(--black); font-size: 14px; font-weight: 400;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1.5px solid var(--gray-200); padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

.hero-stats {
  display: flex; gap: clamp(1.5rem, 4vw, 2.5rem); flex-wrap: wrap;
}
.hero-stat-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--gray-400); text-transform: uppercase; margin-bottom: 3px;
}
.hero-stat-value { font-size: 13px; font-weight: 500; color: var(--black); }

/* PHOTO in hero */
.hero-photo-wrap {
  width: clamp(160px, 22vw, 260px);
  flex-shrink: 0;
}
.hero-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-100);
  box-shadow: var(--shadow-hover);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

/* ---------- ABOUT ---------- */
#about { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-body { color: var(--gray-600); font-size: 16px; line-height: 1.85; }
.about-body p { margin-bottom: 1rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--black); font-weight: 500; }

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.about-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; border: 1px solid var(--gray-100);
}
.about-card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--gray-400); text-transform: uppercase; margin-bottom: 0.4rem;
}
.about-card-val { font-size: 13px; font-weight: 500; color: var(--black); line-height: 1.5; }
.about-card-val.light { font-weight: 400; color: var(--gray-600); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.6rem; }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 100px;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-top: 1.5rem;
}

.project-card {
  border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 1.6rem; position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400); margin-bottom: 1rem;
}
.project-title {
  font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.project-desc {
  font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin-bottom: 1.1rem;
}
.project-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 1rem; }
.project-tag {
  font-size: 11px; font-weight: 500; font-family: var(--mono);
  border: 1px solid var(--gray-200); color: var(--gray-600);
  padding: 2px 7px; border-radius: 4px;
}
.project-status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; }
.status-dot.green  { background: #22C55E; }
.status-dot.amber  { background: #F59E0B; }
.status-dot.gray   { background: var(--gray-200); }
.status-label { font-size: 11px; font-family: var(--mono); color: var(--gray-400); }

/* dashed placeholder card */
.project-card.dashed { border-style: dashed; border-color: var(--gray-200); }
.project-card.dashed:hover { border-style: dashed; }
.project-card.cta { background: var(--accent-soft); border-color: transparent; }
.project-card.cta:hover { border-color: var(--accent); }

/* ---------- EXPERIENCE ---------- */
#experience { background: var(--gray-50); }
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--gray-100);
}
.tl-date {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
  line-height: 1.6; padding-top: 3px;
}
.tl-role  { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.tl-org   { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem; }
.tl-desc  { font-size: 13.5px; color: var(--gray-600); line-height: 1.7; }

/* ---------- BLOG ---------- */
#blog {
  background: var(--white) !important;
  border-top: 1px solid var(--gray-100);
}

.blog-intro {
  font-size: 16px; color: var(--gray-600); max-width: 500px;
  line-height: 1.75; margin-bottom: 2rem;
}
.blog-list { border-top: 1px solid var(--gray-200); }

.blog-row {
  display: grid;
  grid-template-columns: 72px 1fr 70px;
  gap: 1.25rem; align-items: start;
  padding: 1.4rem 0; border-bottom: 1px solid var(--gray-100);
  text-decoration: none; color: inherit;
  transition: padding-left 0.2s;
}
.blog-row:hover { padding-left: 10px; }
.blog-row:hover .blog-row-title { color: var(--accent); }

.blog-row-date {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
  line-height: 1.55; padding-top: 3px;
}
.blog-row-title {
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em;
  margin-bottom: 4px; transition: color 0.18s; line-height: 1.3;
}
.blog-row-excerpt { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.blog-row-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 8px; border-radius: 4px; text-align: center;
  margin-top: 3px; white-space: nowrap; height: fit-content;
}

.blog-cta-row {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  border: 1.5px solid var(--accent); padding: 9px 18px;
  border-radius: var(--radius-sm); background: none;
  cursor: pointer; font-family: var(--sans); text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.btn-outline:hover { background: var(--accent); color: white; }

.notion-hint {
  font-size: 12px; color: var(--gray-400); font-family: var(--mono);
  display: flex; align-items: center; gap: 6px;
}

/* ---------- FOOTER / CONTACT ---------- */
#contact {
  background: var(--black); color: white;
  padding: clamp(72px, 8vw, 104px) 0 0;
}
#contact .section-label { color: rgba(255,255,255,0.35); }
#contact .section-title { color: white; }

.contact-lead {
  font-size: clamp(17px, 2.5vw, 20px); color: rgba(255,255,255,0.5);
  font-weight: 300; line-height: 1.75; max-width: 480px; margin-bottom: 2.5rem;
}

.contact-email-link {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 36px);
  color: white; text-decoration: none;
  letter-spacing: -0.025em;
  border-bottom: 1.5px solid rgba(255,255,255,0.2);
  padding-bottom: 4px; display: inline-block;
  transition: border-color 0.18s; margin-bottom: 3rem;
}
.contact-email-link:hover { border-color: white; }

.contact-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4rem;
}
.contact-link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8);
  text-decoration: none; border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.contact-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

/* Footer bar inside contact */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.footer-copy { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-sig img {
  height: 38px; width: auto;
  filter: invert(1); opacity: 0.3;
}

/* ---------- BLOG POST PAGE ---------- */
.post-header {
  padding-top: calc(var(--offset) + 48px);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 3rem;
}
.post-back {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 2rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.post-back:hover { opacity: 0.7; }
.post-title {
  font-family: var(--serif); font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem;
}
.post-meta {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
}
.post-meta-tag {
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 8px; border-radius: 4px;
}
.post-body {
  font-size: 17px; line-height: 1.85; color: var(--gray-600);
  max-width: 660px;
}
.post-body h2 {
  font-family: var(--serif); font-size: 26px; color: var(--black);
  letter-spacing: -0.02em; margin: 2.5rem 0 1rem;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body strong { color: var(--black); font-weight: 500; }
.post-body code {
  font-family: var(--mono); font-size: 14px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  padding: 2px 6px; border-radius: 4px; color: var(--accent);
}
.post-body blockquote {
  border-left: 3px solid var(--accent); margin: 2rem 0;
  padding: 0.5rem 1.5rem; color: var(--black);
  font-family: var(--serif); font-size: 20px; font-style: italic;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 300;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}
.modal-box h3 {
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.modal-box label {
  display: block; font-family: var(--mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); margin: 1rem 0 4px;
}
.modal-box input,
.modal-box textarea,
.modal-box select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 14px; color: var(--black);
  background: white; outline: none; transition: border-color 0.18s;
}
.modal-box input:focus,
.modal-box textarea:focus,
.modal-box select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.modal-box textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.5rem;
}
.btn-cancel {
  padding: 9px 18px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
  background: none; font-family: var(--sans); color: var(--black);
  transition: background 0.15s;
}
.btn-cancel:hover { background: var(--gray-50); }
.btn-publish {
  padding: 9px 20px; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: var(--accent); color: white; font-family: var(--sans);
  transition: opacity 0.18s;
}
.btn-publish:hover { opacity: 0.82; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo-wrap { width: clamp(100px, 28vw, 160px); margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .projects-grid { grid-template-columns: 1fr; }

  .tl-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .tl-date { padding-top: 0; }

  .blog-row { grid-template-columns: 64px 1fr; }
  .blog-row-tag { display: none; }

  .footer-bar { grid-template-columns: 1fr; gap: 1rem; }
  .footer-sig { display: none; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 34px; }
  .hero-photo-wrap { width: 110px; }
}


/* ============================================================
   UPGRADES v2 — Blog cards, project links, interest tags
   ============================================================ */

/* ── INTEREST TAGS (gray variant) ── */
.tag.tag-gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ── PROJECT LINKS ── */
.project-links {
  display: flex; gap: 8px; margin-top: 1rem; flex-wrap: wrap;
}
.project-link {
  font-size: 12px; font-weight: 500; font-family: var(--mono);
  color: var(--black); text-decoration: none;
  border: 1.5px solid var(--gray-200); padding: 5px 12px;
  border-radius: 6px; transition: border-color 0.18s, color 0.18s, background 0.18s;
  display: inline-flex; align-items: center; gap: 5px;
}
.project-link:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft);
}

/* ── BLOG FEATURED ── */
.blog-featured {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  background: var(--white);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: var(--shadow-card);
}
.blog-featured:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.blog-featured-accent {
  background: var(--accent);
  width: 4px;
}
.blog-featured-body {
  padding: 2rem 2rem 1.75rem;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap;
}
.blog-featured-date {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
}
.blog-featured-read {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
}
.blog-featured-read::before { content: '·'; margin-right: 10px; }
.blog-featured-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--black); margin-bottom: 0.75rem;
  transition: color 0.18s;
}
.blog-featured:hover .blog-featured-title { color: var(--accent); }
.blog-featured-excerpt {
  font-size: 15px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 1.25rem; max-width: 560px;
}
.blog-featured-cta {
  font-size: 13px; font-weight: 500; color: var(--accent);
  font-family: var(--mono); letter-spacing: 0.04em;
}

/* ── BLOG CARD GRID ── */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.blog-card:hover::after { transform: scaleX(1); }

.blog-card-top {
  display: flex; align-items: center; justify-content: space-between;
}
.blog-card-read {
  font-family: var(--mono); font-size: 10px; color: var(--gray-400);
}
.blog-card-title {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--black); margin-top: 0.25rem;
  transition: color 0.18s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt {
  font-size: 13px; color: var(--gray-600); line-height: 1.6; flex: 1;
}
.blog-card-date {
  font-family: var(--mono); font-size: 10px; color: var(--gray-400);
  margin-top: auto; padding-top: 0.5rem;
}

/* ── NEW POST PLACEHOLDER CARD ── */
.blog-card.blog-card-new {
  border-style: dashed; background: transparent;
  align-items: center; justify-content: center;
  min-height: 160px; box-shadow: none;
}
.blog-card.blog-card-new:hover {
  border-color: var(--accent); border-style: dashed;
  background: var(--accent-soft); box-shadow: none; transform: none;
}
.blog-card-new-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.blog-card-new-icon {
  font-size: 22px; color: var(--gray-400); line-height: 1;
  font-weight: 300;
}
.blog-card-new-text {
  font-family: var(--mono); font-size: 11px; color: var(--gray-400);
  letter-spacing: 0.04em;
}
.blog-card.blog-card-new:hover .blog-card-new-icon,
.blog-card.blog-card-new:hover .blog-card-new-text {
  color: var(--accent);
}

/* ── RESPONSIVE: blog cards ── */
@media (max-width: 720px) {
  .blog-cards { grid-template-columns: 1fr 1fr; }
  .blog-featured-body { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .blog-cards { grid-template-columns: 1fr; }
}

/* ── SKELETON LOADER ── */
.skel {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  display: block;
}
@keyframes shimmer { from{background-position:200% 0} to{background-position:-200% 0} }

/* ── BLOG EMPTY STATE ── */
.blog-empty {
  grid-column: 1/-1; text-align:center; padding:2.5rem;
  font-family: var(--mono); font-size:12px; color:var(--gray-400);
}
.blog-empty a { color:var(--accent); }

/* ── NOW SECTION ── */
#now .section-rule { background: rgba(255,255,255,0.2); }

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
}
.now-item {
  padding: 1.4rem 1.6rem;
  background: var(--black);
  transition: background 0.18s;
}
.now-item:hover { background: #111; }
.now-item-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem; text-transform: uppercase;
}
.now-item-val {
  font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.65;
}

@media (max-width: 600px) {
  .now-grid { grid-template-columns: 1fr; }
}
