:root {
  --pink: #ee2a6b;
  --ink: #161616;
  --text: #222;
  --muted: #666;
  --rule: #e2e2e2;
  --bg: #fff;
  --soft: #f6f6f6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Georgia, "Times New Roman", serif;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.top { background: var(--ink); color: #fff; padding: 36px 0 28px; }
.top .name { font-family: Oswald, Arial, sans-serif; font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: 0.5px; margin: 0; }
.top .name a { color: #fff; text-decoration: none; }
.top .tag { font-family: Oswald, Arial, sans-serif; font-weight: 300; font-size: 22px; color: var(--pink); margin: 4px 0 0; }
nav { background: #000; }
nav .wrap { display: flex; gap: 28px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
nav a { color: #fff; text-decoration: none; font: 500 15px/1 Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--pink); }

/* Intro */
.intro { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; padding: 44px 0 20px; }
.intro img { width: 200px; height: 200px; object-fit: cover; border-radius: 4px; }
.intro p { margin: 0 0 14px; }
.links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: Arial, sans-serif; font-size: 15px; }
.where { color: var(--muted); font-style: italic; }

/* Projects */
h2.section { font-family: Oswald, Arial, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.project:last-of-type { border-bottom: 0; }
.project.flip .media { order: 2; }
.project .media img { width: 100%; border-radius: 4px; background: var(--soft); }
.project .media.tall img { max-height: 560px; width: auto; margin: 0 auto; }
.project h3 { font-family: Oswald, Arial, sans-serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0 0 10px; color: var(--ink); }
.project h3 span { color: var(--pink); font-weight: 300; }
.facts { margin: 0 0 18px; padding: 0; list-style: none; font-family: Arial, sans-serif; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.facts b { color: var(--text); font-weight: 600; }
.project h4 { font: 600 14px/1 Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); margin: 22px 0 8px; }
.project p { margin: 0 0 10px; }
.project ul { margin: 0; padding-left: 20px; }
.project ul.facts { padding-left: 0; margin-bottom: 18px; }
.project li { margin: 0 0 6px; }

.also { padding: 8px 0 40px; color: var(--muted); }

/* Resume */
.wrap.resume { padding-top: 40px; padding-bottom: 20px; }
.resume > * { max-width: 820px; }
.resume h2 { font-family: Oswald, Arial, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 32px 0 10px; }
.resume p { margin: 0 0 10px; }
.btn { display: inline-block; background: var(--pink); color: #fff; text-decoration: none; font: 600 15px/1 Arial, sans-serif; letter-spacing: 0.5px; padding: 14px 22px; border-radius: 4px; margin: 6px 0 4px; }
.btn:hover { background: #d01f5a; }
.jobs { list-style: none; padding: 0; margin: 0; }
.jobs li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.jobs li b { font-weight: 600; }
.jobs .d { color: var(--muted); font-family: Arial, sans-serif; font-size: 14.5px; white-space: nowrap; }
.jobs .g { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }

/* Footer */
footer { background: var(--ink); color: #bbb; font: 14px/1.6 Arial, sans-serif; padding: 26px 0; margin-top: 30px; }
footer a { color: #fff; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { padding: 26px 0 20px; }
  .top .name { font-size: 28px; }
  .top .tag { font-size: 18px; }
  nav .wrap { gap: 20px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
  .intro img { width: 140px; height: 140px; }
  .project { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
  .project.flip .media { order: 0; }
  .project .media.tall img { max-height: 420px; }
  .project h3 { font-size: 24px; }
  .jobs li { grid-template-columns: 1fr; }
  .wrap.resume { padding-top: 28px; }
}

h2.section.first { border-top: 0; }
