:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --text: #23251f;
  --muted: #686b61;
  --line: #d8d3c5;
  --accent: #e0e1e0;
  --accent-soft: #dce8de;
  --shadow: 0 14px 35px rgba(44, 42, 34, 0.08);
  --radius: 22px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(49, 90, 72, 0.10), transparent 30rem),
    var(--bg);
}

a {
  color: inherit;
}

.site-header,
.site-main,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 30px 0 5px;
  background-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0)
    ),
    url("./img/rodeo_banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-inner {
  max-width: 1000px; /* 760 */
  padding-left: 10px;
  padding-bottom: 10px;
}

.eyebrow,
.project-card__type {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  max-width: 900px;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 0.9;
  font-family: "Sancreek", serif;
  font-style: oblique;
  color:rgb(160, 171, 0);
  text-shadow: 5px 5px 0px black;
}

h2 {
  margin-top: 20px;
  max-width: 900px;
  font-size: 10px;
  line-height: 0.9;
}

.intro {
  margin-bottom: 0;
  max-width: 650px;
  font-size: clamp(0.08rem, 2vw, 1.0rem); /* 1.08rem, 2vw, 1.35rem */
  line-height: 1.6;
  color:rgb(222, 218, 218);
  font-weight: 550;
}

.site-main {
  padding-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  font-family: "Sancreek", serif;
  font-style: oblique;
  color:rgb(86, 92, 0);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.272);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-top: 20px;
}
.project-card {
  display: grid;
  grid-template-rows: 140px 1fr;   /* image area + text area */
  min-height: 280px;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

a.project-card:hover {
  transform: translateY(-5px);
  border-color: #b8b2a3;
  box-shadow: 0 20px 45px rgba(44, 42, 34, 0.12);
}


/* ----- PROJECT IMAGE ----- */

.project-card__art {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--accent-soft), #eef0e5);
}

/* Actual project screenshots/images */
.project-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ----- PLACEHOLDER ART ----- */

/* Keep these rules so cards without an image can still use an icon */
.project-card__art:has(.project-card__icon) {
  display: grid;
  place-items: center;
}

.project-card__icon {
  font-size: clamp(2rem, 6vw, 4rem);
  filter: saturate(0.9);
}


/* ----- CARD TEXT ----- */

.project-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.project-card__type {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__body h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.045em;
}

.project-card__body > p:not(.project-card__type) {
  max-width: 46ch;
  line-height: 1.65;
  color: var(--muted);
}

.project-card__link {
  margin-top: auto;
  padding-top: 26px;
  font-weight: 750;
  color: rgb(196, 215, 185);
}

.project-card--placeholder {
  box-shadow: none;
}

.site-footer {
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 58px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }

  .project-grid,
  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: auto;
    grid-template-rows: 130px 1fr;
  }

  .project-card {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
