:root {
  --bg: #e7e5e4;
  --ink: #082f49;
  --accent: #0369a1;
  --muted: #57534e;
  --line: #d6d3d1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand img { height: 56px; width: 56px; }
.brand:hover { border-bottom-color: transparent; }

nav.site a {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
nav.site a:hover,
nav.site a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

ul.projects {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
ul.projects li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
ul.projects li:last-child { border-bottom: none; }
ul.projects .name { font-weight: 500; }
ul.projects .desc { color: var(--muted); font-size: 0.9rem; flex: 1; text-align: right; }

footer.site {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
footer.site img { height: 18px; width: 18px; opacity: 0.7; }

/* Travel page */
.wrap.travel {
  max-width: 900px;
}
#globe {
  width: 100%;
  height: 560px;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  cursor: grab;
}
#globe:active { cursor: grabbing; }

.locations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem 1.25rem;
}
.locations li {
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0;
  border-bottom: 1px dashed transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.locations li:hover,
.locations li.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.locations .country {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

@media (max-width: 540px) {
  header.site { flex-direction: column; gap: 1rem; align-items: flex-start; }
  nav.site a { margin-left: 0; margin-right: 1rem; }
  #globe { height: 380px; }
}
