/* ============================================
   Mitchell Trexel — Personal Site
   ============================================ */

:root {
  --ink: #16202e;
  --navy: #0f2033;
  --navy-2: #16304a;
  --paper: #f8f6f2;
  --card: #ffffff;
  --line: #e5e0d6;
  --muted: #63707f;
  --gold: #a5813f;
  --gold-light: #c9a563;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f2efe8;
  padding: 84px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 1.08rem;
  color: #c8cdd5;
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-photo {
  justify-self: end;
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-width: 330px;
  border-radius: 6px;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  opacity: 0.55;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #f2efe8; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Stat strip ---------- */
.stats {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  padding: 30px 12px;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; }

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
}

.stat span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 42px; }

.section-head .kicker { color: var(--gold); }

.section-head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
}

.section-head p { color: var(--muted); max-width: 46em; margin-top: 10px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
}

.about-grid p { margin-bottom: 18px; color: #3c4654; }

.cred-list { list-style: none; }

.cred-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cred-list li:first-child { padding-top: 4px; }

.cred-list b { display: block; color: var(--navy); font-weight: 600; }
.cred-list span { color: var(--muted); font-size: 0.87rem; }

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 14px 40px rgba(15, 32, 51, 0.1);
  transform: translateY(-3px);
}

.card .tags { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(165, 129, 63, 0.09);
  border: 1px solid rgba(165, 129, 63, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.card .sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card p { font-size: 0.94rem; color: #3c4654; margin-bottom: 16px; }

.card ul {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.card ul li {
  font-size: 0.88rem;
  color: #3c4654;
  padding: 4px 0 4px 20px;
  position: relative;
}

.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Resume page ---------- */
.resume-wrap { max-width: 820px; margin: 0 auto; }

.resume-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 48px 52px;
}

.resume-block h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.resume-block h2:first-of-type { margin-top: 0; }

.entry { margin-bottom: 22px; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-head b { font-size: 1.02rem; color: var(--navy); }
.entry-head span { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.entry .role { font-style: italic; color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }

.entry ul { list-style: none; }

.entry ul li {
  font-size: 0.93rem;
  color: #3c4654;
  padding: 3px 0 3px 20px;
  position: relative;
}

.entry ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--gold);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }

.pill {
  font-size: 0.82rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #3c4654;
  padding: 5px 13px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
}

.contact-card .kicker { color: var(--gold); margin-bottom: 8px; }

.contact-card a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}

.contact-card a:hover { color: var(--gold); }
.contact-card p { color: var(--navy); font-weight: 600; font-size: 1.02rem; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: #8d98a5;
  padding: 34px 0;
  font-size: 0.85rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: #c8cdd5; text-decoration: none; margin-left: 20px; }
footer.site a:hover { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .resume-block { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    height: auto;
    padding: 12px 0 14px;
    gap: 10px;
  }
  .brand { white-space: nowrap; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.72rem; }
  .hero { padding: 56px 0 60px; }
}
