/**
 * Row Marker Furrow — Appily-Ninetyfour catalog
 * Row-marker stakes · sod-cutter sort · binder-clipped packets
 * Avoids: category tile grids, shop card grids, Drift mosaic,
 * Plate Index ticker/press-plates, Spindle Rack, Specimen Tray,
 * hex comb, Contour Bench chords.
 */

.page-furrow {
  --rf-soil: #f0e2cc;
  --rf-loam: #d4a574;
  --rf-ink: #1c1814;
  --rf-mute: #4A433A;
  --rf-stake: #1f7a5c;
  --rf-stake-hot: #155a44;
  --rf-blade: #e85d2f;
  --rf-wire: #8a7a68;
  --rf-packet: #fffaf2;
  --rf-display: "Belanosima", Georgia, serif;
  --rf-body: "Work Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 35% at 10% 0%, rgba(31, 122, 92, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 95% 20%, rgba(232, 93, 47, 0.12), transparent 45%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(232, 163, 23, 0.1), transparent 50%),
    linear-gradient(180deg, #f5ead6 0%, var(--rf-soil) 40%, #e8d5b8 100%);
  color: var(--rf-ink);
  font-family: var(--rf-body);
  min-height: 100vh;
}

.page-furrow .rf-main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.25rem 0 4rem;
}

.rf-crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--rf-mute);
}
.rf-crumb a {
  color: var(--rf-stake);
  text-decoration: none;
}
.rf-crumb a:hover {
  text-decoration: underline;
}

.rf-mast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.rf-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rf-mute);
}
.rf-mast h1 {
  margin: 0 0 0.5rem;
  font-family: var(--rf-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--rf-ink);
}
.rf-mast h1 em {
  font-style: italic;
  color: var(--rf-stake);
  font-weight: 600;
}
.rf-lede {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--rf-mute);
}
.rf-meters {
  display: flex;
  gap: 1.25rem;
}
.rf-meters div {
  text-align: right;
}
.rf-meters strong {
  display: block;
  font-family: var(--rf-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rf-stake);
}
.rf-meters span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-mute);
}

.rf-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-mute);
}

/* —— Row marker stakes —— */
.rf-furrow {
  margin-bottom: 1.75rem;
}
.rf-soil {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.85rem 0.35rem 0;
  scrollbar-width: thin;
  border-top: 3px solid var(--rf-loam);
  background:
    linear-gradient(180deg, transparent 0%, rgba(196, 168, 130, 0.35) 70%, rgba(139, 110, 70, 0.4) 100%);
  border-radius: 0 0 4px 4px;
  -webkit-overflow-scrolling: touch;
}
.rf-stake {
  position: relative;
  flex: 0 0 auto;
  width: 5.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  opacity: 0;
  transform: translateY(-28px);
  animation: rf-plant 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--rf-i, 0) * 55ms);
}
@keyframes rf-plant {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rf-stake-tip {
  display: block;
  width: 10px;
  height: 14px;
  margin: 0 auto -1px;
  background: var(--rf-stake);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transition: background 0.25s ease, transform 0.25s ease;
}
.rf-stake-face {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 5.6rem;
  padding: 0.55rem 0.4rem 0.65rem;
  background: linear-gradient(180deg, #f5efe4 0%, #e8dfd0 100%);
  border: 1.5px solid rgba(28, 24, 20, 0.18);
  border-radius: 2px 2px 3px 3px;
  box-shadow: 0 6px 0 rgba(47, 92, 72, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rf-stake-face em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-mute);
}
.rf-stake-face strong {
  font-family: var(--rf-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rf-ink);
}
.rf-stake-face b {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rf-stake);
}
.rf-stake:hover .rf-stake-face,
.rf-stake:focus-visible .rf-stake-face {
  transform: translateY(-3px);
  border-color: var(--rf-stake);
}
.rf-stake:focus-visible {
  outline: 2px solid var(--rf-blade);
  outline-offset: 3px;
}
.rf-stake.is-planted .rf-stake-tip {
  background: var(--rf-blade);
  transform: scaleY(1.15);
}
.rf-stake.is-planted .rf-stake-face {
  background: linear-gradient(180deg, var(--rf-stake) 0%, var(--rf-stake-hot) 100%);
  border-color: var(--rf-stake-hot);
  box-shadow: 0 8px 0 rgba(28, 24, 20, 0.18);
  transform: translateY(6px);
}
.rf-stake.is-planted .rf-stake-face em,
.rf-stake.is-planted .rf-stake-face strong,
.rf-stake.is-planted .rf-stake-face b {
  color: #f5efe4;
}
.rf-stake.is-planted .rf-stake-face b {
  color: #f5efe4;
}

/* —— Sod cutter sort —— */
.rf-cutter {
  margin-bottom: 1.85rem;
}
.rf-beam {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 3.1rem;
  padding: 0.35rem 0.4rem;
  background: linear-gradient(180deg, #2a322c 0%, #1a211c 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rf-blade {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: var(--rf-blade-pos, 8%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--rf-blade);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(181, 74, 46, 0.55);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.rf-blade::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 14px;
  height: 10px;
  margin-left: -7px;
  background: var(--rf-blade);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.rf-blade.is-scrape::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3px;
  width: 28px;
  background: linear-gradient(90deg, rgba(181, 74, 46, 0.35), transparent);
  animation: rf-scrape 0.4s ease-out forwards;
}
@keyframes rf-scrape {
  from {
    opacity: 1;
    transform: scaleX(0.3);
  }
  to {
    opacity: 0;
    transform: scaleX(1.4);
  }
}
.rf-notches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}
.rf-notch {
  margin: 0;
  padding: 0.55rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: rgba(245, 239, 228, 0.88);
  font-family: var(--rf-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.rf-notch:hover,
.rf-notch:focus-visible {
  color: #f5efe4;
  background: rgba(255, 255, 255, 0.06);
}
.rf-notch:focus-visible {
  outline: 2px solid var(--rf-blade);
  outline-offset: 1px;
}
.rf-notch.is-on {
  color: #f5efe4;
  background: rgba(181, 74, 46, 0.22);
  border-color: rgba(181, 74, 46, 0.45);
}

/* —— Binder packets —— */
.rf-wire {
  margin-bottom: 2rem;
}
.rf-wire-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.rf-wire-head h2 {
  margin: 0;
  font-family: var(--rf-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rf-line {
  height: 2px;
  margin-bottom: 1rem;
  background:
    repeating-linear-gradient(
      90deg,
      var(--rf-wire) 0 8px,
      transparent 8px 14px
    );
  opacity: 0.55;
}

.rf-packets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}
.rf-packet {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem 0.65rem 1.15rem;
  background: var(--rf-packet);
  border: 1px solid rgba(28, 24, 20, 0.12);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(28, 24, 20, 0.05);
  opacity: 0;
  transform: translateY(12px) rotate(0deg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rf-packets.is-clipping .rf-packet {
  animation: rf-clip-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--rf-p, 0) * 40ms);
}
.rf-packet.is-left {
  margin-right: 1.5rem;
  border-radius: 2px 8px 8px 2px;
}
.rf-packet.is-right {
  margin-left: 1.5rem;
  border-radius: 8px 2px 2px 8px;
}
@keyframes rf-clip-in {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}
.rf-clip {
  position: absolute;
  top: -6px;
  width: 18px;
  height: 22px;
  background: linear-gradient(180deg, #c0b8a8 0%, #8a8070 100%);
  border-radius: 2px 2px 1px 1px;
  box-shadow: 0 2px 4px rgba(28, 24, 20, 0.2);
  z-index: 2;
}
.rf-packet.is-left .rf-clip {
  left: 1.6rem;
}
.rf-packet.is-right .rf-clip {
  right: 1.6rem;
}
.rf-clip::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 6px;
  border: 1.5px solid rgba(28, 24, 20, 0.25);
  border-radius: 1px;
}
.rf-packet-media {
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: #ebe3d4;
  border-radius: 2px;
}
.rf-packet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.rf-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d8cdb8, #c4b8a0);
}
.rf-packet-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.rf-packet-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-packet-copy em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rf-mute);
}
.rf-packet-price {
  font-family: var(--rf-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-stake);
  white-space: nowrap;
}
.rf-packet:hover,
.rf-packet:focus-visible {
  border-color: var(--rf-stake);
  box-shadow: 0 8px 22px rgba(28, 24, 20, 0.1);
  transform: translateY(-2px);
}
.rf-packet:hover .rf-packet-media img,
.rf-packet:focus-visible .rf-packet-media img {
  transform: scale(1.08);
}
.rf-packet:focus-visible {
  outline: 2px solid var(--rf-blade);
  outline-offset: 2px;
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-family: var(--rf-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.rf-btn--primary {
  background: var(--rf-stake);
  color: #f5efe4;
}
.rf-btn--primary:hover,
.rf-btn--primary:focus-visible {
  background: var(--rf-stake-hot);
  transform: translateY(-1px);
}
.rf-btn--primary:focus-visible {
  outline: 2px solid var(--rf-blade);
  outline-offset: 2px;
}

.rf-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.15rem;
  background: rgba(47, 92, 72, 0.08);
  border: 1px dashed rgba(47, 92, 72, 0.35);
  border-radius: 3px;
}
.rf-foot strong {
  display: block;
  font-family: var(--rf-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.rf-foot p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rf-mute);
  max-width: 28rem;
}

@media (max-width: 640px) {
  .page-furrow .rf-main {
    padding-top: 1.25rem;
  }
  .rf-meters {
    width: 100%;
    justify-content: flex-start;
  }
  .rf-meters div {
    text-align: left;
  }
  .rf-stake {
    width: 4.85rem;
  }
  .rf-stake-face {
    min-height: 5.2rem;
    padding: 0.45rem 0.35rem 0.55rem;
  }
  .rf-stake-face strong {
    font-size: 0.8rem;
  }
  .rf-notch {
    font-size: 0.7rem;
    padding: 0.5rem 0.2rem;
  }
  .rf-packet.is-left,
  .rf-packet.is-right {
    margin-left: 0;
    margin-right: 0;
    border-radius: 2px 6px 6px 2px;
  }
  .rf-packet {
    grid-template-columns: 48px 1fr;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem 0.55rem 0.95rem;
  }
  .rf-packet-media {
    width: 48px;
    height: 48px;
  }
  .rf-packet-price {
    grid-column: 2;
    justify-self: start;
    font-size: 0.95rem;
  }
  .rf-wire-head .rf-btn {
    width: 100%;
  }
  .rf-foot .rf-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-stake,
  .rf-packets.is-clipping .rf-packet,
  .rf-blade,
  .rf-blade.is-scrape::after {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
