/* =========================================
   Arun Ganishkar — Personal Site
   Warm & Personal Theme
   ========================================= */

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

:root {
  --bg:           #FAF8F3;
  --surface:      #F3EDE0;
  --surface-alt:  #EDE4D3;
  --border:       #DDD5C2;
  --text:         #2A1A0E;
  --text-muted:   #8B7563;
  --accent:       #B8622A;
  --accent-light: #E8C5A0;
  --accent-dark:  #8F4A1A;
  --green:        #607854;
  --radius:       8px;
  --shadow:       0 2px 16px rgba(42,26,14,0.07);
  --shadow-hover: 0 6px 28px rgba(42,26,14,0.13);
  --max-w:        720px;
  --max-w-wide:   1060px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--text);
  font-weight: normal;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 600; }

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-w-wide);
}

main { flex: 1; }

/* --- Navigation --- */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(250,248,243,0.92);
}

.nav-inner {
  max-width: var(--max-w-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
  margin: 0 auto;
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: normal;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text);
  padding: 0.25rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

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

/* --- Hero (Home) --- */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--accent-light);
  margin: 0 auto 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184,98,42,.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Section Headers --- */
.section { padding: 4rem 1.5rem; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  max-width: var(--max-w-wide);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.section-link {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

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

/* --- Blog Cards --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

.post-card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .7rem;
  display: flex;
  gap: .8rem;
  align-items: center;
}

.post-tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.post-tag.personal { background: #D4E4CC; color: var(--green); }

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
  line-height: 1.4;
}

.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }

.post-card p {
  color: var(--text-muted);
  font-size: .92rem;
  flex: 1;
  line-height: 1.6;
}

.post-card-footer {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: var(--accent);
  display: block;
}

.post-card-footer:hover { color: var(--accent-dark); }

/* --- Project Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all .25s;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

.project-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.project-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.project-card h3 a { color: var(--text); }
.project-card h3 a:hover { color: var(--accent); }
.project-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.project-tag {
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  border: 1px solid var(--border);
}

/* --- About Page --- */
.about-hero {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  font-size: 1.04rem;
}

.about-body h2 { font-size: 1.3rem; margin: 2.5rem 0 1rem; }

.values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.values-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: .95rem;
}

.values-list li strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--accent);
}

.timeline { list-style: none; padding: 0; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  padding-left: 2.2rem;
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
}

.timeline-year {
  font-size: .8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.timeline-item h3 { font-size: 1rem; margin-bottom: .3rem; }
.timeline-item p { font-size: .9rem; color: var(--text-muted); }

/* --- Blog Listing --- */
.blog-hero {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  max-width: var(--max-w-wide);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Blog Post --- */
.post-hero {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.post-hero-meta {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-hero h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 1rem; }

.post-hero-subtitle {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-size: 1.06rem;
  line-height: 1.85;
}

.post-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.2rem; margin: 2rem 0 .8rem; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: .8rem 1.4rem;
  margin: 1.8rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.post-nav a { font-size: .9rem; color: var(--text-muted); }
.post-nav a:hover { color: var(--accent); }

/* --- Contact --- */
.contact-hero {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}

.contact-links li:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.contact-icon { font-size: 1.2rem; }
.contact-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font-size: 1rem; color: var(--text); }
.contact-links a { display: contents; }

/* --- Page Header --- */
.page-header {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-eyebrow {
  font-size: .78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .8rem;
}

/* --- Responsive --- */
@media (max-width: 680px) {
  html { font-size: 16px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .post-hero h1 { font-size: 2rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: .75rem 0; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }

  .posts-grid, .projects-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .values-list { grid-template-columns: 1fr; }
}
/* --- About Hero Layout --- */
.about-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 0 0 220px;
}

.about-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%; /* makes it circular */
  box-shadow: var(--shadow);
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .about-hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-top: 1.5rem;
  }
}
/* ===== About Page Layout ===== */

.about-hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.about-text {
  max-width: 500px;
}

.about-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: var(--shadow);
}