/* Global Styles */

:root {
  --sand: #d7c1a7;
  --near-black: #061617;
  --gold: #bd8748;
  --clay: #98563f;
  --muted-gold: #ac8d5b;
  --olive: #81815f;
  --deep-olive: #555d50;
  --charcoal: #2b2c30;
  --soft-white: #f4f2f1;
  --black: #000000;
  --acid-green: #caef35;
  --cream: #f0ebd8;

  --main-font: "Poppins", Arial, Helvetica, sans-serif;
  --soft-shadow: rgba(6, 22, 23, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  font-family: var(--main-font);
  background-color: var(--deep-olive);
  color: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--acid-green);
  overflow-wrap: break-word;
}

ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  text-align: left;
}

li {
  margin-bottom: 0.5rem;
}

/* Header */

.site-header {
  min-height: 185px;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(rgba(48, 53, 38, 0.86), rgba(48, 53, 38, 0.86)),
    url("images/topo-background.png");
  background-size: cover;
  background-position: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 92px;
  margin-bottom: 1rem;
}

.site-header h1 {
  max-width: 720px;
  margin: 0;
  color: var(--cream);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.tagline-accent {
  max-width: 720px;
  margin: 0;
  color: var(--acid-green);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Navigation */

nav {
  background-color: var(--near-black);
  border-top: 1px solid rgba(240, 235, 216, 0.12);
  border-bottom: 1px solid rgba(240, 235, 216, 0.12);
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 1.15rem;
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--acid-green);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Main Layout */

main {
  width: 90%;
  max-width: 1050px;
  margin: 2rem auto 3rem;
}

section {
  margin-bottom: 1.5rem;
}

/* Typography */

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--soft-white);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--acid-green);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

p {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
}

.statement {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Icons */

.icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
}

/* Hero Card */

.herocard {
  width: 100%;
  margin: 0 auto 1.75rem;
  padding: 2rem;
  background-color: rgba(6, 22, 23, 0.32);
  border: 1px solid rgba(202, 239, 53, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(6, 22, 23, 0.42);
}

.herocard h2 {
  color: var(--soft-white);
}

.herocard p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.herocard p:last-child {
  margin-bottom: 0;
}

/* Grid Sections */

.identity-strip,
.card-grid,
.resume-grid,
.contact-grid,
.project-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Cards */

.identity-item,
.card,
.project-card,
.contact-card {
  padding: 1.5rem;
  background-color: rgba(240, 235, 216, 0.08);
  border: 1px solid rgba(240, 235, 216, 0.24);
  border-radius: 16px;
  box-shadow: 0 16px 32px var(--soft-shadow);
}

.identity-item p,
.card p,
.project-card p,
.contact-card p {
  margin-bottom: 0;
}

.cream-card {
  background-color: var(--cream);
  color: var(--near-black);
}

.cream-card h3,
.cream-card p,
.cream-card li {
  color: var(--near-black);
}

/* Cream Band */

.cream-band {
  width: 100%;
  padding: 2rem;
  background-color: var(--cream);
  color: var(--near-black);
  border-radius: 18px;
  box-shadow: 0 16px 32px var(--soft-shadow);
}

.cream-band p,
.cream-band li {
  color: var(--near-black);
}

.cream-band a {
  color: var(--near-black);
  font-weight: 700;
}

.cream-band .icon {
  margin-bottom: 0.75rem;
}

/* Project Page */

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card ul {
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: auto;
}

.project-links a {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(202, 239, 53, 0.5);
  border-radius: 10px;
  color: var(--acid-green);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.project-links a:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

/* Resume Page */

.resume-section {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  margin-bottom: 1rem;
  color: var(--acid-green);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.dark-label {
  color: var(--near-black);
}

.resume-item {
  width: 100%;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background-color: rgba(6, 22, 23, 0.18);
  border-left: 4px solid var(--acid-green);
  border-radius: 12px;
  box-shadow: 0 16px 32px var(--soft-shadow);
}

.resume-item h3 {
  text-align: left;
}

.resume-meta {
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 1rem;
}

.resume-item ul {
  margin-bottom: 0;
}

.simple-list {
  margin-bottom: 0;
}

/* Contact Page */

.contact-card {
  text-align: center;
}

.contact-card p {
  margin-bottom: 1rem;
}

.contact-card a {
  font-weight: 700;
}

.centered-card {
  justify-self: center;
  width: 100%;
}

/* Footer */

footer {
  background-color: var(--near-black);
  color: var(--cream);
  text-align: center;
  padding: 1.25rem;
  font-family: var(--main-font);
}

footer p {
  margin: 0;
  font-family: var(--main-font);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
}

/* Larger Screens */

@media screen and (min-width: 700px) {
  .site-header {
    min-height: 175px;
    padding: 2.25rem 5.5rem;
  }

  .logo {
    width: 105px;
    margin-bottom: 1rem;
  }

  .site-header h1,
  .tagline-accent {
    font-size: 1.45rem;
  }

  nav ul {
    flex-direction: row;
    justify-content: center;
  }

  nav a {
    padding: 1.25rem 2.25rem;
    font-size: 1.08rem;
  }

  main {
    width: 90%;
    max-width: 1050px;
    margin-top: 2.25rem;
  }

  .identity-strip,
  .card-grid,
  .resume-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid,
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

    .centered-card {
    grid-column: 1 / -1;
    max-width: 500px;
  }

  .herocard,
  .cream-band {
    padding: 2.5rem;
  }
}
