:root {
  --ink: #18211d;
  --muted: #53615b;
  --paper: #ffffff;
  --surface: #f3f5f2;
  --line: #c8d0cb;
  --teal: #167386;
  --teal-dark: #0d5362;
  --amber: #b85c22;
  --violet: #67479a;
  --charcoal: #202623;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid #f0a02c;
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

.site-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100% - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand img {
  width: 156px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(430px, 64vh, 650px);
  align-items: flex-end;
  background-image: url('/assets/images/harvester.jpg');
  background-position: center 56%;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 15, 11, 0.6);
  content: '';
}

.hero-content {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 58px;
  color: #ffffff;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 10px;
}

.hero-logo {
  width: 430px;
  max-width: 80vw;
  height: auto;
}

.hero p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
}

.eyebrow,
.project-type {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c677;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.button-primary {
  background: var(--teal-dark);
  color: #ffffff;
}

.button-dark {
  background: var(--charcoal);
  color: #ffffff;
}

.button-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button:hover {
  filter: brightness(0.92);
}

.projects-section,
.plain-section,
.project-summary,
.directory-profile,
.profile-story,
.page-actions {
  width: min(var(--max-width), calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.projects-section {
  padding: 54px 0 64px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 6px;
  background: var(--paper);
}

.project-card > img,
.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-radio {
  border-top-color: var(--amber);
}

.project-auto {
  border-top-color: var(--violet);
}

.project-image {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.amateur-image {
  background: #edf0e7;
}

.auto-image {
  background: var(--charcoal);
}

.project-card-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 22px;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.project-card-body > p:not(.project-type) {
  color: var(--muted);
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 10px;
}

.text-link {
  font-weight: 700;
}

.profile-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 54px max(24px, calc((100% - var(--max-width)) / 2));
  background: #e9eeeb;
}

.profile-band > div {
  max-width: 780px;
}

.profile-band h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.page-intro {
  padding: 72px max(24px, calc((100% - 940px) / 2)) 48px;
  background: #e9eeeb;
}

.page-intro > p:last-child {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.profile-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: start;
  padding: 62px 0 48px;
}

.profile-story h2,
.plain-section h2,
.project-summary h2,
.directory-profile h2 {
  font-size: 1.75rem;
}

.profile-story figure {
  margin: 0;
}

.profile-story img {
  width: 100%;
  border-radius: 4px;
}

.profile-story figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.plain-section,
.project-summary,
.directory-profile {
  max-width: 940px;
  padding: 0 0 42px;
}

.project-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-summary dl > div {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-summary dt {
  font-weight: 800;
}

.project-summary dd {
  margin: 0;
  color: var(--muted);
}

.directory-profile {
  margin-bottom: 46px;
  border-left: 5px solid var(--amber);
  padding: 2px 0 2px 22px;
}

.page-actions {
  display: flex;
  max-width: 940px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 64px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding: 38px max(24px, calc((100% - var(--max-width)) / 2));
  background: var(--charcoal);
  color: #ffffff;
}

.site-footer img {
  width: 140px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  margin-bottom: 0;
  color: #d4ddd7;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  }

  .project-card > img,
  .project-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .profile-story {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    gap: 14px;
    padding: 10px 16px;
  }

  .brand img {
    width: 118px;
  }

  .site-nav {
    gap: 6px 14px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 500px;
    background-position: 58% center;
  }

  .hero-content,
  .projects-section,
  .plain-section,
  .project-summary,
  .directory-profile,
  .profile-story,
  .page-actions {
    width: calc(100% - 32px);
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .projects-section {
    padding-top: 42px;
  }

  .project-card {
    display: flex;
  }

  .project-card > img,
  .project-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .profile-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 16px;
  }

  .profile-story {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .profile-story figure {
    max-width: 320px;
  }

  .project-summary dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 16px;
  }
}
