/* ============================================
   Rama Sandeep Ch — Founder Journal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #080A0F;
  --surface: #10131B;
  --surface-soft: #151A24;
  --text: #F4F1EA;
  --text-muted: #A7ADB8;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #D6A85C;
  --accent-soft: rgba(214, 168, 92, 0.12);
  --accent-hover: #E4BA72;
  --max-width: 1180px;
  --reading-width: 740px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 80px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--no-top {
  padding-top: 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  line-height: 1.75;
}

.section--workbench {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.section--workbench .section-header h2 {
  font-size: clamp(1.625rem, 3.5vw, 2rem);
}

.section--workbench .update-card {
  padding: 28px 26px;
  background: var(--surface);
}

.section--workbench .update-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #12161F;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface-soft);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(214, 168, 92, 0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: var(--surface-soft);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---- Hero ---- */

.hero {
  padding: 108px 0 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 860px;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  color: #B4BAC4;
  max-width: 720px;
  line-height: 1.82;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.03125rem;
  color: var(--text);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.hero-status {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.65;
}

.hero-status strong {
  color: var(--text);
  font-weight: 500;
}

.hero-updated {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---- Page Hero ---- */

.page-hero {
  padding: 80px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.125rem;
  color: #B4BAC4;
  max-width: var(--reading-width);
  line-height: 1.8;
}

/* ---- Cards ---- */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #12161F;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 100px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card p {
  font-size: 0.96875rem;
  color: #B4BAC4;
  line-height: 1.78;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover {
  color: var(--accent-hover);
  gap: 10px;
}

.card-link::after {
  content: '→';
}

/* Update cards — compact */

.update-card .card p {
  margin-bottom: 0;
}

/* Focus cards */

.focus-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.focus-card p {
  margin-bottom: 0;
}

/* Build note cards */

.build-card h3 {
  color: var(--text);
}

.build-card p {
  margin-bottom: 0;
}

/* ---- Featured Note ---- */

.featured-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}

.featured-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.featured-note h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.featured-note p {
  font-size: 0.96875rem;
  color: #B4BAC4;
  line-height: 1.78;
  margin-bottom: 20px;
  max-width: 720px;
}

.featured-note .card-link {
  margin-top: 4px;
}

/* ---- Article Pages ---- */

.article-page {
  padding: 64px 0 72px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.article-back:hover {
  color: var(--accent);
}

.article-header {
  max-width: 800px;
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.article-body {
  max-width: 800px;
}

.article-body p {
  font-size: 1.0625rem;
  color: #B4BAC4;
  line-height: 1.85;
  margin-bottom: 24px;
}

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

.article-footer-nav {
  max-width: 800px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-next {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-next-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-next-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.article-next-link:hover {
  color: var(--accent);
}

/* ---- Founder Note ---- */

.founder-note {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.founder-note h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 32px;
}

.founder-note p {
  color: #B4BAC4;
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 580px;
  margin: 0 auto 20px;
}

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

/* ---- About Sections ---- */

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

.about-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: var(--reading-width);
  margin-bottom: 16px;
}

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

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-list li {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.about-list li:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #12161F;
}

.about-list li h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.about-list li p {
  font-size: 0.96875rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.beliefs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--reading-width);
}

.beliefs-list li {
  font-size: 1.05rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.beliefs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.about-closing {
  font-size: 1.0625rem;
  color: #B4BAC4;
  line-height: 1.8;
  max-width: var(--reading-width);
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.connect-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.connect-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #B4BAC4;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section--workbench {
    padding: 68px 0;
  }

  .about-list--grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 0.975rem;
  }

  .section--workbench .update-card {
    padding: 24px;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .page-hero {
    padding: 64px 0 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .founder-note {
    padding: 32px 24px;
  }

  .featured-note {
    padding: 24px;
  }

  .article-page {
    padding: 48px 0 56px;
  }

  .article-back {
    margin-bottom: 32px;
  }

  .article-body p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .logo {
    font-size: 0.9rem;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer {
    padding: 40px 0 28px;
  }
}
