/* global.css — light editorial theme for a professional environmental engineer */

@import url("https://skandavishnu.com/assets/css/header.css");
@import url("https://skandavishnu.com/assets/css/notfound.css");

:root{
  --bg: #f6f4ee;           /* warm paper */
  --bg-2: #efece3;         /* slightly deeper paper for sub-panels */
  --surface: #ffffff;      /* cards */
  --line: #e4dfd3;         /* hairline borders */
  --line-strong: #d3ccba;

  --text: #232a25;         /* near-black slate-green */
  --muted: #57605a;        /* secondary text */
  --soft: #828a83;         /* tertiary text / dates */

  --accent: #1f5036;       /* deep forest green */
  --accent-strong: #163a27;
  --accent-soft: #e9efe9;  /* faint tint for chips/highlights */

  --radius: 6px;
  --shadow: 0 1px 2px rgba(31,40,37,0.04), 0 10px 28px rgba(31,40,37,0.06);
  --max: 1040px;
  --measure: 68ch;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection{ background: var(--accent-soft); color: var(--accent-strong); }

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 2px; }

.wrap{ width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
#main{ padding: 40px 0 72px; }

/* Headings — serif, editorial */
h1, h2, h3{
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1{ font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; }
h2{ font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
h3{ font-size: 18px; line-height: 1.3; }

p{ margin: 12px 0 0; color: var(--muted); }
.lead{
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text);
  max-width: var(--measure);
}
.section-intro{ color: var(--muted); max-width: var(--measure); }
strong{ color: var(--text); font-weight: 600; }

/* Short forest-green rule under section headings */
.card > h2:first-child::after{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}

/* Cards / sections */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin-top: 24px;
}
.card:hover{ border-color: var(--line-strong); }

/* HERO / masthead */
.hero{
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.hero-main .lead{ margin-top: 18px; }

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ text-decoration: none; }
.btn.primary{ background: var(--accent); color: #fff; }
.btn.primary:hover{ background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.secondary{ background: transparent; color: var(--accent); }
.btn.secondary:hover{ background: var(--accent-soft); }
.btn.ghost{ background: transparent; color: var(--muted); border-color: var(--line-strong); }
.btn.ghost:hover{ color: var(--text); border-color: var(--text); }
.btn.small{ padding: 8px 13px; font-size: 12.5px; }

/* Quick-profile aside */
.hero-aside{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.aside-heading{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--soft);
  margin-bottom: 14px;
}
.profile-list{ margin: 0; padding: 0; }
.profile-row{
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.profile-row:first-child{ border-top: none; padding-top: 0; }
.profile-row dt{
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
}
.profile-row dd{ margin: 4px 0 0; color: var(--text); font-weight: 500; }

/* Lists */
.bullet-list{ margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.bullet-list li{ margin: 9px 0; }
.bullet-list li::marker{ color: var(--accent); }

/* Skills grid */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.skills-group{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.skills-group h3{ margin-bottom: 2px; }

/* About */
.about-content{ max-width: var(--measure); }
.about-content p{ margin-top: 16px; }
.skills-tags{
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skills-tags li{
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.skills-tags li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

blockquote{
  margin: 26px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
}
blockquote p{
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--text);
}

/* Experience */
.experience-item{
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.experience-item:first-of-type{ margin-top: 18px; padding-top: 0; border-top: none; }
.experience-header{ display: flex; flex-direction: column; gap: 4px; }
.experience-meta{ margin: 0; color: var(--soft); font-size: 14px; }
.experience-summary{ margin-top: 12px; color: var(--muted); }

/* Publications */
.pub-list{ list-style: none; margin: 18px 0 0; padding: 0; }
.pub-item{ margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.pub-item:first-child{ padding-top: 6px; border-top: none; }
.pub-title{ margin: 0; font-family: var(--serif); font-size: 19px; color: var(--text); }
.pub-authors, .pub-meta{ margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pub-description{ margin-top: 8px; color: var(--soft); font-size: 15px; }
.pub-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pub-footer{ margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Education */
.edu-list{ list-style: none; margin: 18px 0 0; padding: 0; }
.edu-item{ margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.edu-item:first-child{ padding-top: 6px; border-top: none; }
.edu-header{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.edu-date{ color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.edu-meta{ margin: 8px 0 0; color: var(--muted); }
.edu-details{ margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.edu-details li{ margin: 6px 0; }
.edu-details li::marker{ color: var(--accent); }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.contact-method h3{ margin-bottom: 8px; }
.contact-method .btn{ margin-top: 14px; }
.contact-list{ list-style: none; margin: 10px 0 0; padding: 0; }
.contact-list li{ margin: 9px 0; color: var(--muted); }

/* Utilities */
.muted{ color: var(--muted); }
.small{ font-size: 14px; }

/* Footer */
#site-footer{
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding: 26px 0 40px;
}
#site-footer p{ margin: 0; font-size: 14px; color: var(--soft); }
#site-footer a{ color: var(--muted); }
#site-footer a:hover{ color: var(--accent); }

/* Responsive */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; gap: 26px; }
  .skills-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  body{ font-size: 16px; }
  #main{ padding: 28px 0 56px; }
  .wrap{ width: min(var(--max), calc(100% - 32px)); }
  .card{ padding: 22px 20px; }
  .btn{ width: 100%; }
}
