/*
Theme Name: Archisman
Theme URI: https://archismanmisra.com
Author: Archisman Misra
Version: 1.0
*/

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

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

:root {
  --red: #ec3642;
  --charcoal: #272c30;
  --grey-light: #f5f5f4;
  --grey-mid: #e7e5e4;
  --grey-muted: #78716c;
  --col: 680px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal);
  background: #fff;
}

a { color: var(--red); }
a:hover { opacity: 0.8; }

/* ---- Layout shell ---- */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 2px solid var(--charcoal);
  padding: 28px 0;
}
.site-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .site-title,
.site-nav .site-title:visited { color: var(--charcoal); text-decoration: none; }
.site-nav .site-title:hover { color: var(--red); }
.site-nav .nav-writing,
.site-nav .nav-writing:visited {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-muted);
  text-decoration: none;
}
.site-nav .nav-writing:hover { color: var(--charcoal); opacity: 1; }

/* ---- Post list ---- */
.posts-list { padding: 56px 0; }
.post-card { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--grey-mid); }
.post-card:last-child { border-bottom: none; margin-bottom: 0; }

.post-date {
  font-size: 13px;
  color: var(--grey-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.post-title a { color: var(--charcoal); text-decoration: none; }
.post-title a:hover { color: var(--red); opacity: 1; }

.post-excerpt { color: var(--charcoal); }
.read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* ---- Single post ---- */
.single-post { padding: 56px 0 80px; }
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--grey-muted);
  text-decoration: none;
  margin-bottom: 40px;
}
.back-link:hover { color: var(--charcoal); opacity: 1; }

.single-post .post-date { margin-bottom: 14px; }
.single-post .post-title {
  font-size: 40px;
  margin-bottom: 48px;
}

.post-content p { margin-bottom: 1.5em; }
.post-content p:last-child { margin-bottom: 0; }
.post-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.6em;
}
.post-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 1.8em 0 0.5em;
}
.post-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 4px;
  color: var(--grey-muted);
  font-style: italic;
}
.post-content a { color: var(--red); }
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}
.post-content figure { margin: 2em 0; }
.post-content figcaption {
  font-size: 13px;
  color: var(--grey-muted);
  margin-top: 8px;
}

/* ---- Homepage ---- */
.home-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--grey-mid);
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.home-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.home-tagline {
  font-size: 18px;
  color: var(--grey-muted);
  line-height: 1.5;
  margin-bottom: 0;
}
.home-portrait {
  padding: 40px 0 0;
}
.home-portrait img {
  display: block;
  width: 280px;
  height: 373px;
  object-fit: cover;
  object-position: center top;
  background: var(--grey-light);
}
.home-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--grey-mid);
}
.home-section:last-of-type { border-bottom: none; }
.home-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.roles { display: flex; flex-direction: column; gap: 24px; }
.role {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.role-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey-muted);
  padding-top: 2px;
}
.role-desc { font-size: 15px; line-height: 1.65; margin: 0; }
.role-desc a { color: var(--red); text-decoration: none; font-weight: 500; }
.role-desc a:hover { text-decoration: underline; opacity: 1; }

.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--grey-mid);
}
.social-link:hover { border-color: var(--charcoal); opacity: 1; }
.social-link svg { flex-shrink: 0; opacity: 0.7; }

.home-footer { padding: 40px 0; font-size: 13px; color: var(--grey-muted); }

@media (max-width: 600px) {
  .home-header { padding: 48px 0 40px; }
  .home-title { font-size: 40px; }
  .home-section { padding: 40px 0; }
  .home-portrait img { width: 100%; height: auto; aspect-ratio: 3/4; }
  .role { grid-template-columns: 1fr; gap: 4px; }
  .role-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
  .social-links { gap: 8px; }
  .social-link { padding: 9px 14px; }
}

/* ---- Share bar ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-mid);
}
.share-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-muted);
}
.share-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--grey-mid);
}
.share-link:hover { border-color: var(--charcoal); opacity: 1; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--grey-mid);
  padding: 28px 0;
  font-size: 13px;
  color: var(--grey-muted);
  text-align: center;
}
