:root {
  --navy: #2d3b52;
  --navy-dark: #1e2736;
  --teal: #3d9aa6;
  --blue: #173a8c;
  --dot: #4a90d9;
  --text: #1a1a1a;
  --muted: #666;
  --pill: #9ca3ad;
  --border: #d9dde3;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--blue); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Header band: name + title, like the resume */
.hero { background: var(--navy); color: #fff; padding: 28px 0 22px; }
.hero .name { margin: 0; font-size: 2.1rem; font-weight: 400; }
.hero .name a { color: #fff; text-decoration: none; }
.hero .title { margin: 2px 0 0; color: var(--teal); font-size: 1.05rem; }
.hero .status { margin: 10px 0 0; font-size: 0.85rem; }

/* Dark strip: nav on every page, contact details on the resume */
.strip { background: var(--navy-dark); color: #fff; }
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.9rem;
}
.strip a { color: #fff; text-decoration: none; }
.strip a:hover, .strip a.active { color: var(--teal); }

main { padding: 32px 0 40px; }

h1.page { margin: 0 0 6px; font-size: 1.6rem; color: var(--blue); }
h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--blue);
}
main h2:first-child { margin-top: 0; }

/* Resume entries */
.job, .entry { margin-bottom: 22px; }
.job-head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
}
.job-head h3 { grid-column: 1 / -1; margin: 0; font-size: 1.1rem; }
.job-head .full { grid-column: 1 / -1; }
.org { font-size: 1rem; }
.dates { color: var(--teal); font-style: italic; font-size: 0.8rem; }
.right { text-align: right; color: var(--teal); font-style: italic; font-size: 0.8rem; align-self: end; }
.org + .right { align-self: start; }

ul.dots { list-style: none; margin: 8px 0 0; padding: 0; }
ul.dots li { position: relative; padding-left: 18px; margin-bottom: 5px; font-size: 0.88rem; }
ul.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot);
}

.entry h3 { margin: 0; font-size: 1rem; font-weight: 400; }

/* Two columns on the resume */
.cols { display: grid; grid-template-columns: 1fr 290px; gap: 40px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { background: var(--pill); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; }
.pills.outline li { background: none; color: var(--text); border: 1px solid #888; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: 4px; }

.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.langs .lang { font-size: 0.95rem; }

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
.button:hover { background: var(--teal); }

/* Home gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.gallery img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }

/* Contact form */
form { display: grid; gap: 14px; max-width: 480px; margin-top: 18px; }
label { font-weight: 700; font-size: 0.9rem; }
input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
button {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  justify-self: start;
}
button:hover { background: var(--teal); }

footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 24px; border-top: 1px solid var(--border); }

@media (max-width: 800px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .hero .name { font-size: 1.7rem; }
}
