@font-face {
  font-family: DM Sans;
  src: url(dm-sans-latin.woff2) format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #18342c;
  background: #f8f7f1;
  --green: #173e31;
  --orange: #df6c32;
  --muted: #5d6b60;
  --line: #ccd4c8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ad5025;
  outline-offset: 4px;
}
.mast,
main,
footer {
  width: min(calc(100% - 88px), 1430px);
  margin-inline: auto;
}
.mast {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.mast a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 560;
}
.mast .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  letter-spacing: -0.9px;
  font-weight: 480;
}
.wordmark strong {
  font-weight: 750;
}
.brand-dot {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  border: 5px solid var(--green);
  border-radius: 50%;
}
.brand-dot:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 2px solid #f8f7f1;
  border-radius: 50%;
  right: -7px;
  top: -7px;
}
.nav-login {
  padding: 9px 14px;
  border: 1px solid #aebcaf;
  border-radius: 24px;
}
.nav-login span {
  margin-left: 8px;
}
.category {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 740;
  color: #546854;
  margin: 0 0 20px;
}
.lead {
  max-width: 37ch;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.47;
  margin: 23px 0 29px;
}
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 21px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  padding: 13px 19px;
  font-size: 15px;
  font-weight: 670;
}
.cta:hover {
  background: #245442;
}
.cta span {
  font-size: 18px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 0 32px;
  font-size: 13px;
  font-weight: 550;
}
footer a {
  text-decoration: none;
}
footer a:hover,
.mast a:hover {
  text-decoration: underline;
}
.auth-main {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 46px 0;
}
.auth-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffef9;
  padding: clamp(23px, 4vw, 40px);
}
.auth-card h1 {
  font-size: 45px;
}
.auth-card .category {
  margin-bottom: 12px;
}
.auth-card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}
.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}
.auth-card input {
  width: 100%;
  border: 1px solid #aebcaf;
  border-radius: 6px;
  padding: 10px;
  background: #fafcf8;
  color: var(--green);
}
.auth-card .cta {
  margin-top: 3px;
  width: 100%;
}
.auth-card .cta:disabled {
  opacity: 0.6;
}
.auth-card #auth-message:empty {
  display: none;
}
.auth-card #auth-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.auth-card #auth-actions button {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  padding: 0;
  font-size: 13px;
}
.auth-card h1,
.catalog-intro h1,
.case-intro h1,
.catalog h2,
.case-prose h2,
.project-card h3 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-weight: 640;
}
.catalog-intro {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(25px, 6vw, 96px);
  align-items: center;
  padding: clamp(36px, 5vw, 78px) 0;
}
.catalog-intro h1 {
  font-size: clamp(73px, 7.6vw, 118px);
  line-height: 0.91;
}
.catalog-intro h1 em {
  color: #a94a22;
  font-style: normal;
}
.intro-story {
  max-width: 49ch;
}
.intro-story p {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.48;
  color: var(--muted);
  margin: 12px 0 0;
}
.intro-story p:first-child {
  font-size: clamp(23px, 2vw, 33px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--green);
  font-weight: 570;
  margin: 0;
}
.catalog {
  border-top: 1px solid var(--line);
  padding: 26px 0 46px;
  scroll-margin-top: 20px;
}
.catalog h2 {
  font-size: clamp(26px, 2.5vw, 41px);
  margin-bottom: 21px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-image {
  display: block;
  background: #e4e8dd;
  aspect-ratio: 1.37;
  overflow: hidden;
  border-radius: 10px;
}
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-rc-lawn-mower .card-image img {
  object-position: 50% 51%;
}
.card-mademetric .card-image img {
  object-fit: contain;
  background: #ece8d9;
}
.card-copy {
  padding: 15px 1px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-copy .category {
  margin: 0 0 8px;
  font-size: 10px;
}
.project-card h3 {
  font-size: clamp(22px, 2vw, 30px);
}
.project-card h3 a {
  text-decoration: none;
}
.project-card h3 a:hover,
.card-link:hover,
.back-link:hover {
  text-decoration: underline;
}
.card-copy > p:not(.category) {
  margin: 10px 0 15px;
  color: #4a5e51;
  font-size: 15px;
  line-height: 1.48;
  max-width: 45ch;
}
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: auto;
}
.card-link {
  font-size: 13px;
  font-weight: 670;
  text-decoration: none;
}
.card-link span {
  margin-left: 3px;
}
.play-link {
  background: var(--green);
  color: white;
  border-radius: 6px;
  padding: 8px 11px;
}
.case-intro {
  padding: 28px 0 40px;
}
.back-link {
  display: inline-block;
  color: #506553;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 22px;
}
.case-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.case-intro h1 {
  font-size: clamp(48px, 5.4vw, 91px);
}
.case-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.case-links .cta {
  font-size: 13px;
  padding: 10px 14px;
  gap: 9px;
}
.case-links .cta + .cta {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}
.case-cover,
.case-extras figure {
  margin: 0;
}
.case-cover {
  background: #e8e9e1;
  border-radius: 12px;
  overflow: hidden;
}
.case-cover img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}
.case-prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(25px, 5vw, 80px);
  border-top: 1px solid var(--line);
  padding: 32px 0 36px;
}
.case-prose h2 {
  font-size: clamp(23px, 2vw, 31px);
}
.case-prose p {
  color: #465b4c;
  line-height: 1.55;
  max-width: 57ch;
  font-size: 16px;
}
.case-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
}
.case-extras:empty {
  display: none;
}
.case-extras figure {
  flex: 1 1 300px;
  max-width: 760px;
}
.case-extras img {
  display: block;
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  background: #e8e9e1;
  border-radius: 10px;
}
.case-extras figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .mast,
  main,
  footer {
    width: calc(100% - 38px);
  }
  .mast {
    height: 67px;
  }
  .catalog-intro {
    gap: 25px;
  }
  .project-grid {
    gap: 15px;
  }
  .card-copy > p:not(.category) {
    font-size: 14px;
  }
  .card-copy .category {
    font-size: 9px;
  }
  .case-grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .mast nav {
    gap: 15px;
  }
}
@media (max-width: 650px) {
  .mast,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .mast {
    height: 60px;
  }
  .mast .wordmark {
    font-size: 18px;
  }
  .mast nav a:not(.nav-login) {
    display: none;
  }
  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 33px 0 29px;
  }
  .catalog-intro h1 {
    font-size: clamp(64px, 15vw, 87px);
  }
  .catalog-intro h1 br {
    display: none;
  }
  .catalog-intro h1 em::before {
    content: " ";
  }
  .intro-story p:first-child {
    font-size: 23px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .catalog {
    padding: 23px 0 33px;
  }
  .catalog h2 {
    margin-bottom: 15px;
  }
  .card-image {
    aspect-ratio: 1.4;
  }
  .card-copy {
    padding-top: 12px;
  }
  .card-copy > p:not(.category) {
    font-size: 15px;
    margin: 8px 0 11px;
  }
  .case-grid,
  .case-prose {
    grid-template-columns: 1fr;
  }
  .case-intro h1 {
    font-size: 52px;
  }
  .case-intro .lead {
    margin: 14px 0 18px;
  }
  .case-prose {
    gap: 16px;
  }
  .case-extras figure {
    flex-basis: 100%;
  }
  .auth-card h1 {
    font-size: 38px;
  }
}
