:root {
  color-scheme: light;
  --paper: #f7eddd;
  --paper-deep: #ead9c4;
  --paper-soft: #fbf6ec;
  --ink: #211610;
  --ink-soft: #5d4a3a;
  --terracotta: #b9512d;
  --terracotta-dark: #873718;
  --gold: #c98d3e;
  --serif: Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 360px),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex: 0 0 auto;
}

p,
h2 {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(78, 43, 22, 0.18);
  border-radius: 12px;
  background: rgba(251, 246, 236, 0.74);
  box-shadow: 0 16px 42px rgba(60, 35, 19, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 5px);
  align-items: start;
  gap: 4px;
  height: 28px;
  padding-top: 2px;
}

.brand-mark::before {
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  height: 2px;
  border-radius: 4px;
  background: var(--terracotta);
  content: "";
}

.brand-mark span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--terracotta), #7f4d24);
}

.brand-mark span:nth-child(1) {
  height: 21px;
}

.brand-mark span:nth-child(2) {
  height: 28px;
}

.brand-mark span:nth-child(3) {
  height: 17px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff9ef;
  background: linear-gradient(180deg, #c45f33, var(--terracotta-dark));
  box-shadow: 0 10px 24px rgba(135, 55, 24, 0.22);
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action:hover {
  transform: translateY(-1px);
}

.header-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero-andes-quipus.webp");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 246, 236, 0.98) 0%, rgba(251, 246, 236, 0.9) 31%, rgba(251, 246, 236, 0.48) 51%, rgba(251, 246, 236, 0.03) 73%),
    linear-gradient(180deg, rgba(251, 246, 236, 0.25) 0%, rgba(251, 246, 236, 0) 56%, var(--paper) 100%);
  content: "";
}

.hero-content {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 132px 0 92px;
}

.hero-copy {
  max-width: 1040px;
}

.hero-products {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) repeat(2, minmax(220px, 0.72fr));
  grid-template-rows: repeat(2, minmax(188px, auto));
  gap: 16px;
  align-items: stretch;
}

.hero-product {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 188px;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.94), rgba(238, 224, 202, 0.86)),
    var(--paper-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 18px 44px rgba(80, 45, 25, 0.12);
  outline: 1px solid rgba(78, 43, 22, 0.14);
  outline-offset: -1px;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
    outline-color 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-product::before {
  position: absolute;
  inset: 0 -18px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(185, 81, 45, 0.18), transparent 32%),
    repeating-linear-gradient(90deg, rgba(135, 55, 24, 0.12) 0 1px, transparent 1px 18px);
  opacity: 0.56;
  transform: translate3d(-18px, 0, 0);
  will-change: transform;
  content: "";
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-product::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 0;
  color: rgba(135, 55, 24, 0.22);
  font-size: 19px;
  font-weight: 850;
  content: "->";
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), color 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-product:first-child {
  grid-row: 1 / span 2;
  min-height: 392px;
  padding: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(201, 141, 62, 0.2), transparent 28%),
    linear-gradient(150deg, rgba(255, 251, 243, 0.98), rgba(232, 213, 185, 0.9));
}

.hero-product:nth-child(2) {
  background:
    linear-gradient(140deg, rgba(255, 250, 241, 0.94), rgba(244, 232, 211, 0.9)),
    var(--paper-soft);
}

.hero-product:nth-child(3) {
  background:
    radial-gradient(circle at 92% 8%, rgba(57, 126, 130, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(247, 252, 248, 0.94), rgba(229, 232, 213, 0.86));
}

.hero-product:nth-child(4) {
  grid-column: 2 / span 2;
  background:
    radial-gradient(circle at 88% 12%, rgba(80, 84, 150, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(250, 247, 255, 0.92), rgba(232, 224, 216, 0.88));
}

.hero-product:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 26px 58px rgba(80, 45, 25, 0.18);
  outline-color: rgba(185, 81, 45, 0.28);
  transform: translateY(-4px);
}

.hero-product:hover::before {
  animation: product-line-drift 1.15s linear infinite;
  opacity: 0.68;
}

.hero-product:hover::after {
  color: rgba(135, 55, 24, 0.46);
  transform: translate(4px, -3px);
}

.hero-product:active {
  transform: translateY(-1px) scale(0.99);
}

.hero-product:focus-visible {
  outline: 3px solid rgba(57, 126, 130, 0.46);
  outline-offset: 4px;
}

@keyframes product-line-drift {
  from {
    transform: translate3d(-18px, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-product span {
  position: relative;
  z-index: 1;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-product strong {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.35vw, 48px);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-product:first-child strong {
  max-width: 8.5ch;
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 0.9;
}

.hero-product:nth-child(4) strong {
  max-width: none;
  font-size: clamp(32px, 2.85vw, 40px);
  white-space: nowrap;
}

.hero-product em {
  position: relative;
  z-index: 1;
  max-width: 31ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  font-style: normal;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-product:first-child em {
  max-width: 48ch;
  font-size: 16px;
}

.hero-product small {
  position: relative;
  z-index: 1;
  align-self: end;
  width: fit-content;
  padding-top: 14px;
  border-top: 1px solid rgba(135, 55, 24, 0.2);
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 850;
}

.woven-band {
  position: relative;
  height: 96px;
  margin-top: -58px;
  background:
    linear-gradient(180deg, rgba(247, 237, 221, 0), var(--paper) 38%, var(--paper-deep) 100%);
}

.woven-band::before {
  position: absolute;
  left: max(20px, calc((100% - 1180px) / 2));
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 22px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(135, 55, 24, 0.24), transparent);
  content: "";
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px);
  gap: 44px;
  padding: 46px max(20px, calc((100% - 1180px) / 2)) 44px;
  background:
    linear-gradient(180deg, var(--paper-deep), rgba(255, 255, 255, 0.14) 42%, transparent),
    #ead9c4;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer p {
  max-width: 250px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--terracotta-dark);
  font-size: 16px;
  font-weight: 850;
}

.site-footer a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
  color: var(--terracotta);
}

@media (max-width: 980px) {
  .hero,
  .hero-content {
    min-height: 880px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 246, 236, 0.96) 0%, rgba(251, 246, 236, 0.84) 44%, rgba(251, 246, 236, 0.18) 78%, var(--paper) 100%);
  }

  .hero-media {
    background-position: 57% center;
  }

  .hero-products {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 560px;
  }

  .hero-product:first-child {
    grid-row: auto;
    min-height: 330px;
    padding: 26px;
  }

  .hero-product:nth-child(4) {
    grid-column: auto;
  }

  .hero-product:nth-child(4) strong {
    max-width: 10ch;
    font-size: clamp(28px, 6vw, 44px);
    white-space: normal;
  }

  .hero-product:first-child strong {
    max-width: 10ch;
    font-size: clamp(32px, 8.3vw, 48px);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
    margin-top: 10px;
    padding: 8px 8px 8px 13px;
    border-radius: 26px;
  }

  .brand {
    gap: 9px;
    font-size: 22px;
  }

  .brand-mark {
    grid-template-columns: repeat(3, 4px);
    gap: 3px;
    height: 24px;
  }

  .brand-mark span {
    width: 4px;
  }

  .brand-mark span:nth-child(1) {
    height: 18px;
  }

  .brand-mark span:nth-child(2) {
    height: 24px;
  }

  .brand-mark span:nth-child(3) {
    height: 15px;
  }

  .header-action {
    gap: 0;
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
  }

  .header-action svg {
    width: 19px;
    height: 19px;
  }

  .hero,
  .hero-content {
    min-height: 820px;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .hero-product {
    min-height: 154px;
    padding: 20px;
  }

  .hero-product:first-child {
    min-height: 360px;
    padding: 22px;
  }

  .hero-product strong,
  .hero-product:first-child strong {
    max-width: none;
    font-size: clamp(26px, 8.3vw, 36px);
  }

  .hero-product::after {
    right: 18px;
    bottom: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 44px 20px 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-product::before {
    animation: none;
  }
}
