:root {
  --max: 960px;
  --pad: clamp(16px, 3vw, 24px);
  --accent: #2563eb;
  --fg: #0a0a0a;
  --bg: #fff;
  --muted: #475569;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 18px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: var(--pad); }
.shell { display: block; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
h2 { margin-top: 12px; font-size: 20px; }
img { max-width: 100%; height: auto; }
button, .btn, a.btn { min-height: 44px; min-width: 44px; padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html { scroll-behavior: smooth; }

/* optional desktop grid */
@media (min-width: 1200px) {
  .shell { display: grid; grid-template-columns: minmax(0,1fr) var(--max) minmax(0,1fr); gap: 24px; }
  .content { grid-column: 2; }
}

/* header */
.hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* icon links */
.icon-links a {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: .5rem;
  color: inherit;
}
.icon-links svg { width: 100%; height: 100%; fill: currentColor; }

section {
  padding: 8px 0;
}

section:nth-of-type(even) {
  background: #ffffff; /* white */
}

section:nth-of-type(odd) {
  background: #f7f7f7; /* light gray */
}

section > * {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* Education section */
#education {
  margin: 1rem 0;
}

.edu-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.edu-entry {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.edu-entry:last-child {
  border-bottom: none;
}
.edu-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-right: 1rem;
  flex-shrink: 0;
}

.edu-entry h3 {
  margin: 0;
  font-size: 1.1rem; /* ~18px, same as body */
  font-weight: 600;
}

.edu-entry p {
  margin: 0.25rem 0 0;
  font-size: 1rem;   /* ~16px–18px */
  color: #444;
  line-height: 1.5;
}

/* Experience section */
#experience {
  margin: 1rem 0;
}

.exp-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.exp-entry {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.exp-entry:last-child {
  border-bottom: none;
}
.exp-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-right: 1rem;
  flex-shrink: 0;
}

.exp-entry h3 {
  margin: 0;
  font-size: 1.1rem; /* ~18px, same as body */
  font-weight: 600;
}

.exp-entry p {
  margin: 0.25rem 0 0;
  font-size: 1rem;   /* ~16px–18px */
  color: #444;
  line-height: 1.5;
}

.exp-entry ul {
  margin: 0.5rem 0 0;   /* small gap above list */
  padding-left: 1.2rem; /* indent for bullets */
}

.exp-entry li {
  font-size: 1rem;      /* match exp-entry p */
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: #444;
}

/* Project section */
/* Project section */
#project{ margin:1rem 0; }

.proj-entry{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:16px;
  align-items:start;
  padding:1rem 0;
  border-bottom:1px solid #ddd;
  margin-bottom:1.5rem;
}
.proj-entry:last-child{ border-bottom:none; }

/* ensure nothing spans rows anymore */
.proj-entry > div{ grid-row:auto; }

.proj-media{
  display:flex;
  flex-direction:column;
  gap:4px;             /* controls vertical space between images */
}

.proj-logo{
  width:128px;
  height:auto;
  display:block;
  margin:0;            /* no side margin */
  object-fit:contain;
}

.proj-body h3{ margin:0; font-size:1.1rem; font-weight:600; }
.proj-body p{ margin:.25rem 0 0; font-size:1rem; line-height:1.5; color:#444; }



.collapsible details { border-top: 1px solid #ddd; padding: 0.5rem 0; }
.collapsible summary { cursor: pointer; list-style: none; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible summary h2 { display: inline-block; margin: 0; font-size: 20px; }

.latex {
  font-family: "Times New Roman", serif;
}
.latex small {
  font-size: 0.7em;
  vertical-align: 0.2em;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  text-align: center; 
}

body {
  margin-top: 50px; 
} 