/* markdtrent.com — static rebuild. Clean dark theme (the original's full-screen
   animated machinery/sunset background video could not be captured). */

* { box-sizing: border-box; }

:root {
  --bg: #171512;
  --panel: #211e1a;
  --panel-2: #2a2620;
  --text: #f0eadf;
  --muted: #b8ad9c;
  --accent: #d9a441;
  --accent-hover: #e8b45a;
  --border: #3a352d;
  --link: #e8c87e;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; letter-spacing: 0.02em; }
h2 { font-size: 1.9rem; color: var(--accent); margin-top: 1.6em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; color: var(--muted); }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; }

/* ---------- header / nav ---------- */
.site-header {
  background: #100e0c;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.wordmark:hover { color: var(--accent); text-decoration: none; }
.wordmark span { color: var(--accent); }

.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.main-nav a {
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav a:hover { background: var(--panel-2); color: var(--accent); text-decoration: none; }
.main-nav a.active { background: var(--panel-2); color: var(--accent); }

/* ---------- layout ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.wrap.wide { max-width: 1020px; }

.page-head { text-align: center; margin-bottom: 2rem; }
.page-head p.lede { color: var(--muted); font-size: 1.15rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #171512;
  font-weight: bold;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-hover); color: #171512; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: var(--panel-2); }

/* ---------- home ---------- */
.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img.headshot {
  width: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.hero h1 { font-size: 3.2rem; margin: 0.6em 0 0.2em; }
.hero .intro { font-size: 1.3rem; color: var(--muted); max-width: 640px; margin: 0 auto 1.8rem; }
.hero .cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- bio ---------- */
.bio-body p { margin-bottom: 1.1em; }

/* ---------- resume ---------- */
.resume-top { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.resume-top img.portrait {
  width: 170px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.job { margin-bottom: 2rem; }
.job:last-child { margin-bottom: 0; }
.job-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; }
.job-head img { height: 56px; width: auto; max-width: 190px; object-fit: contain; }
.job h3 { margin: 0; }
.job .role { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.job ul, .plain-list { margin: 0.2rem 0 0; padding-left: 1.25rem; }
.job li { margin-bottom: 0.35rem; }

.skill-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.skill-row img { height: 64px; width: auto; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.92rem;
}
.lang-graphic { max-width: 210px; display: block; margin-bottom: 0.75rem; }

.edu { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.edu img { height: 54px; width: auto; max-width: 170px; object-fit: contain; flex-shrink: 0; }

.hobby-grid { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.hobby { text-align: center; width: 92px; }
.hobby .chip {
  width: 76px; height: 76px;
  background: #f0eadf;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.45rem;
}
.hobby .chip img { width: 52px; height: 52px; object-fit: contain; }
.hobby span { font-size: 0.92rem; color: var(--muted); text-transform: capitalize; }

.references { text-align: center; font-family: Georgia, serif; font-size: 1.4rem; color: var(--accent); margin: 2rem 0 0.5rem; }

/* ---------- projects ---------- */
.project { margin-bottom: 2.5rem; }
.project img.hero-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 1rem;
}
.project h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.badges { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin: 0.9rem 0; }
.badges img { height: 56px; width: auto; }
.warning { color: var(--accent); font-weight: bold; letter-spacing: 0.06em; }
.talk { text-align: center; margin-top: 2.5rem; }

/* ---------- contact ---------- */
.social-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 2rem; }
.social-row a { display: inline-block; }
.social-row img { width: 48px; height: 48px; border-radius: 50%; }
.social-row a:hover img { opacity: 0.8; }

.contact-form label { display: block; margin: 0.9rem 0 0.3rem; color: var(--muted); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #100e0c;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.site-footer .foot-nav { margin-bottom: 1rem; }
.site-footer .foot-nav a { color: var(--text); margin: 0 0.6rem; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer p { margin: 0.35rem 0; }
.site-footer .foot-social { margin: 1rem 0 0.5rem; }
.site-footer .foot-social img { width: 32px; height: 32px; border-radius: 50%; margin: 0 0.35rem; vertical-align: middle; }
.site-footer .copy { font-size: 0.9rem; }

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.5rem; }
  .wrap { padding: 1.75rem 1rem 2.5rem; }
  .card { padding: 1.1rem 1.2rem; }
  .resume-top { flex-direction: column; }
}
