/* colors - illinois orange + navy (light theme only) */
:root {
  --bg: #efe5d3;
  --text: #2a2620;
  --muted: #6b6255;
  --navy: #13294b;
  --orange: #d8431f;
  --line: #d8c9ae;
  --box: #f8f2e7;
  --card: #fffcf6;
  --shadow: rgba(60, 40, 10, 0.08);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* push the footer to the bottom on short pages */
main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--orange);
}

a:hover {
  text-decoration-thickness: 2px;
}

/* nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  font-family: "Nunito", -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

/* nav bar gets more room than the page text */
nav .wrap {
  max-width: 1100px;
  padding: 18px 32px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* every tab gets the same underline space so the active one doesn't jump */
.nav-links a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #ff9a7a;
  text-decoration: underline;
}

/* the tab for the page you're on */
.nav-links a.active {
  color: #ff9a7a;
  border-bottom-color: var(--orange);
}

.logo {
  font-weight: 800;
  font-size: 26px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

/* header */
header {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 44px;
  border-bottom: 5px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.me {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 3px solid #fff;
}

header h1 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.2;
}

.sub {
  margin: 0 0 16px;
  color: #c9d2e0;
}

/* big centered intro on the home page */
header.hero {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  text-align: center;
}

.hero-inner {
  width: 100%;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 28px;
}

.hero .name {
  color: #ff7a50;
}

.hero p {
  color: #c9d2e0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 auto 20px;
}

.hero .links {
  margin-top: 30px;
  font-size: 14px;
  font-weight: 400;
}

.hero .links a {
  margin: 0 5px 8px;
}

.hero .me {
  display: block;
  margin: 0 auto 24px;
  border-radius: 50%;
}

/* contact section under the hero */
.contact {
  text-align: center;
  padding: 30px 0 10px;
}

.contact h2::before {
  content: none;
}

.contact h2 {
  font-family: "Nunito", -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
}

/* emoji hangs off the left so the words themselves are centered */
.contact .title {
  position: relative;
}

.contact .phone {
  position: absolute;
  right: 100%;
  margin-right: 8px;
}

.contact .links a {
  margin: 0 5px 8px;
  color: var(--orange);
  background: none;
  border-color: var(--orange);
}

.contact .links a:hover {
  color: #fff;
  background: var(--orange);
}

/* page title on the inner pages */
header.page-head {
  padding: 56px 0 50px;
  margin-bottom: 36px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.page-head .sub {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.chant {
  color: #ff7a50 !important;
  font-weight: 800;
  font-size: 22px !important;
  letter-spacing: 6px;
  padding-left: 6px;
}

.sub a {
  color: #fff;
}

.links {
  margin: 0;
  font-family: "Space Mono", Menlo, monospace;
  font-size: 14px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  background: #ffffff1a;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  padding: 5px 16px;
  margin: 0 6px 8px 0;
  transition: background 0.15s, border-color 0.15s;
}

.links a:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* sections */
section {
  padding-top: 20px;
}

h2 {
  font-family: "Space Mono", Menlo, monospace;
  font-size: 20px;
  margin: 24px 0 14px;
}

h2::before {
  content: "# ";
  color: var(--orange);
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

/* cards (education, experience, research, projects, misc) */
.card,
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover,
.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--shadow);
  border-color: var(--orange);
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px;
}

.card-sub {
  font-size: 18px;
  margin: 0 0 4px;
}

.meta {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 12px;
}

.card p {
  margin: 0 0 10px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 8px 0 12px;
}

/* small logo sitting in front of a card title */
.inline-logo {
  height: 1em;
  width: auto;
  margin-right: 10px;
  vertical-align: -0.12em;
}

/* the aws mark is wide and short, so give it a bit more height */
.inline-logo.wide {
  height: 1.35em;
  vertical-align: -0.3em;
}

.misc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.misc-grid .card:first-child {
  grid-column: 1 / -1;
}

.date {
  font-family: "Space Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* small github box next to a project name */
.gh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  vertical-align: middle;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.gh-icon:hover {
  background: var(--orange);
  color: #fff;
}

/* projects */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project {
  margin-bottom: 0;
}

.project h3 {
  font-size: 20px;
  font-weight: 800;
}

.project p {
  margin: 0 0 8px;
  font-size: 15px;
}

.stack {
  font-family: "Space Mono", Menlo, monospace;
  font-size: 12.5px !important;
  color: var(--muted);
  margin-bottom: 0 !important;
}

.misc {
  list-style: square;
}

.misc li::marker {
  color: var(--orange);
}

/* lists with an emoji instead of a bullet (misc page) */
.icons {
  list-style: none;
  padding-left: 0;
}

.icons li {
  margin-bottom: 10px;
}

.ico {
  display: inline-block;
  width: 1.8em;
}

/* footer */
footer {
  margin-top: 50px;
  padding: 22px 0;
  background: var(--navy);
  border-top: 4px solid var(--orange);
  text-align: center;
  font-weight: 700;
  color: #ff9a7a;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* hamburger menu - only shows on phones */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* lines turn into an X when the menu is open */
nav.open .menu-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

nav.open .menu-btn span:nth-child(2) {
  opacity: 0;
}

nav.open .menu-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 820px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 8px;
  }

  nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid #ffffff1f;
  }

  .nav-links a.active {
    border-bottom-color: #ffffff1f;
  }

  .nav-links a.active::before {
    content: "> ";
    color: var(--orange);
  }

}

/* phones */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  header h1 {
    font-size: 30px;
  }

  .projects,
  .misc-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  nav {
    font-size: 14px;
  }

  nav .wrap {
    padding: 14px 16px;
  }
}
