/* ==========================================================================
   sumeetupadhya.com — stylesheet
   Base: deep navy-slate. One accent: teal. Two type families.
   ========================================================================== */

:root {
  --bg: #0f1a24;
  --bg-raised: #15222d;
  --bg-sunken: #0b141c;
  --line: #26394a;
  --line-soft: #1c2c3a;
  --text: #e4ecf2;
  --text-muted: #94a7b6;
  --text-faint: #5f7383;
  --accent: #3db8c2;
  --accent-deep: #1f8b94;
  --accent-tint: rgba(61, 184, 194, 0.10);
  --warn: #d9a441;

  --font-sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 68ch;
  --wide: 1080px;
  --radius: 3px;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* --- Reset / base ------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(61, 184, 194, 0.4);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 120ms ease;
}
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-2); max-width: var(--measure); }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--text-faint); }

strong { font-weight: 600; color: var(--text); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: var(--space-5) 0;
}

.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: var(--bg);
  padding: 0.5rem 0.75rem; text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

main { padding-block: var(--space-5) var(--space-6); }

section + section { margin-top: var(--space-5); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-3);
}
.section-head h2 { margin: 0; }
.section-head .meta { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--step--1); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
@media (min-width: 820px) {
  .two-col { grid-template-columns: 220px minmax(0, 1fr); }
  .two-col > aside { position: sticky; top: 6rem; align-self: start; }
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 26, 36, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.75rem; gap: var(--space-2);
}
.brand {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
}
.brand-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  font: inherit; font-family: var(--font-mono); font-size: var(--step--1);
  padding: 0.35rem 0.7rem; border-radius: var(--radius); cursor: pointer;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; gap: 1.4rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: var(--step--1);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-raised); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--space-4);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; max-width: none; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* --- Hero (home) -------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  /* faint network topology motif — nodes joined by hairlines */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='%233db8c2' stroke-width='1'%3E%3Cpath d='M40 60 L160 30 L280 90 M160 30 L150 170 M40 60 L150 170 L280 90 M150 170 L60 280 M150 170 L250 250 M280 90 L250 250'/%3E%3Cg fill='%233db8c2' stroke='none'%3E%3Ccircle cx='40' cy='60' r='3'/%3E%3Ccircle cx='160' cy='30' r='3'/%3E%3Ccircle cx='280' cy='90' r='3'/%3E%3Ccircle cx='150' cy='170' r='4'/%3E%3Ccircle cx='60' cy='280' r='3'/%3E%3Ccircle cx='250' cy='250' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.05;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 85%);
}
.hero .wrap { position: relative; }
.hero-name {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.hero-name span { color: var(--text-faint); }
.hero h1 {
  font-size: clamp(var(--step-3), 4.2vw, var(--step-5));
  font-weight: 400;
  max-width: 24ch;
  margin-bottom: var(--space-3);
}
.hero-lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--accent);
  font: inherit; font-weight: 500; font-size: var(--step--1);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: #56c7d0; border-color: #56c7d0; }
.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-raised); border-color: var(--text-faint); }

/* --- Status strip (home) ------------------------------------------------ */

.status {
  margin-top: var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.status-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-faint);
}
.status-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); font-style: normal;
}
.status-rows { display: grid; grid-template-columns: 1fr; }
.status-row {
  display: grid; grid-template-columns: 6.5rem 1fr;
  gap: var(--space-2);
  padding: 0.65rem 0.9rem;
}
.status-row + .status-row { border-top: 1px solid var(--line-soft); }
.status-row dt { color: var(--text-faint); margin: 0; }
.status-row dd { margin: 0; color: var(--text); }
.status-row dd .sep { color: var(--text-faint); margin-inline: 0.5rem; }
@media (min-width: 760px) {
  .status-rows { grid-template-columns: repeat(3, 1fr); }
  .status-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .status-row + .status-row { border-top: 0; border-left: 1px solid var(--line-soft); }
}

/* --- Home: snapshot rows ----------------------------------------------- */

.snapshot { list-style: none; padding: 0; margin: 0; max-width: none; }
.snapshot li {
  display: grid; grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.snapshot li:first-child { border-top: 1px solid var(--line-soft); }
.snapshot .k { font-family: var(--font-mono); color: var(--text-muted); font-size: var(--step--1); }
.snapshot .v { color: var(--text); }
.snapshot .s { color: var(--text-faint); font-size: var(--step--1); }
@media (min-width: 640px) {
  .snapshot li { grid-template-columns: 15rem 1fr auto; align-items: baseline; }
}

/* --- Pills / tags ------------------------------------------------------- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.1rem 0.45rem;
  margin: 0 0.3rem 0.3rem 0;
  white-space: nowrap;
}
.tag-accent { color: var(--accent); border-color: var(--accent-deep); background: var(--accent-tint); }
.tag-warn { color: var(--warn); border-color: rgba(217, 164, 65, 0.5); }

/* --- Definition / spec table ------------------------------------------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  max-width: var(--measure);
}
.spec th, .spec td {
  text-align: left; vertical-align: top;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec th {
  font-family: var(--font-mono); font-weight: 400;
  color: var(--text-muted); width: 11rem; padding-right: 1rem;
}
.spec td { font-family: var(--font-mono); color: var(--text); }
.spec td .note { color: var(--text-faint); font-family: var(--font-sans); }

/* --- Entries (experience / projects / certs) --------------------------- */

.entry {
  display: grid; grid-template-columns: 1fr;
  gap: 0.35rem var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line-soft);
}
.entry:last-of-type { border-bottom: 1px solid var(--line-soft); }
.entry-when {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--text-muted);
}
.entry-body h3 { margin-bottom: 0.15rem; }
.entry-body .where { color: var(--text-muted); margin-bottom: var(--space-2); }
.entry-body p:last-child, .entry-body ul:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .entry { grid-template-columns: 11rem minmax(0, 1fr); }
}

/* --- Callouts ----------------------------------------------------------- */

.callout {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-block: var(--space-3);
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* --- Placeholders (clearly marked for later content) ------------------- */

.placeholder {
  border: 1px dashed rgba(217, 164, 65, 0.55);
  border-radius: var(--radius);
  background: rgba(217, 164, 65, 0.05);
  padding: var(--space-2) var(--space-3);
  margin-block: var(--space-3);
  color: var(--text-muted);
  font-size: var(--step--1);
  max-width: var(--measure);
}
.placeholder-label {
  font-family: var(--font-mono);
  color: var(--warn);
  display: block;
  margin-bottom: 0.4rem;
}
.placeholder p:last-child, .placeholder ul:last-child { margin-bottom: 0; }
.placeholder.wide { max-width: none; }

.placeholder-figure {
  min-height: 220px;
  display: grid; place-items: center;
  text-align: center;
}
.placeholder-gallery {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: none;
  list-style: none; padding: 0; margin: 0;
}
.placeholder-gallery li {
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px dashed rgba(217, 164, 65, 0.45);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint);
  padding: 0.5rem; text-align: center;
}

/* --- Home lab: topology block (the one "loud" element) ----------------- */

.topology {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  margin-block: var(--space-3) var(--space-4);
}
.topo-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.topo-head strong { color: var(--text); font-weight: 500; }
.topo-body { padding: var(--space-3) var(--space-2) var(--space-2); }
.topo-host {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2) var(--space-2);
  position: relative;
}
.topo-host > .label {
  position: absolute; top: -0.7rem; left: 1rem;
  background: var(--bg-sunken); padding: 0 0.5rem;
  color: var(--accent);
}
.topo-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .topo-grid { grid-template-columns: repeat(3, 1fr); }
  .topo-grid .vm-dc { grid-column: 1 / -1; }
}
.vm {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.85rem 1rem;
}
.vm-dc { border-color: var(--accent-deep); }
.vm .vm-role { color: var(--accent); }
.vm .vm-name { color: var(--text); font-size: var(--step-0); margin: 0.15rem 0 0.4rem; }
.vm ul { list-style: none; padding: 0; margin: 0; color: var(--text-muted); }
.vm li { margin: 0.15rem 0; }
.vm li::before { content: "- "; color: var(--text-faint); }
.topo-link {
  text-align: center; color: var(--text-faint); padding: 0.4rem 0;
}
.topo-foot {
  border-top: 1px solid var(--line);
  padding: 0.6rem 1rem;
  color: var(--text-faint);
}

/* --- Timeline / build phases ------------------------------------------- */

.phases { list-style: none; padding: 0; margin: 0; max-width: none; counter-reset: phase; }
.phase {
  display: grid; grid-template-columns: 1fr;
  gap: 0.5rem var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-soft);
  margin: 0;
}
.phase:last-child { border-bottom: 1px solid var(--line-soft); }
.phase-no {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: var(--step--1);
}
.phase-no::before {
  counter-increment: phase;
  content: "Phase " counter(phase);
  display: block; color: var(--accent);
}
.phase-body h3 { margin-bottom: var(--space-2); }
.phase-body h4 { color: var(--text-muted); font-weight: 500; margin: var(--space-2) 0 0.5rem; }
@media (min-width: 720px) {
  .phase { grid-template-columns: 11rem minmax(0, 1fr); }
}

/* --- Roadmap list ------------------------------------------------------- */

.roadmap { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.roadmap li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); margin: 0;
}
.roadmap li:first-child { border-top: 1px solid var(--line-soft); }
.roadmap .box {
  width: 0.9rem; height: 0.9rem; margin-top: 0.35rem;
  border: 1px solid var(--text-faint); border-radius: 2px;
}
.roadmap .box.done { background: var(--accent); border-color: var(--accent); }
.roadmap .box.active { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 6px var(--accent); }
.roadmap b { font-weight: 500; }
.roadmap .why { color: var(--text-muted); font-size: var(--step--1); display: block; }

/* --- Contact ------------------------------------------------------------ */

.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); max-width: var(--measure); }
.contact-list li {
  display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-2);
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); margin: 0;
}
.contact-list li:first-child { border-top: 1px solid var(--line-soft); }
.contact-list .k { font-family: var(--font-mono); color: var(--text-muted); font-size: var(--step--1); }
.contact-list a { font-family: var(--font-mono); word-break: break-word; }

.form { max-width: var(--measure); }
.form-row { margin-bottom: var(--space-2); }
.form label { display: block; font-size: var(--step--1); color: var(--text-muted); margin-bottom: 0.35rem; }
.form input, .form textarea {
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.8rem;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--text-faint); font-size: var(--step--1); margin-top: var(--space-2); }

/* --- Page intro --------------------------------------------------------- */

.page-intro { margin-bottom: var(--space-5); }
.page-intro h1 { margin-bottom: var(--space-2); }
.page-intro .lede { color: var(--text-muted); font-size: var(--step-1); max-width: 58ch; }

/* --- Utility ------------------------------------------------------------ */

.stack > * + * { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
