:root {
  --text: #303030;
  --muted: #6b6b6b;
  --header-bg: #dcdcdc;
  --rule: #303030;
  --bg: #ffffff;
  --sans: "Jost", "Futura", "Century Gothic", sans-serif;
  --serif: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

/* Header */
.site-header {
  background: var(--header-bg);
}
.site-header .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 38px;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
  margin: 0 0 6px;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  padding-bottom: 8px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* Section headings with short rule underneath */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 22px;
  padding-bottom: 10px;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  border-bottom: 1px solid var(--rule);
}

/* Resume page */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.profile img {
  width: 100%;
  height: auto;
  display: block;
}
.profile p { margin: 0; font-size: 15px; }

.resume { max-width: 760px; margin: 64px auto 0; }
.resume section + section { margin-top: 56px; }
.entry { margin: 0 0 4px; }
.entry strong { font-weight: 700; }
.entry ul {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0 0 0 18px;
  font-size: 13px;
}
.entry li::before { content: "- "; }
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.plain-list li { margin-bottom: 6px; }
.plain-list li::before { content: "- "; }

/* Video page */
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Photos page */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gallery button {
  all: unset;
  cursor: zoom-in;
  display: block;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Contact page */
.contact { max-width: 760px; margin: 0 auto; }
.contact p { margin: 0 0 6px; }
.contact .phone { font-family: var(--sans); font-weight: 300; color: var(--muted); }

@media (max-width: 700px) {
  .site-title { font-size: 30px; }
  .site-nav { gap: 20px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .resume { margin-top: 48px; }
  .gallery { grid-template-columns: 1fr; }
}
