:root {
  --ink: #173329;
  --paper: #fffdf6;
  --mist: #f8f5ec;
  --line: #c4cec1;
  --sun: #cdef72;
  --palm: #335943;
  --grapefruit: #bb4a25;
}

[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--grapefruit);
  outline-offset: 4px;
}

.mx-skip {
  position: absolute;
  z-index: 40;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  background: var(--sun);
  transform: translateY(-150%);
}

.mx-skip:focus {
  transform: none;
}

.mx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  color: inherit;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.mx-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding-right: 0.1em;
  border-radius: 0.45rem;
  background: var(--ink);
  color: var(--sun);
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.12em;
}

.mx-header-quote {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.84rem;
  font-weight: 750;
}

.mx-header-quote:hover {
  background: var(--palm);
}
.mx-header-grid > div:nth-child(2) {
  grid-column: 1 / -1;
}

.mx-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mx-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.15rem;
  padding-block: 0.38rem;
}

.mx-nav a {
  padding-block: 0.28rem;
  font-size: 0.875rem;
  font-weight: 730;
}

.mx-nav a:hover,
.mx-footer a:hover {
  text-decoration: underline;
}

.mx-hero {
  background: #e4edd8;
  border-color: #dce7ce;
}

.mx-hero > div[aria-hidden="true"] {
  background: #e7836440;
}
.mx-hero h1 {
  max-width: 11ch;
}
.mx-hero .mx-hero-secondary {
  display: inline-flex;
}
.mx-hero h1 + p {
  display: block;
}
.mx-catalog,
#ideas {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.mx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.mx-filters button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: none;
}

.mx-filters button:hover {
  border-color: var(--ink);
}
.mx-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.mx-product-caption {
  color: #40554b;
}
.mx-catalog-status {
  margin-bottom: 0.85rem;
  font-weight: 650;
}
.mx-catalog-status:empty {
  margin: 0;
}

.mx-quote {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.mx-quote-grid {
  display: grid;
  gap: 1.5rem;
}

.mx-quote h2 {
  margin-bottom: 0.8rem;
}
.mx-quote h2 + p {
  max-width: 38ch;
}

.mx-quote form {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.mx-quote .fields {
  display: grid;
  gap: 0.75rem;
}
.mx-quote label {
  display: grid;
  gap: 0.25rem;
  font-weight: 650;
}

.mx-quote :is(input, select, textarea) {
  min-width: 0;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #9dad9f;
  border-radius: 0.4rem;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 450;
}

.mx-quote textarea {
  resize: vertical;
}
.mx-quote select {
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 0.25rem 0.25rem;
  background-repeat: no-repeat;
}
.mx-quote #result {
  display: grid;
  gap: 0.6rem;
}
.mx-quote #status:empty {
  display: none;
}

.mx-button {
  justify-self: start;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.45rem;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 780;
}

.mx-button:hover {
  background: #ddf5a6;
}
.mx-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.2rem;
}
.mx-footer .mx-mark {
  background: var(--sun);
  color: var(--ink);
}
.mx-footer p {
  margin-top: 0.65rem;
  opacity: 0.85;
}
.mx-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.2rem;
}

@media (min-width: 500px) {
  .mx-quote .fields {
    grid-template-columns: 1.8fr 1fr;
  }
}

@media (min-width: 768px) {
  .mx-header-grid {
    grid-template-columns: 13rem minmax(0, 1fr) auto;
  }
  .mx-header-grid > div:nth-child(2) {
    grid-area: auto;
  }
  .mx-header-quote {
    grid-area: auto;
  }
  .mx-nav > div {
    gap: 1.7rem;
  }
  .mx-quote-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

@media (min-width: 1024px) {
  .mx-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

